Wait for vip delete completion before deleting network
and subnet.
Also fix indentation in the driver
Closes-Bug: #
1288312
Change-Id: I88b3252102d6c4a60bbadf2951bbb74fcd19792b
LOG.debug('Operation consumed from the queue: ' +
str(oper))
- # check the status - if oper is done: update the db ,
- # else push the oper again to the queue
+ # check the status - if oper is done: update the db ,
+ # else push the oper again to the queue
result = self.rest_client.call('GET',
oper.operation_url,
None,
None, None)
]
self.rest_call_mock.assert_has_calls(calls, any_order=True)
- # need to switch greenthreads in order to let driver delete vip
- eventlet.greenthread.sleep(0)
+ # need to wait some time to allow driver to delete vip
+ eventlet.greenthread.sleep(1)
def test_update_vip(self):
self.rest_call_mock.reset_mock()