nova/nova/tests/functional
Matt Riedemann 581df2c986 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.

NOTE(mriedem): In this version we have to request a specific port
to avoid a NetworkAmbiguous failure when creating the server.

Change-Id: I05700c97f756edb7470be7273d5c9c3d76d63e29
Related-Bug: #1830747
(cherry picked from commit c96c7c5e13)
(cherry picked from commit 8478a75480)
(cherry picked from commit a0a187c9bb)
2019-06-03 15:37:59 -04:00
..
api Handle tags in _bury_in_cell0 2018-12-12 17:20:44 -05:00
api_sample_tests Fix os-simple-tenant-usage result order 2019-01-22 18:09:21 +01:00
compute Handle volume API failure in _post_live_migration 2018-10-16 22:43:20 -04:00
db Create request spec, build request and mappings in one transaction 2019-04-30 14:22:03 +00:00
libvirt Merge "Bump minimum required libvirt/qemu versions for Pike" 2017-02-24 02:50:33 +00:00
notification_sample_tests Fix a comment in a notification functional test 2018-01-27 11:36:22 +00:00
regressions Add regression recreate test for bug 1830747 2019-06-03 15:37:59 -04:00
wsgi fixtures: Track volume attachments within CinderFixtureNewAttachFlow 2018-10-22 15:51:59 -04:00
__init__.py move eventlet GREENDNS override to top level 2014-12-08 17:41:03 -05:00
api_paste_fixture.py Remove legacy v2 API functional tests 2016-05-04 18:17:23 +08:00
api_samples_test_base.py Fix os-simple-tenant-usage result order 2019-01-22 18:09:21 +01:00
integrated_helpers.py Add functional confirm_migration_error test 2019-05-29 00:54:39 +00:00
test_aggregates.py re-Allow adding computes with no ComputeNodes to aggregates 2017-05-25 10:56:29 -07:00
test_availability_zones.py Update instance.availability_zone on revertResize 2019-03-28 10:30:55 -04:00
test_compute_mgr.py Pass RequestSpec to ConductorTaskAPI.build_instances 2017-12-20 13:58:29 -05:00
test_images.py Add create image functional negative tests 2016-12-26 14:15:14 +09:00
test_instance_actions.py make microversion a client level construct for tests 2016-02-24 11:02:05 -05:00
test_legacy_v2_compatible_wrapper.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
test_list_servers_ip_filter.py Trivial: Nix duplicate PlacementFixture() in test 2017-12-01 15:39:28 -06:00
test_login.py update api_samples code to use better variables 2015-12-14 11:23:26 +08:00
test_metadata.py Remove unused logging import 2017-02-17 15:17:51 +07:00
test_middleware.py Removes unnecessary utf-8 encoding 2016-12-20 10:27:01 +07:00
test_multiattach.py [api] Allow multi-attach in compute api 2018-01-22 10:45:13 -05:00
test_nova_manage.py Unmap compute nodes when deleting host mappings in delete cell operation 2018-03-16 10:37:49 +01:00
test_server_group.py Make scheduler.utils.setup_instance_group query all cells 2018-09-05 16:36:22 +00:00
test_servers.py Add functional confirm_migration_error test 2019-05-29 00:54:39 +00:00