Commit Graph

50920 Commits

Author SHA1 Message Date
Zuul ed646ac55d Merge "update scheduler to use image-traits" 2018-05-11 22:34:20 +00:00
Zuul 3b21bc11fa Merge "Address feedback from instance_list smart-cell behavior" 2018-05-11 22:00:41 +00:00
Zuul a2de9c7d59 Merge "Fix irrelevant-files in nova-dsvm-multinode-base" 2018-05-11 20:53:02 +00:00
Zuul 268b4c5796 Merge "Add connection_parameters to list of items copied from database" 2018-05-11 18:39:13 +00:00
Zuul bfcbfdf916 Merge "libvirt: always pass emulator threads policy" 2018-05-11 18:36:12 +00:00
Zuul 1da469010f Merge "XenAPI: deprecate the config for image handler class path" 2018-05-11 16:36:24 +00:00
Matt Riedemann fd9aebee6b Fix irrelevant-files in nova-dsvm-multinode-base
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
2018-05-11 12:03:11 -04:00
Mike Bayer f0ad6a6a5d Add connection_parameters to list of items copied from database
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
2018-05-11 12:54:02 +00:00
Zuul c1e0d2bf20 Merge "[doc] Add soft_deleted flag" 2018-05-11 08:29:04 +00:00
jianghua wang 238b89b36e XenAPI: deprecate the config for image handler class path
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
2018-05-11 07:44:03 +00:00
Zuul a764d8f8ca Merge "compute: introduce cpu_shared_set option" 2018-05-11 07:30:48 +00:00
Zuul c52b645b64 Merge "Avoid warning log when image not exist" 2018-05-11 02:18:14 +00:00
Zuul 887e5bb04a Merge "Fix shelving a paused instance" 2018-05-11 01:51:34 +00:00
Zuul 4fa05ab6d4 Merge "[Doc]Link policies file into api" 2018-05-11 01:51:27 +00:00
jichen 1c56ef6b5d Avoid warning log when image not exist
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
2018-05-10 23:05:13 +00:00
Zuul 305bc05fc5 Merge "Make get_instance_objects_sorted() be smart about cells" 2018-05-10 22:31:30 +00:00
Zuul 948cbfc2bf Merge "Move create_tap_dev to the new utility module." 2018-05-10 21:48:07 +00:00
Arvind Nadendla 5f2b88b1aa update scheduler to use image-traits
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
2018-05-10 13:58:42 -07:00
Zuul 430d1d6c82 Merge "libvirt: check image type before removing snapshots in _cleanup_resize" 2018-05-10 20:43:37 +00:00
Zuul 3e4146a4b3 Merge "Remove mox in test_compute_api.py (1)" 2018-05-10 20:39:44 +00:00
Zuul 446ddabf1e Merge "Add CellMapping.get_by_project_id() query method" 2018-05-10 18:40:17 +00:00
Michael Still f9a0c1917c Move create_tap_dev to the new utility module.
Move another generally useful utility method out of nova-net to
somewhere more generic.

Change-Id: I1bf7afecd2e8122492dcb2c21b26e5b72919e6b5
blueprint: remove-nova-network
2018-05-10 13:56:23 -04:00
Dan Smith eb3da9f5a1 Address feedback from instance_list smart-cell behavior
This addresses minor feedback from the preceding patch to enable smart instance
listing behavior across cells.

Change-Id: I90d5f4bbe18913749f3aa4d209731be4a7ba27d9
2018-05-10 09:59:36 -07:00
Zuul 25fa2470e2 Merge "remove IVS plug/unplug as they're moved to separate plugin" 2018-05-10 10:29:25 +00:00
Zuul a0ff84e0ba Merge "Migrate tempest-dsvm-multinode-live-migration job in-tree" 2018-05-10 04:39:52 +00:00
Zuul 46e87ce6eb Merge "Add tests for alloc cands with poor local disk" 2018-05-10 02:56:11 +00:00
Zuul 922ca50fd0 Merge "Convert configdrive to use processutils." 2018-05-10 01:30:32 +00:00
Zuul e34c8c3f70 Merge "Remove mox in test_xenapi.py (1)" 2018-05-09 23:25:04 +00:00
Zuul b5bf853f16 Merge "Expose driver_block_device fields consistently" 2018-05-09 22:01:12 +00:00
Dan Smith 913a99c794 Make get_instance_objects_sorted() be smart about cells
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
2018-05-09 12:52:56 -07:00
Zuul 4ca6581bee Merge "Fix detach_volume calls when rolling back a failed attach" 2018-05-09 17:22:00 +00:00
Dan Smith a084a103b8 Add CellMapping.get_by_project_id() query method
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
2018-05-09 09:38:46 -07:00
Zuul 30ad9d7e51 Merge "Followup for multiple member_of qparams support" 2018-05-09 16:05:06 +00:00
jichen 1c3151dd43 [doc] Add soft_deleted flag
soft_deleted is support in query but we didn't mention in the doc

https://github.com/openstack/nova/blob/bcb405e871a447df57ea420402919a256f5d0be9/nova/db/sqlalchemy/api.py#L2127

Change-Id: I1c5577a501144170e82c96c04cffbf32dcaa5cff
Closes-Bug: 1765575
2018-05-09 14:41:30 +00:00
Matthew Booth b958bf1126 Expose driver_block_device fields consistently
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
2018-05-09 15:14:01 +01:00
Matt Riedemann 717d09149e Fix detach_volume calls when rolling back a failed attach
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
2018-05-09 09:52:04 -04:00
Aditya Prakash Vaja 92323586b5 remove IVS plug/unplug as they're moved to separate plugin
- 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
2018-05-09 06:02:51 -07:00
Balazs Gibizer 052cefcf43 Followup for multiple member_of qparams support
* 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
2018-05-09 14:15:01 +02:00
Zuul a8d3c61a57 Merge "Remove [scheduler]/host_manager config option" 2018-05-09 10:53:57 +00:00
jichen 936f765b85 [Doc]Link policies file into api
Link policies file into api.

Change-Id: I0afb7e850ad7064138ad2b69d0fa900d40f3efbe
2018-05-09 17:22:37 +08:00
Zuul bcb405e871 Merge "Convert certificate generation to processutils." 2018-05-09 08:49:57 +00:00
Zuul 23fce8c13f Merge "Remove unused methods in nova/compute/utils.py" 2018-05-09 08:33:26 +00:00
Sahid Orentino Ferdjaoui cbd9634bc2 libvirt: always pass emulator threads policy
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
2018-05-09 03:37:44 -04:00
Sahid Orentino Ferdjaoui 30cda5113c compute: introduce cpu_shared_set option
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>
2018-05-09 03:37:44 -04:00
Zuul 50f42333f5 Merge "Remove IronicHostManager and baremetal scheduling options" 2018-05-09 07:01:41 +00:00
Zuul 2434d597e7 Merge "Convert xenapi's xvp console to processutils." 2018-05-09 04:57:55 +00:00
Zuul ace121b5ec Merge "log stale allocations as WARNING instead of DEBUG" 2018-05-09 04:51:40 +00:00
Zuul b709892cdc Merge "Add docs for hw_video:ram_max_mb flavor extra spec" 2018-05-09 04:11:01 +00:00
Zuul 7e2f459032 Merge "Convert fping API to processutils.execute()" 2018-05-09 01:22:47 +00:00
Zuul 3f1c581fc6 Merge "Use .. deprecated:: theme for deprecations" 2018-05-08 23:47:51 +00:00