Commit Graph

41395 Commits

Author SHA1 Message Date
Jenkins f4e42e1ec6 Merge "Port cinder unit tests to Python 3" 2016-06-27 11:49:14 +00:00
Jenkins 44f95da186 Merge "Remove rate_limit param in builder" 2016-06-27 11:48:34 +00:00
Jenkins 55b0c24b36 Merge "libvirt: Add boot ordering to individual disks" 2016-06-27 11:47:48 +00:00
Jenkins 5333f91048 Merge "image_meta: Add hw_rescue_device and hw_rescue_bus" 2016-06-27 11:46:54 +00:00
Jenkins 0dfcfe2ccb Merge "api-ref: verify images.inc" 2016-06-27 11:46:09 +00:00
Jenkins 9373f7f2d5 Merge "XenAPI: Support neutron security group" 2016-06-27 11:45:26 +00:00
Jenkins c77a873c30 Merge "Check if flavor.vcpus is more than MAX_TAP_QUEUES" 2016-06-27 11:44:34 +00:00
Jenkins 1d329d5f1b Merge "live migration check source failed caused bdm.device_path lost" 2016-06-27 11:10:50 +00:00
Jenkins 6737c9b562 Merge "Stop using mox from unit/fake_server_actions.py" 2016-06-27 11:10:06 +00:00
Jenkins 888f69d7e3 Merge "Remove mox from unit/virt/libvirt/volume/*.py" 2016-06-27 11:09:16 +00:00
Jenkins cf3c99e28e Merge "Remove mox in tests/unit/objects/test_instance_faults" 2016-06-27 11:08:35 +00:00
Jenkins 51520dd631 Merge "Remove mox from tests/unit/virt/test_imagecache.py" 2016-06-27 11:08:01 +00:00
Jenkins 3d653c47fa Merge "Added support for new block device format in Hyper-V" 2016-06-27 11:07:21 +00:00
Jenkins 11b17dada3 Merge "libvirt: fix disk size calculation for VZ container instances" 2016-06-27 11:06:34 +00:00
Jenkins 9ab4e6ba2a Merge "add ploop support into qemu-img info" 2016-06-27 11:01:32 +00:00
Jenkins a074c661e4 Merge "Make print py3 compatible" 2016-06-26 14:18:10 +00:00
Jenkins aa963b3136 Merge "collapse servers.ViewBuilderV21 into servers.ViewBuilder" 2016-06-26 14:17:31 +00:00
Jenkins 4862c41120 Merge "remove personality extension" 2016-06-26 14:14:09 +00:00
Jenkins 20bd9242e2 Merge "remove preserve-ephemeral rebuild extension" 2016-06-26 14:13:18 +00:00
Jenkins c033b88a3d Merge "remove access_ips extension" 2016-06-26 14:06:43 +00:00
Jenkins cdbcfd9cf0 Merge "policy: Replaces 'authorize' in nova-api (part 1)" 2016-06-26 13:59:58 +00:00
Jenkins 74b7b19b9a Merge "libvirt: split out code for determining if migration should abort" 2016-06-25 14:55:04 +00:00
liangjingtao a0f5a56a15 Make print py3 compatible
In PY3,remove the print "", join the print () function to achieve
the same function,this patch is to fix it.

Change-Id: Ie860e912b0c7101fd9d1d5c8373db8688f99122c
Closes-Bug: #1595773
2016-06-25 08:19:27 +00:00
Mikhail Feoktistov b1753b095a libvirt: fix disk size calculation for VZ container instances
Image based VZ containers root disks are stored in libvirt XML
configuration as filesystems, so we need to parse them accordinly.
Their virtual disks are in fact directories that contain different
files. We can get size of virtual image via qemu-img, while total disk
size is a total space that ploop directory consumes.

