nova/nova/tests/functional
Balazs Gibizer a85ce04fa3 Stabilize unshelve notification sample tests
The notification sample test for unshelve waits for the instance to
reach ACTIVE state and then asserts if unshelve.end notification is
emitted properly. However the instance.vm_state is set to ACTIVE earlier[1]
than emitting the unshelve.end notification[2]. This can cause two
different test case failure.

1) _test_unshelve_server() fails with no ushelve.end notification
received.

2) _test_shelve_and_shelve_offload_server() also has a unshelve action
at the end and that test step also only waits for the the ACTIVE state.
So the unshelve.end notification from the end of
_test_shelve_and_shelve_offload_server() can bleed into the
_test_unshelve_server() step causing that it receive one more
notifications.

So this patch adds an extra
self._wait_for_notification('instance.unshelve.end') call to each test
step to prevent the instability.

[1] https://github.com/openstack/nova/blob/5c6c1f8f/nova/compute/manager.py#L5322-L5326
[2] https://github.com/openstack/nova/blob/5c6c1f8f/nova/compute/manager.py#L5329
[3] https://github.com/openstack/nova/blob/5c6c1f8f/nova/tests/functional/notification_sample_tests/test_instance.py#L836

Conflicts:
      nova/tests/functional/notification_sample_tests/test_instance.py
Conflicts due to:
* I019e88fabd1d386c0d6395a7b1969315873485fd

Closes-Bug: #1835070

Change-Id: Ie217523a8969326b27930d7f74e50e9b352ab7a1
(cherry picked from commit 40f1e7c4c2)
(cherry picked from commit 3bc6ff029f)
2019-07-04 12:58:26 +02:00
..
api Handle tags in _bury_in_cell0 2018-12-12 17:07:21 -05:00
api_sample_tests Fix os-simple-tenant-usage result order 2018-10-29 08:15:47 +00:00
compute Provide allocation_ratio/reserved amounts from update_provider_tree() 2018-10-31 11:49:46 -04:00
db Create request spec, build request and mappings in one transaction 2019-04-28 00:42:15 +00:00
libvirt Merge "Improve NeutronFixture and remove unncessary stubbing" 2018-08-02 17:44:55 +00:00
notification_sample_tests Stabilize unshelve notification sample tests 2019-07-04 12:58:26 +02:00
regressions Workaround missing RequestSpec.instance_group.uuid 2019-06-03 21:01:42 -04:00
wsgi fixtures: Track volume attachments within CinderFixtureNewAttachFlow 2018-10-23 13:46:26 +01:00
__init__.py
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 2018-10-29 08:15:47 +00:00
integrated_helpers.py Add method to get cpu traits 2018-07-24 12:37:46 +00:00
test_aggregates.py Check hosts have no instances for AZ rename 2019-03-06 16:31:28 +03:00
test_availability_zones.py Update instance.availability_zone on revertResize 2019-03-28 10:20:07 -04:00
test_boot_from_volume.py Properly track local root disk usage during moves 2018-10-31 12:45:49 -04:00
test_compute_mgr.py remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
test_images.py Share snapshot image membership with instance owner 2019-04-30 21:13:46 +09:00
test_instance_actions.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_legacy_v2_compatible_wrapper.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_list_servers_ip_filter.py Trivial: Nix duplicate PlacementFixture() in test 2017-12-01 15:39:28 -06:00
test_login.py
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 Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_nova_manage.py Merge "Delete instance_group_member records from API DB during archive" into stable/rocky 2018-09-21 12:01:46 +00:00
test_report_client.py Use placement microversion 1.26 in update_from_provider_tree 2018-08-20 11:48:57 -04:00
test_server_group.py Make scheduler.utils.setup_instance_group query all cells 2018-09-05 16:32:42 +00:00
test_servers.py Add functional confirm_migration_error test 2019-05-22 20:46:10 +00:00