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
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
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
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
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
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
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
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
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
This completes the verification of images.inc for
all required area(parameter, example, body)
Part of bp:api-ref-in-rst
Change-Id: I47ed4d0b4446a0b45a1df312b84ec6bfdaa134b6
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
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
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