fix race in test_interface_detach_with_port_with_bandwidth_request
During port detach the unbind towards neutron happens before the
port allocation is removed from placement. The functional test only
waited for the port unbind before asserted the remaining allocations and
therefore it was racy.
Fortunately the instance.interface_detach.end is emitted after the both
the unbind and the allocation shrink. So the test is changed to wait for
this notification instead.
Reviewed: https:/ /review. openstack. org/642387 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d52c8fea06e 333c9cda42eb609 25a112203fc83a
Committed: https:/
Submitter: Zuul
Branch: master
commit d52c8fea06e333c 9cda42eb60925a1 12203fc83a
Author: Balazs Gibizer <email address hidden>
Date: Mon Mar 11 10:05:02 2019 +0100
fix race in test_interface_ detach_ with_port_ with_bandwidth_ request
During port detach the unbind towards neutron happens before the
port allocation is removed from placement. The functional test only
waited for the port unbind before asserted the remaining allocations and
therefore it was racy.
Fortunately the instance. interface_ detach. end is emitted after the both
the unbind and the allocation shrink. So the test is changed to wait for
this notification instead.
Change-Id: I53d76d6353ae63 4e387672e14943f 518955b221e
Closes-Bug: #1819374