Closes-Bug: #1528638
Change-Id: I7bac5511df1f30ded3cea263e6b46e605e20e5fb
2016-06-25 04:01:43 -04:00
Jenkins 06e5406966 Merge "Bump the service version for get-me-a-network support" 2016-06-25 00:00:00 +00:00
Jenkins 9fdd680d43 Merge "neutron: handle 'auto' network request in allocate_for_instance" 2016-06-24 23:57:09 +00:00
Jenkins 84ab4d7702 Merge "Add instance groups tables to the API database" 2016-06-24 22:46:23 +00:00
Lee Yarwood 3bc7a6a2e4 libvirt: Add boot ordering to individual disks
Allow the ordering of individual disks at boot time. At present this is
only planned to be used by the stable disk device rescue feature but
could easily be used elsewhere in the future.

Implements: blueprint virt-rescue-stable-disk-devices
Change-Id: Ic51b158944cc9e8442d74792f703ff74fa8cff77
2016-06-24 21:46:03 +01:00
Lee Yarwood fb01c84532 image_meta: Add hw_rescue_device and hw_rescue_bus
Add device and bus image properties to provide more control over how an
image is presented to an instance during rescue.

Implements: blueprint virt-rescue-stable-disk-devices
Change-Id: I92cc4fd5337fb7a7d55bdff4cfee62bdf3ecf8a1
2016-06-24 21:46:03 +01:00
Jenkins 1b93f0d74e Merge "libvirt: add perf event support when create instance" 2016-06-24 18:51:25 +00:00
Sean Dague 36daca0acc collapse servers.ViewBuilderV21 into servers.ViewBuilder
We used to have 2 different server views to handle the differences
between base V20 and V21 APIs, however with the drop of the legacy V20
stack we only need one. This prevents the duplication in show method,
and simplifies the code.

The diff looks a little odd because this was copying the v21 show over
the v20 show, so the unrelated whitespace changes were actually in the
old method, and do make it more readable.

Part of bp:api-no-more-extensions

Change-Id: I8a03ba4b896a16d97131d51761760622520d01fd
2016-06-24 14:46:23 -04:00
Sean Dague 76b58b8f89 remove personality extension
This removes personality extension, as well as the rebuild extension
point for servers.

We add an operation flag to translate extension because personality
extension uses different kwarg names depending on the operation. This
is done with a set of constants which should prevent typos silently
causing failures.

A few variables are renamed in servers.py to avoid multiline
statements.

Part of bp:api-no-more-extensions

Change-Id: I47deae0279f85d9a355d1248b6e90af732406514
2016-06-24 14:44:53 -04:00
Sean Dague f26739394f remove preserve-ephemeral rebuild extension
This folds this back into the main rebuild flow. As there were no unit
tests for this, doing so was pretty simple.

Part of bp:api-no-more-extensions

Change-Id: I19f791ed5af917b5509940765fedc1b944fcf315
2016-06-24 14:32:23 -04:00
Sean Dague 600480e59d remove access_ips extension
Part of bp:api-no-more-extensions

Change-Id: Id48dfdf29bb6b250ad505428bd034074cb611cc1
2016-06-24 14:32:23 -04:00
Jenkins 997b63f740 Merge "Rename driver method check_can_live_migrate_destination_cleanup" 2016-06-24 18:12:38 +00:00
Matt Riedemann df0a4e0990 Bump the service version for get-me-a-network support
The REST API is going to be checking that all computes
in the deployment are running new enough code to support
network requests with the special 'auto' and 'none' values
for Get Me a Network, so we need to bump the service version
which can be used as the minimum version to check.

Part of blueprint get-me-a-network

Change-Id: Ia1af75422d5e1fd4535c1ed9703d855239282559
2016-06-24 14:02:24 -04:00
Matt Riedemann d7320be2e2 neutron: handle 'auto' network request in allocate_for_instance
This handles auto-allocating a network with Neutron when no
specific networks are requested, 'auto' is specified on the
request and there are no existing networks available to the
project.

Related-Bug: #1591766

Part of blueprint get-me-a-network

