Commit Graph

29664 Commits

Author SHA1 Message Date
Jenkins 094f8cd13f Merge "Change v3 shelve to v2.1" 2014-08-31 06:49:44 +00:00
Jenkins 664f0972b9 Merge "Use default quota values in test_quotas" 2014-08-31 05:11:48 +00:00
Jenkins 2e09692f17 Merge "Change v3 os-user-data extension to v2.1" 2014-08-31 05:11:04 +00:00
Jenkins 9caeb2680e Merge "Update instance state after compute service died for rebuilded instance" 2014-08-31 05:10:46 +00:00
Jenkins 1087067f46 Merge "Add support for select_destinations in Scheduler client" 2014-08-31 04:46:47 +00:00
Jenkins 999a192e90 Merge "Create a Scheduler client library" 2014-08-31 04:31:01 +00:00
Jenkins b7c63d2462 Merge "Convert v3 server diagnostics plugin to v2.1" 2014-08-31 04:30:03 +00:00
Jenkins b9024b8efd Merge "Add extension block_device_mapping_v1 for v2.1" 2014-08-31 02:37:59 +00:00
Jenkins c243b2a84a Merge "Catch BDM related InvalidBDM exceptions for server create v2.1" 2014-08-31 02:26:05 +00:00
Jenkins 87fdd60f43 Merge "Changes block_device_mapping extension into v2.1" 2014-08-31 02:22:39 +00:00
Jenkins 43f2193130 Merge "Made unassigned networks visible in flat networking" 2014-08-31 00:02:20 +00:00
Jenkins fa36916cd0 Merge "Prepend /dev/ to root_device_name in get_next_device_name" 2014-08-30 23:55:29 +00:00
Jenkins d91d8a6303 Merge "Use instance objects consistently in suspend tests" 2014-08-30 19:27:06 +00:00
Jenkins 702497d8a6 Merge "Work on document structure and doc building" 2014-08-30 15:42:48 +00:00
Jenkins de34ccfa96 Merge "Fix error in log when log exception in guestfs.py" 2014-08-30 15:40:50 +00:00
Jenkins faa0328b03 Merge "xenapi: Attach original local disks during rescue" 2014-08-30 14:36:03 +00:00
Jenkins 0b5cb4dda0 Merge "Decrease amount of queries while adding aggregate metadata" 2014-08-30 14:29:44 +00:00
Jenkins 17a162c01f Merge "Move and generalize decorator serialize_args to nova.objects.base" 2014-08-30 14:22:18 +00:00
Jenkins 4e11ddbfc5 Merge "GET servers API sorting enhancements common utilities" 2014-08-30 12:42:58 +00:00
Eli Qiao 9daf3bdd87 Change v3 shelve to v2.1
This patch changes v3 shelve API to v2.1 and makes v2
unit tests share between v2 and v2.1.
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3 .

Partially implements blueprint v2-on-v3-api
Change-Id: Ie4cd72d23592fe2bd1a66137b12bb84400ccfc18
2014-08-30 07:00:57 +00:00
Jenkins b26a281ebe Merge "libvirt: Add method for getting host NUMA topology" 2014-08-30 01:30:04 +00:00
Jenkins 2967ea862a Merge "Add instance_extra table and related objects" 2014-08-30 01:27:42 +00:00
Jenkins d616c96387 Merge "Convert v3 certificate API to v2.1" 2014-08-29 22:43:35 +00:00
Jenkins 19e868bf3e Merge "libvirt: reworks configdrive creation" 2014-08-29 22:43:09 +00:00
Jenkins fa01320b84 Merge "Change v3 flavors to v2.1" 2014-08-29 22:34:25 +00:00
Mike Spreitzer 46e88320e6 Made unassigned networks visible in flat networking
This change fixes a bug in Nova's
GET /v2/{tenant_id}/os-networks

The doc
http://docs.openstack.org/api/openstack-compute/2/content/GET_os-networks-v2_ListNetworks__v2__tenant_id__os-networks_ext-os-networks.html
says that "Lists networks that are available to the tenant".

When invoked by a non-admin user it was returning only networks
assigned to the user's tenant.  But in flat and flat DHCP nova
networking, networks CAN NOT be assigned to tenants --- thus a
non-admin user would get zero networks from this operation.

The fix was to make this operation conditionally use an option already
present in the lower-level code to "allow_none" when fetching the list
of networks, meaning to include networks whose project_id field in the
DB held "none" (meaning the network is not assigned to a tenant).  The
condition under which this is done is that the Nova configuration
option named network_manager contains the string
"'nova.network.manager.Flat" --- which is true for flat and flat DHCP
nova networking and false for VLAN nova networking.

Change-Id: I64c5a3f31c912cca6b5b9987152ba7a9b3f5987d
Closes-Bug: #1327406
2014-08-29 14:54:01 -04:00
Eugeniya Kudryashova 00065bd9f6 Decrease amount of queries while adding aggregate metadata
Dict of aggregate metadata sometimes contains a lot of items,
so while adding of metadata current implementation make a lot
of inserts in database.

Using multirow INSERT instead of INSERT statement allows to
decrease amount of queries to one single query per operation.

Change-Id: I6b842459cf198f8577b615aeba091723dcb18429
2014-08-29 14:41:30 +00:00
Jenkins 8f49b1ed9f Merge "Change v3 keypairs API to v2.1" 2014-08-29 13:27:19 +00:00
Jenkins 330b0340fc Merge "Convert compute/api to use NetworkRequest object and list" 2014-08-29 10:15:21 +00:00
Matthew Booth bafb4e5968 Use instance objects consistently in suspend tests
test_suspend() was passing an instance object, but test_suspend_error and
test_suspend_not_implemented were passing a dict. This change makes them all
pass an object.

