nova/nova/tests/functional/compute
Balazs Gibizer f875c9d12f Prevent init_host test to interfere with other tests
The test_migrate_disk_and_power_off_crash_finish_revert_migration test
needs to simulate a compute host crash at a certain point. It stops the
execution at a certain point by injecting a sleep then simulating a
compute restart. However the sleep is just 30 seconds which allows the
stopped function to return while other functional tests are running in
the same test worker process making those tests fail in a weird way.

One simple solution is to add a big enough sleep to the test that will
never return before the whole functional test execution. This patch
proposes a million seconds which is more than 277 hours. Similar to how
the other test in this test package works. This solution is hacky but
simple. A better solution would be to further enhance the capabilities
of the functional test env supporting nova-compute service crash / kill
+ restart.

Change-Id: Ib0d142806804e9113dd61d3a7ec15a98232775c8
Closes-Bug: #1839515
2019-08-13 08:36:48 -04:00
..
__init__.py virt: implement get_inventory() for Ironic 2017-03-15 21:49:25 +00:00
test_host_api.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_init_host.py Prevent init_host test to interfere with other tests 2019-08-13 08:36:48 -04:00
test_instance_list.py Minimal construct plumbing for nova list when a cell is down 2018-10-31 15:12:18 -04:00
test_live_migration.py Rename CinderFixtureNewAttachFlow to CinderFixture 2019-07-01 16:00:52 -05:00
test_migration_list.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_resource_tracker.py Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00