Commit Graph

54358 Commits

Author SHA1 Message Date
Zuul f2b58bb20b Merge "Make all functional tests reusable by other projects" 2019-06-05 07:20:42 +00:00
Zuul a4792bba40 Merge "db: Remove cell APIs" 2019-06-04 18:02:45 +00:00
Zuul 2ea6e6f8db Merge "Follow up for counting quota usage from placement" 2019-06-04 05:54:29 +00:00
Zuul 81cd04aed7 Merge "Cleanup migrate flags" 2019-06-03 22:13:37 +00:00
Zuul d7c949bff2 Merge "Set/get group uuid when transforming RequestSpec to/from filter_properties" 2019-06-03 22:13:28 +00:00
Zuul 1af5c3c116 Merge "Workaround missing RequestSpec.instance_group.uuid" 2019-06-03 22:13:15 +00:00
Zuul 3370f0f03c Merge "Noop CantStartEngineError in targets_cell if API DB not configured" 2019-06-03 21:31:25 +00:00
Zuul 36e7502879 Merge "Exclude broken ironicclient versions 2.7.1" 2019-06-03 19:44:11 +00:00
Zuul 9c8d77b4df Merge "Bump openstackdocstheme to 1.30.0" 2019-06-03 19:42:08 +00:00
Zuul 1b7c848995 Merge "Remove remaining vestiges of fake_libvirt_utils from unit tests." 2019-06-03 19:25:36 +00:00
Zuul b6f1c314c7 Merge "Reset the stored logs at each notification test steps" 2019-06-03 19:25:28 +00:00
Zuul 4487073321 Merge "Avoid lazy-loading instance.flavor in cold migration" 2019-06-03 18:24:34 +00:00
Zuul c6ff31db7f Merge "Ensure that metadata proxy raises correct exception" 2019-06-03 15:38:26 +00:00
Zuul 0c9c422c87 Merge "Add extra logging to request filters" 2019-06-03 15:15:21 +00:00
Takashi NATSUME 8f78dc68d9 Avoid lazy-loading instance.flavor in cold migration
The instance.flavor is lazy-loaded currently in the resize method
in nova/compute/api.py.

Set expected_attrs=['flavor'] at the common.get_instance
in the _migrate method
in nova/api/openstack/compute/migrate_server.py
to avid lazy-loading instance.flavor.

Change-Id: Iba3b7c3e027ec78395a102c1fed46fa7a2ffa7be
Closes-Bug: #1829877
2019-06-03 15:28:21 +09:00
翟小君 11e7dda320 Exclude broken ironicclient versions 2.7.1
Depends-On:https://review.opendev.org/#/c/659612/

Change-Id: Ia887be9e61ab68ab5cf1586082f2791118fc9c93
2019-06-02 20:25:21 +08:00
Zuul 1459e8edb9 Merge "Add documentation for counting quota usage from placement" 2019-06-01 02:32:32 +00:00
Zuul 8a75a49ca5 Merge "Use instance mappings to count server group members" 2019-06-01 02:32:20 +00:00
Zuul 68997d72bf Merge "Add regression recreate test for bug 1830747" 2019-06-01 02:32:11 +00:00
Zuul 61d34880bd Merge "Move _fill_provider_mapping to the scheduler_utils" 2019-06-01 02:32:04 +00:00
Zuul 04a70e66d1 Merge "Remove fake_libvirt_utils from libvirt imagebackend tests." 2019-06-01 02:07:56 +00:00
Zuul 936fed896a Merge "Remove fake_libvirt_utils from virt driver tests." 2019-06-01 00:21:32 +00:00
melanie witt 5e74915064 Follow up for counting quota usage from placement
This addresses comments from the series:

  * Remove usage-specific info from docstring
  * Add note to nova-next job description "changelog"
  * Add info about data migration to config option help
  * Consolidate code under count_usage_from_placement conditional
  * Consolidate variables for checking data migration doneness
  * Remove hard-coded user_id and project_id from func test
  * Re-word code comment about checking data migration doneness

Related to blueprint count-quota-usage-from-placement

Change-Id: Ida2de9256fcc9e092fb9977b8ac067fc1472c316
2019-05-31 21:23:58 +00:00
Michael Still d524215f7b Remove remaining vestiges of fake_libvirt_utils from unit tests.
A final cleanup of the libvirt driver testing to not use
fake_libvirt_utils.

Change-Id: If11d6df99a6774b783f77a18f2f00d261534b208
2019-05-31 15:58:53 -05:00
Zuul a8fbb904be Merge "xenapi: log quality warning in init_host" 2019-05-31 20:50:55 +00:00
Zuul 9c80ac015f Merge "extract baselineCPU API call from _get_cpu_traits()" 2019-05-31 20:50:48 +00:00
Matt Riedemann 6b4f89ab59 Set/get group uuid when transforming RequestSpec to/from filter_properties
As a follow up to change I20981c987549eec40ad9762e74b0db16e54f4e63
we can avoid having an incomplete InstanceGroup by updating
the _to_legacy_group_info and _populate_group_info methods to set/get
the group uuid to/from the filter_properties.

Change-Id: I164a6dee1e92a65fcf6e89525ee194bb482e9920
Related-Bug: #1830747
2019-05-31 15:26:24 -04:00
Matt Riedemann da453c2bfe Workaround missing RequestSpec.instance_group.uuid
It's clear that we could have a RequestSpec.instance_group
without a uuid field if the InstanceGroup is set from the
_populate_group_info method which should only be used for
legacy translation of request specs using legacy filter
properties dicts.

To workaround the issue, we look for the group scheduler hint
to get the group uuid before loading it from the DB.

The related functional regression recreate test is updated
to show this solves the issue.