In updating test_suspend_error and test_suspend_not_implemented, we also
convert both to use mock.

Change-Id: I97e28d50a99e920f7aa4f3586446e3fefe807658
2014-08-29 10:50:37 +01:00
Jenkins 76d6148c51 Merge "Refactor the servers API to use NetworkRequest" 2014-08-29 09:15:23 +00:00
Nikola Dipanov 4ae1ad5e2b libvirt: Add method for getting host NUMA topology
We can get this information from the libvirt capabilities XML now, so we
add a method that returns it in the form of
virt.hardware.VirtNUMATopology objects. We will exclude any CPUs not
found in the CONF.vcpu_pin_set.

Change-Id: Ibfc60bc71e49579bc5ab4996b752ed7a49830b6a
Blueprint: virt-driver-numa-placement
2014-08-29 10:52:01 +02:00
Nikola Dipanov 6d3c920a56 Add instance_extra table and related objects
This patch adds the table for storing the instance NUMA topology, as
adding it on the model itself as a text field is thought to be bad for
perfomance.

We need to add it as scheduling based on it and tracking resources
proves to be impossible otherwise as we would have to rely on
re-calculating it from data stashed in system_metadata table, which is
deemed even more inefficient if it needs to be done in a periodic task.

We add the objects so that we can make sure that data is versioned, and
the relevant database models methods and the migration for adding the
table.

Blueprint: virt-driver-numa-placement
Change-Id: I724ed7089044177ec4fecdf4fdcefad96a2466b6
2014-08-29 10:52:01 +02:00
Mikhail Durnosvistov 767c5d65b6 Move and generalize decorator serialize_args to nova.objects.base
It would be nice use decorator `serialize_args` as general-use
decorator. Note that this single-purpose decorator was covering
up our ability to drill down to the actual method implementation
for hash calculation in the TestObjectVersions test. This patch
also enhances the decorator to be transparent, and makes the
test able to drill down through multiple layers of decorators
to find the actual implementation.

Co-Authored-By: Dan Smith <dansmith@redhat.com>
Change-Id: Ie454bffba113d7b3a863e975b2fb0ee6fb1dd552
2014-08-29 10:45:23 +03:00
Jenkins 143de6ed1c Merge "Remove use of str on exceptions" 2014-08-29 05:26:13 +00:00
Ghanshyam f6f4145c9d Convert v3 certificate API to v2.1
This patch changes v3 certificate API to v2.1 and makes v2
unit tests share between v2 and v2.1.

The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.

Partially implements blueprint v2-on-v3-api

Change-Id: I8e6556dffbc14334f7ec1b9db38fbbfe2387bef0
2014-08-29 13:55:57 +09:00
Jenkins cf916cb5ab Merge "Add NetworkRequest object and associated list" 2014-08-29 03:57:11 +00:00
Jenkins 0f78e8f940 Merge "Stop augmenting oslo-incubators default log levels" 2014-08-29 03:56:04 +00:00
He Jie Xu 8353cb0524 Add extension block_device_mapping_v1 for v2.1
In the beginning v3 didn't support legacy block_device_mapping request.
For v2.1, we want to keep back-compatibility with v2 api, so we need
add legacy block_device_mapping.

This patch add new extension block_device_mapping_v1 for v2.1. Also
share legacy block_device_mapping related unittests between v2 and v2.1.

Partially implements blueprint v2-on-v3-api

Change-Id: I841833d8fd0995ddf49febd9c1611cf711742f5a
2014-08-29 10:36:43 +08:00
He Jie Xu 606d25ffdc Catch BDM related InvalidBDM exceptions for server create v2.1
For v2.1 api, we should catch exception explicitly. There are some
BDM related InvalidBDM* exceptions missing catch. This patch fix this.
Also move the related unittests into block_device_mapping unittests.

Change-Id: Id1bef4adc71ffedd52eb9278b5d09954fc1b1193
2014-08-29 10:35:38 +08:00
He Jie Xu e2fd04e281 Changes block_device_mapping extension into v2.1
This patch changes v3 block_device_mapping API to v2.1 and make
unittest share between v2 and v2.1

The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.

Partially implements blueprint v2-on-v3-api

Change-Id: I935b336523241a32dbd2bb8b154ce72afefd3aa9
2014-08-29 10:35:37 +08:00
Jenkins 62a8e4e47d Merge "Convert deferred_delete v3 plugin to v2.1 API" 2014-08-29 01:46:49 +00:00
Jenkins 3e033603aa Merge "libvirt: add validation of migration hostname" 2014-08-29 01:24:21 +00:00
Jenkins 3e4ef29cab Merge "Change V3 access_ips extension into v2.1" 2014-08-28 22:44:53 +00:00
Jenkins c2b5d454bf Merge "Refactor admin_action plugin and test cases" 2014-08-28 22:36:22 +00:00
Jenkins 0f7de506b3 Merge "Change v3 agents API to v2.1" 2014-08-28 22:03:42 +00:00
Jenkins 1c6b4d34de Merge "VMware: Add in support for CPU shares in event of resource contention" 2014-08-28 22:03:18 +00:00
Jenkins 15ff3d35a9 Merge "VMware: add resource limits for CPU" 2014-08-28 22:01:13 +00:00
Jenkins 2a97e1afe6 Merge "Port simple_tenant_usage into v2.1" 2014-08-28 18:40:13 +00:00
Jenkins 91407cb5b2 Merge "Backport V3 hypervisor plugin unit tests to V2" 2014-08-28 18:39:47 +00:00