Change-Id: Ibeccfd83c5703671b7fe08090e24c23cc3509371
2016-06-24 14:02:23 -04:00
Jenkins f3700e20d9 Merge "libvirt: split out code for detecting live migration job type" 2016-06-24 17:31:34 +00:00
Jenkins db7023d8ad Merge "Ensures that progress_watermark and progress_time are updated" 2016-06-24 16:00:18 +00:00
Jenkins 491613e3f3 Merge "Fix ConsoleAuthTokens to work for all console types" 2016-06-24 15:58:21 +00:00
Jenkins 944373da4d Merge "objects: Add devices_metadata to instance object" 2016-06-24 15:56:20 +00:00
Jenkins bb552d4e35 Merge "objects: new InstanceDeviceMetadata object" 2016-06-24 15:44:11 +00:00
Jenkins 36f8988d02 Merge "policy: Add defaults in code (part 6)" 2016-06-24 15:37:38 +00:00
ghanshyam a41d396152 api-ref: verify images.inc
This completes the verification of images.inc for
all required area(parameter, example, body)

Part of bp:api-ref-in-rst

Change-Id: I47ed4d0b4446a0b45a1df312b84ec6bfdaa134b6
2016-06-24 14:35:23 +00:00
Daniel P. Berrange ab907510a3 libvirt: split out code for determining if migration should abort
There are two timeouts that can cause migration to be aborted,
one looks to see if forward progress is being made, while the
other checks an overall time limit. Split out the code for
checking these limits into a separate method and add some
explicit unit testing for the scenarios they encounter.

Implements: blueprint libvirt-clean-driver
Change-Id: I115fc7f0b41840244f7e60dcb733062209f9460b
2016-06-24 15:32:35 +01:00
Daniel P. Berrange 66b7771ce9 libvirt: split out code for detecting live migration job type
When we see a job type of "NONE", we have code to convert that
to another more useful job type. Split this code out into its
own method to make it easier to test it in isolation. This new
testing exposed a bug in log debug messages where the 'ex'
parameter was not being correctly passed in a dict.

Refactoring of mocking in migration tests in test_driver.py is
left as a future exercise once this whole series is merged.

Implements: blueprint libvirt-clean-driver
Change-Id: I80e5b2c22a03556bfce29a74ae304cef6b6841cb
2016-06-24 15:32:33 +01:00
Jenkins c2d59bb043 Merge "api-ref: added docs for microversion 2.26" 2016-06-24 14:23:22 +00:00
Claudiu Belu 8473204b23 policy: Replaces 'authorize' in nova-api (part 1)
Updates nova.api.openstack.compute modules to use the
context's 'can' method instead of the existing
'authorize' function.

Co-Authored-By: Andrew Laski <andrew@lascii.com>

Change-Id: I834cff54c1bc079b566cb66b4173d4cf109bc686
Partially-Implements: bp policy-in-code
2016-06-24 15:57:10 +03:00
Jenkins 5730a39ed7 Merge "fix developer docs on API" 2016-06-24 12:47:03 +00:00
Kengo Sakai b9303e6764 Check if flavor.vcpus is more than MAX_TAP_QUEUES
When attempting to instantiate an instance based on an image with
the metadata hw:vif_multiqueue_enabled=true, the code uses
flavor.vcpus as the number of queues on a tap interface.

In kernels prior to 3.0, multiple queues on a tap interface
is not supported[1]. In kernels 3.x, the number of queues
on a tap interface is limited to 8 as MAX_TAP_QUEUES in tun
driver[2]. From 4.0, the number is 256[3]. If flavor.vcpus
is more than MAX_TAP_QUEUES, creating the tap interface
fails.

This commit adds logic to check if flavor.vcpus is more
than MAX_TAP_QUEUES and use MAX_TAP_QUEUES as the number
of queues if so.

[1]https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/drivers/net/tun.c?id=refs/tags/v2.6.32.71#n101
[2]https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/drivers/net/tun.c?id=refs/tags/v3.18.35#n118
[3]https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/drivers/net/tun.c?id=refs/tags/v4.1.26#n128

Change-Id: I2aa24e3cf550ff69909a2b4bc8be90641dbe3d69
Closes-Bug: #1570631
2016-06-24 21:46:10 +09:00