The nova-live-migration test hook configuration is in
nova/tests/live_migration/hooks and because of the
irrelevant-files list on the job, changes to those
setup scripts are not self-testing. This change fixes
the regex so we can self-test the nova-live-migration
job changes.
Change-Id: Ia7e35d483f660e98eea5e109e010f77d5419af85
oslo.db includes additional essential options that are
at the moment hardcoded in Nova's api_database conf.
Here, we add connection_parameters, which itself was added
to oslo.db to work around Nova's database-persisted
database URLs being difficult to modify.
This change should have been included in
I22f8a19009408fb1f1587bf399e6aee3467c8bc6 as this is part of
allowing nova to support SQLAlchemy extensions including
profiling.
Change-Id: I249aeabb5f029a2c4648651cf1e7b9b2e552e395
This commit is to deprecate the config of image_upload_handler
which need to be configured with a class path string. And we
should make download handler be configurable to be consistent
with the upload handler.
So it contains the following changes:
1. deprecate the option of "image_upload_handler".
2. added a new option of "image_handler" which will be used to
choose a short name from the supported image handler plugins.
The proper handler will be loaded at runtime basing on the
option setting.
TODO(jianghuaw): For the legacy handler of VdiThroughDevStore
which has no download function implemented. For downloading, it
is handled in a different way (call xenapi.vm_utils._stream_disk()).
We keep it as it is now. In the future, we should consider to
move _stream_disk to VdiThroughDevStore's download().
Change-Id: I37860e63de32d988525cdc32440fe711777263e6
Blueprint: xenapi-image-handler-option-improvement
when doing snapshot nova try to get image info and
normal case is image doesn't exist but nova shows
a warning log ,this patch change the mechanism to
only log unexpected exception as warning.
Change-Id: I49618a6dafbe00b9516ff37172b6aea68a42deba
Closes-Bug: 1754071
Update the scheduler to take into account the traits specified
as part of the image properties. The required traits from the
image are added to the resource request along with the traits
and resources from the flavor.
This change does not handle rebuilding of the instance, this
will come as part of a follow on patch.
Added unit and functional tests
Change-Id: I3e00080a6b557c6a27634b1dc04fc589f0da0bc2
Implements: blueprint glance-image-traits
Move another generally useful utility method out of nova-net to
somewhere more generic.
Change-Id: I1bf7afecd2e8122492dcb2c21b26e5b72919e6b5
blueprint: remove-nova-network
This addresses minor feedback from the preceding patch to enable smart instance
listing behavior across cells.
Change-Id: I90d5f4bbe18913749f3aa4d209731be4a7ba27d9
This makes the get_instance_objects_sorted() method only query for instances
in cells that the tenant actually has instances landed in. We do this by getting
a list of cell mappings that have instance mappings owned by our project and
limiting the scatter/gather operation to just those cells. Per the behavior
in db/sqlalchemy/api, we always list all cells for admins.
Change-Id: I442621e2b4acd63d2cfc8a66ab5b32b64ebcaea0
This allows us to query for CellMapping objects by providing a project_id.
We get back a list of cells for which the project has InstanceMappings.
Change-Id: I40b866dcba5f3665eb40011afe65638184aae9c6
Currently only _proxy_as_attr fields are available as attributes, and
they are not available as dict values. Other values are available as
both. This is inconsistent. This change ensures all fields are exposed
as both dict values and attributes, so the caller doesn't have to
remember which type of attribute they're accessing.
Part of bp local-disk-serial-numbers
Change-Id: I35ebff9a06617aa58e612919eba81e8eea21f6a3
Change I751fcb7532679905c4279744919c6cce84a11eb4 modified
the ComputeDriver.detach_volume method signature to pass
the RequestContext as the first argument. This was missed
in the volume attach rollback code where the driver.detach_volume
method is called. It was missed because that is called
in a try/except block which catches generic Exception, which
also means that the unit test covering that flow, which
raised an Exception, was not failing.
This change fixes the code bug and re-writes the test to
use mock rather than mox and explicitly assert the calls made.
An alternative to this would be changing the generic
Exception handling in the rollback code, however, the
virt drivers raise things other than NovaException, like
os-brick exceptions and libvirtError, so refactoring that
error handling is non-trivial.
Change-Id: I9bafd4c47489b61973302310720b11ec1b5e0374
Closes-Bug: #1765742
- as per the bug #1704129, the plug/unplug is moved to a
separate os-vif plugin
- IVS's methods have also been moved to a separate package
called os-vif-bigswitch [1]
- hence removing all dangling calls from here
[1] https://github.com/bigswitch/os-vif-bigswitch
Partial-Bug: #1704129
Change-Id: Icf948f6ee1c0da2327fb5eac61fec6e89ac30531
* Function documentation of member_of param is fixed in multiple places
* Defaulting member_of to None instead of empty string to use a value
that the caller documented to expect
* Fixing placement db test case that still used a single UUID list as
member_of
Change-Id: I9b7184f8f8b1e621df61b5652956707345be2ab0
It's necessary to pass the policy since in the following change we
will handle the special case with SHARE and CONF.cpu_shared_set
configured.
Change-Id: Icab6a16993e2d3a69ab60fd512981bc65d7f6eb3
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
Partial-implement: bp/overhead-pin-set
The CONF.compute.cpu_shared_set option will be used for best-effort
guest vCPU resources.
It's to note that an other effort done by spec cpu-resources will use
that same option to provide isolation between dedicated and shared
instances. But currently outside of the scope of that whole serie.
Change-Id: Ibedd31e284ec9bc70e257e6a88b4d82b021db0fd
Partial-implement: bp/overhead-pin-set
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>