Files
nova/nova
Lee Yarwood cbffac7df1 functional: Avoid race and fix use of self.api within test_bug_1831771
This test would previously only attempt to invoke a race between
instance.save(expected_task_state=task_states.SPAWNING) and a parallel
attempt to delete an instance when the instance also has a vm_state of
ACTIVE and task_state of None. However vm_state and task_state would
often be different within the test resulting in no attempt to invoke the
test being made.

As instance.save is only called with expected_task_state set to
task_states.SPAWNING by _unshelve_instance and _build_and_run_instance
we should just check for this and avoid any state races within the test.

Additionally when attempting to invoke the race this test would call
_wait_for_server_parameter and provide self.api. This change removes
this argument as since I8c96b337f32148f8f5899c9b87af331b1fa41424 this is
no longer required and will result in a `TypeError:
'TestOpenStackClient' object is not subscriptable` error.

Closes-Bug: #1866072
Change-Id: I36da36cc5b099174eece0dfba29485fc20b2867b
2020-03-04 13:39:45 +00:00
..
2020-02-18 11:45:39 +00:00
2020-01-17 11:30:40 +00:00
2020-02-18 11:45:39 +00:00
2019-12-09 06:44:38 +00:00
2020-01-14 21:25:56 +00:00
2020-02-18 15:13:45 +00:00
2020-01-20 14:44:54 +00:00
2019-12-12 10:55:02 +00:00
2020-01-08 13:54:12 +00:00
2020-01-14 21:25:56 +00:00
2020-02-06 15:49:07 +00:00