This was meant to be fixed by I017bf749f426717dc76cf99a387102848fb1c541 ,
but it didn't take into account that BDM entry was destroyed, which
caused the rebuild to fail when spawning the instance.
Add a new parameter to detach_volume() to bypass destroying of BDM,
as we just want to detach a volume first and then re-attach it again.
A Tempest test is added in I50557c69b54003d3409c8e977966f5332f4fe690
to make sure this is actually tested in the gate.
Closes-Bug: #1440762
Co-Authored-By: melanie witt <melwitt@yahoo-inc.com>
Change-Id: I9134fbf5ce72c32cca91de90001c09e00b4e19e8
The following commit missed to bump the related list when bumping the
object version.
commit 1d4ad44f15
Author: Przemyslaw Czesnowicz <przemyslaw.czesnowicz@intel.com>
Date: Thu Nov 20 12:04:05 2014 +0000
Add numa_node to PCIDevice
The change extends the PCI device model and its DB representation.
Query libvirt for the PCI devices numa node.
This patch adds the necessary changes to master. We only bump the
PciDeviceList version, and add a backporting rule to obj_relationship
dictionary of the Instance object, to start sending the new version with
1.20 version of the instance (we are currently on 1.21).
Landing this patch fixes versioning going forward, and all interactions
that request the PciDeviceList through the Instance object, however
applying the stable/kilo backport of this is required for Kilo nodes to
start requesting the latest version of PciDevice through PciDeviceList.
We can't send 1.2 PciDeviceList to Kilo nodes yet because of
related-bug 1475254 , so we have to backport this to Kilo first before
we can start sending the 1.2 to Kilo nodes.
Related-bug: #1474074
Change-Id: Id743848061d2bcd64d785979c7a11ee7c945f06b
Now the resource tracker has been converted to objects
there is no need for a reference to the conductor api.
This change removes obsolete references to conductor
from the resource tracker and related tests.
Change-Id: Ibf843e843975e3f0addb1471b31786e355b5beab
Partially-Implements: blueprint make-resource-tracker-use-objects
Commit 2ef014eb31 changed resource_tracker
to use the ComputeNode object instead of direct conductor calls. There
are a couple tests in test_tracker that assert that things are not called
which didn't get updated after this change (since they were still not
being called). This patch fixes those up.
Co-Authored-By: Paul Murray <pmurray@hp.com>
Change-Id: I6aaa927d08e5fa24163b4bad38f98586a063d14a
* Fix sort(): dictionaries are no more comparable on Python 3, use a key
function building a sorted list of the dictionary items
* Replace __builtin__ with six.moves.builtins
* get_hash_str() now accepts Unicode: Unicode is encoded to UTF-8
before hashing the string. Mention also the hash method (MD5) in the
docstring.
* LastBytesTestCase: use binary files instead of text files. Use also a
context manager on the TemporaryFile to ensure that the temporary file
is closed (even on error).
* Functions: use the __code__ attribute instead of func_code, and
__closure__ instead of func_closure. These attributes are also
available on Python 2.6.
* Replace unichr() with six.unichr()
* SafeTruncateTestCase(): write directly the chinese Unicode character
instead of using safe_decode() (which is not reliable, it depends on
the locale encoding!)
* sanitize_hostname(): On Python 3, decode the hostname from Latin1 to
get back Unicode. Add also a comment explaining the purpose of the
conversion to Latin1.
* last_bytes(): replace the hardcoded constant 22 with errno.EINVAL and
add a comment explaining how the function works.
* tox.ini: add nova.tests.unit.test_utils to Python 3.4
Blueprint nova-python3
Change-Id: I96d9b0581ceaeccf9c35e0c9bada369e9d19fd15
Changeset ed9f1b8b restricted the allowed options for iscsi_iface
to the allowed transports mentioned in the help text. iface &
transport are distinct entities for open-iscsi, and an iface is
generally a mix of transport plus an underlying interface, hence
this change was incorrect. This breaks transport support and is
generally incorrect, hence reverting
Closes-Bug:1466730
Change-Id: I687fb9c95133dbbb193004df44794404b58ca692
This reverts commit 5b4083f8cb
There are gate failures spiking with InstanceUpdateConflict
since this merged, the exception isn't being handled like
how UnexpectedTaskStateError would be handled, so we need
to think about this some more before landing it.
Change-Id: I1d2868eac456052a9ce05a7b8c838eff817d89a4
Closes-Bug: #1474550
The sphinx latex generation generates invalid latex that won't compile
when you try to use it.[1][2] This commit adds a helper script to generate
the sphinx latex and then modify it so it'll work. It depends on
ImageMagick convert and sed being available to work.
[1] https://github.com/sphinx-doc/sphinx/issues/1907
[2] https://github.com/sphinx-doc/sphinx/issues/1959
Change-Id: Id289c10907aaddae2483f18b39063852ec699d66
test_save_updates_numa_topology has a rather complex nova object to
represent numa. This includes items which are sets, but must be
converted to lists for json. This is not a stable output operation
across all space and time. The mock comparator was failing here some
times because of it.
Instead, we can manually inspect the parameter in question with our
json comparator to ensure that it is correct.
Closes-Bug: #1473949
Change-Id: Ibfa441356d10417e2b1e092826562ad03d8cfd02
There are three updates here:
1. Point to the correct path of development.environment.rst.
2. Update the path to test_wsgi.py after the test restructure
that happened in Kilo.
3. Just tell people to use `tox -e docs` for building docs.
Change-Id: I03295a6d9c90e9a2962999726d254bc4971c4909