The test_volume_swap_server notification sample test was unstable
becase sometimes volume_swap.end notification was missing. The test was
waiting for the new volume id to appear on the REST API before
asserting the received notifications but the compute manager updates
the BDM earlier and then emits the volume_swap.end.
This patch modifies the test to explicitly wait for the
volume_swap.end notification. This expected to remove the test
instability.
Reviewed: https:/ /review. openstack. org/484288 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=cf7f61c180c 294f533e2286978 85a0ffb7e429bc
Committed: https:/
Submitter: Jenkins
Branch: master
commit cf7f61c180c294f 533e228697885a0 ffb7e429bc
Author: Balazs Gibizer <email address hidden>
Date: Mon Jul 17 10:32:00 2017 +0200
fix test_volume_ swap_server instability
The test_volume_ swap_server notification sample test was unstable
becase sometimes volume_swap.end notification was missing. The test was
waiting for the new volume id to appear on the REST API before
asserting the received notifications but the compute manager updates
the BDM earlier and then emits the volume_swap.end.
This patch modifies the test to explicitly wait for the
volume_swap.end notification. This expected to remove the test
instability.
Change-Id: Id6eefa7c85c4f6 3562344b552f027 f1d513a90e1
Closes-Bug: #1704392