A global was used for a cell list and tests would update this global and
fail depending on order run, etc.
Fixes bug 1235399
Change-Id: Ib06cfc89076e87ac3cfedd796687059862f20406
The method assert_ has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases
This patch is a mere sed replace of one-liner assert_ to assertTrue.
grep -lR "assert_(" nova/tests/* | \
xargs sed -ri 's/(\W+self.assert)_(\()(.+)(\)$)/\1True\2\3\4/'
Change-Id: I64b9764e1607a46877dad466a4be81e07bdf6f9a
The test_libvirt_kvm_iser_volume_with_multipath_getmpdev() test
expects a system with no real iSCSI devices. It actually triggers
an os.walk() of /dev/disk/by-path/ip-*, which will return any
iSCSI devices on the system. Since the test expects none, this
will cause the test to fail.
This patch just stubs that out to return an empty list always.
Change-Id: Ibb3fd18207d013c35487a3eebb336b5f288b703a
Closes-bug: #1234834
Reserve 10 migrations so that we have the option of backporting fixes
that include a db migration to the stable/havana branch. We did this
same thing to allow backports to stable/grizzly in
b52a2157be.
The choice of 10 migrations is just a magic number. We haven't used any
of the 10 reserved for stable/grizzly backports, so 10 seems to be
enough.
Implements blueprint backportable-db-migrations-icehouse
Change-Id: I2c5f2e5a966cfffa4a3e54e17fde07a52295f658
Using [] as an argument means that any changes to that argument
will stick across multiple calls to the method. In this case,
this is surprising behavior that may lead to confusion as we
reuse this method in more tests. Instead, set it to None, which
is non-mutable, and later assign it to [] inside method scope.
Change-Id: I9cc07b8917ad096c5efea9282bae08c41d15f1cf
Because the plugins live on a host seperate to Nova we need an interface
to test whether they are the expected version. We can't use pip or other
requirement systems as they are cross-machine.
Closes bug 1226622
Change-Id: I58ab669061f51bd87071e2cf0d93d33021001309
Add/fix the Docstring of "handle_scheduler_error" and
"instance_update_db" methods
Fix bug 1233546
Change-Id: I133c569fc9496f6d727a72b6d8e4844774cd983d
There's some periodic quota_usages syncing that can occur to help
correct any drift that may happen. It would be useful to log when that
occurs as it may indicate an issue somewhere.
Change-Id: I5b90ab42059ae8ebd0c3890accafb98e70ed037e
This should be accepted/merged once all the RC1 bugfixes are in.
This bumps the target version to 2014.1, effectively opening the master
branch to Icehouse development, ending the feature freeze.
The Havana release branch is cut from the previous commit in master.
Change-Id: Ia3a41177e3c91bd75b38833761f9f8af2b503e4b
The reason of attach_interface failed is current code passing VIF object
to attach_interface, but it expected NetworkInfo object. And as the
comment of attach/detach_interface, they should only accept one
interface to instance. So correct the interface signature only accept
an VIF object. And correct the fake driver behavior, make the test running
correctly.
Change-Id: Id0d28c39fb543853bd710fcb3c3b611306b4fb8f
Close-bug: #1233504