Enable the use of site-packages in tox which will allow the use of the
system install of libvirt while testing.
Hardcode the libvirt host UUID for tests that check this UUID when
system libvirt is being used. Without this hardcoding eight tests
would fail when using the system libvirt install.
Partially fixes bug #1113181
Change-Id: I59c5fbd45639962c0963298203c39759b6ca2d11
This issue is discussed at https://github.com/drkjam/netaddr/issues/2.
The bug in netaddr was fixed in release 0.7.6 on 13th Sep 2011.
Change-Id: Iea75a30963a09f9b0dd94138460bf041ab98fc66
Fixes: bug #1157058
This patch implements 'list_instance_uuids' in the xenapi virt driver so
that compute manager's '_get_instances_on_driver' can operate more
efficiently.
Fixes bug 1097980
The cleanup_running_deleted_instances periodic task uses the above call
while context has been modified to be read_deleted='yes'. Without
list_instance_uuids being implemented in xenapi, there's a fallback to
querying all instances on the host. Because of read_deleted='yes', this
queries all instances that have ever lived on the host. In a very busy
environment where instances are repeatedly built and destroyed, one can
end up with thousands of deleted instances. Now that we are storing
instance_type data in system_metadata and system_metadata is joined with
every instance_get, this results in 10x the number of rows being
returned with sqlalchemy... the fallback doesn't perform well enough.
Change-Id: I4bbfd69c9769807cec813af757665f03d9643460
This patch removes an unreachable line of code. Just above this line
was an if/else that had a return in both cases. This final return False
was unreachable.
Change-Id: Ib71f732d231dd541a4f77d0244dda2c8d9914060
The bind and unbind methods were only used by the old LXC
attach/detach volume code which was removed in
https://review.openstack.org/17861 (commit
b8831091a8). Remove them.
Fixes bug 1156127
Change-Id: I37b0344970415fe93faabd955b4b4db88de269db
This reverts commit 76c47c1c30.
Fix libvirt vif get_config interface breakage.
In 76c47c1 we added a new arg to the libvirt vif driver get_config
interface (instance_type=None). We did not update all the libvirt
drivers to use it however which can break things badly (instances
fail to spawn, etc). We clearly need more test coverage here as well.
This should fix SmokeStack.
Fixes LP Bug #1155950.
Change-Id: I073d119ea2bfd5c314d2d8c8bbf2f6d7d649753a
- Added create, delete, detail, show, and update
stubs to the Limits API
- Added unit test cases
Fixes bug 869877
Change-Id: I112a8016ff2cf83009b3bcfe2fe6307568ce7334
When packing values to store for an instance action, include the project
id from the request context. This allows tracking which tenant has
performed an action.
Bug 1155801
Change-Id: I07b986655581fd6fbfdced90eb3151019f18ada7
Fixes bug 1155761
This use of rstrip() could end stripping off more than just the ".gz"
suffix if the filename contains any of the ".gz" characters at the end
of the string.
Change-Id: Id75388453f286ca7b05bab51c9826c43c10ef516
The code supporting libvirt_disk_prefix was dropped during the
refactoring work in commit 7be531fe. This patch re-enables
support for this option, along with a test case to verify it.
Change-Id: I84f059e2b35d9237b799236032de5c272a03a451
In 1154253 we:
Drop gzip flag from tar command for OVF archives
While support more OVF file formats is a worthy goal the approach
in 1154253 is going to cause serious issues for existing
Nova XenServer users who are already zipping their OVS images.
I would also point out that our utils.py xenserver plugins still
zips tarballs we create (see create_tarball) so the new code
causes internal inconsistencies as well.
This should fix SmokeStack.
Fixes LP Bug #1155783.
Change-Id: Iff6db314c0dec6df2e48d98db2a547f6624b9d9a
There are a number of exceptions that can occur during pre
live-migration checks, and they should reset the task state to None when
they occur since they prevent the migration from beginning. This adds
two more exceptions to the list of exceptions that just need to reset
the task state rather than set the instance to error.
Bug 1100462
Change-Id: I95e09f49908fbc3a79f5d2eb490d5a0b3296a6ed
Fixes bug 1137977
A few Nova tables have foreign key constraints on other tables.
Deleting a row whose id is referenced as an enforced foreign key for
another table results in an error.
The fix is to detect the IntegrityError when we attempt to delete a row,
and exit from archive_deleted_rows_for_table early. The parent
archive_deleted_rows function will continue deleting from other tables,
including the one whose dependence on this row caused the IntegrityError,
and things will eventually sort themselves out.
Change-Id: I0afdfe0778057abc5fd269a20bfa4c4ca3a7b003
Currently migration 153 inserts 10 rows per instance in the database.
For new/small installations this is relatively quick, but for large
installations this can take some time.
This change modifies the migration to only insert records for
non-deleted instances and makes bulk inserts (10 rows are inserted
with each query, instead of 1 per query) for added speed.
Fixes bug 1155371
Change-Id: I88a6cec2c117368fda6eefd82150106a1542027d
The fix in fa52cb09b2 strips tracebacks
from exceptions when returning them to the user, but it still spams
the log with a long traceback. We shouldn't be including the traceback
when we wrap the exception in the first place. Instead we just
include the message.
It also updates the error code to 409 for device in use since this
is actually a conflict.
Fix for:
bug 1155315
bug 1103324
bug 1092610
Change-Id: I95019a3022eb52e0335c455009c13fe229475d03