Change-Id: I20981c987549eec40ad9762e74b0db16e54f4e63
Closes-Bug: #1830747
2019-05-31 15:17:54 -04:00
Matt Riedemann c96c7c5e13 Add regression recreate test for bug 1830747
Before change I4244f7dd8fe74565180f73684678027067b4506e in Stein, when
a cold migration would reschedule to conductor it would not send the
RequestSpec, only the filter_properties. The filter_properties contain
a primitive version of the instance group information from the RequestSpec
for things like the group members, hosts and policies, but not the uuid.
When conductor is trying to reschedule the cold migration without a
RequestSpec, it builds a RequestSpec from the components it has, like the
filter_properties. This results in a RequestSpec with an instance_group
field set but with no uuid field in the RequestSpec.instance_group.
That RequestSpec gets persisted and then because of change
Ie70c77db753711e1449e99534d3b83669871943f, later attempts to load the
RequestSpec from the database will fail because of the missing
RequestSpec.instance_group.uuid.

The test added here recreates the pre-Stein scenario which could still
be a problem (on master) for any corrupted RequestSpecs for older
instances.

Change-Id: I05700c97f756edb7470be7273d5c9c3d76d63e29
Related-Bug: #1830747
2019-05-31 15:17:07 -04:00
melanie witt e3aadaf17f Add documentation for counting quota usage from placement
Part of blueprint count-quota-usage-from-placement

Change-Id: I88919634551b654b6cfdd377ac5de78106bc894f
2019-05-31 18:08:45 +00:00
melanie witt 799c0e4b95 Use instance mappings to count server group members
This adds a get_count_by_uuids_and_user() method to the InstanceMapping
object and uses it to count instance mappings for the purpose of
counting quota usage for server group members. By counting server group
members via instance mappings, the count is resilient to down cells in
a multi-cell environment.

Part of blueprint count-quota-usage-from-placement

Change-Id: I3ff39d5ed99a68ad8678e5ff62b343f3018b4768
2019-05-31 18:08:39 +00:00
Michael Still c1aa4dff01 Remove fake_libvirt_utils from libvirt imagebackend tests.
I can't really explain why there was so much mocking of
methods that only appear in fake_libvirt_utils (but not
libvirt.utils) here. I guess we're just lucky.

Change-Id: I9a9dab1dd71073ce94f40c782fd6c0275144265f
2019-05-31 12:14:20 -05:00
Michael Still 30d6bc3c87 Remove fake_libvirt_utils from virt driver tests.
We were mocking this for all virt drivers, and the replacement to
the big scary magical thing is trivial.

Change-Id: I2f90d6b109fe319f6b03fab9a3a2e2ca5c4e54e6
2019-05-31 12:14:16 -05:00
Zuul 0793b4f641 Merge "libvirt: Rework 'EBUSY' (SIGKILL) error handling code path" 2019-05-31 15:41:26 +00:00
Zuul 244c924067 Merge "Remove unnecessary wrapper" 2019-05-31 13:44:52 +00:00
Zuul c9afa017a6 Merge "Stop handling 'InstanceUnknownCell' exception" 2019-05-31 13:31:03 +00:00
Zuul e72075b800 Merge "Remove fake_libvirt_utils from snapshot tests." 2019-05-31 12:05:43 +00:00
Zuul 6e4ab9714c Merge "Keep attach_mode as top-level field in _translate_attachment_ref" 2019-05-31 00:56:14 +00:00
Zuul 2bdfd9da46 Merge "Remove zeromq from getting started with compute docs" 2019-05-30 23:42:15 +00:00
Zuul 40f388ca13 Merge "Remove unused param from _fill_provider_mapping" 2019-05-30 23:25:08 +00:00
Eric Fried 3051c718e0 Bump openstackdocstheme to 1.30.0
...to pick up many improvements, including the return of table borders.

Change-Id: Ife2859bf1581fb2965a5056a589fa276c8691324
2019-05-30 18:06:19 -05:00
Zuul 743cac21c7 Merge "[ironic] Don't remove instance info twice in destroy" 2019-05-30 21:59:12 +00:00
Zuul 809799e581 Merge "Set [quota]count_usage_from_placement = True in nova-next" 2019-05-30 20:39:56 +00:00
Zuul 653515a450 Merge "Count instances from mappings and cores/ram from placement" 2019-05-30 20:39:43 +00:00
Zuul c5ee0b8341 Merge "Add get_usages_counts_for_quota to SchedulerReportClient" 2019-05-30 20:39:32 +00:00
Matt Riedemann 92c7e0e0b4 xenapi: log quality warning in init_host
The xenapi driver has not had working third party CI
for several months. As a result, this change logs a
warning on startup of the service in the init_host
method indicating the lack of testing and the possibility
that the driver may be deprecated in the future if the
situation does not change.

This was discussed at the 2019-05-30 nova meeting [1] and
also at the Train PTG.

[1] http://eavesdrop.openstack.org/meetings/nova/2019/nova.2019-05-30-14.00.log.html

Change-Id: I7f8eb7d5c5a9b1cb0a8d5e607d719b49a22675d3
2019-05-30 14:57:01 -04:00
Zuul 9913569ac8 Merge "Remove mox in unit/network/test_neutronv2.py (12)" 2019-05-30 18:33:41 +00:00
Zuul f7a7e473ba Merge "Remove mox in unit/network/test_neutronv2.py (11)" 2019-05-30 18:33:29 +00:00
Zuul add86f331e Merge "Remove mox in unit/network/test_neutronv2.py (10)" 2019-05-30 18:33:16 +00:00
Zuul 132541bebf Merge "Remove mox in unit/network/test_neutronv2.py (9)" 2019-05-30 18:33:05 +00:00