Strange behavior in this problem When control is in the function :wait_for_volume_status volume status shows it 'in-use' and just after the time out it is showing that - it is available, in the failure leg.
Confusing why below code in this function is not coming in available state....???/
start_time = time.time()
while time.time() - start_time < timeout:
volume = self.client.volumes.get(volume.id)
if volume.status == status: break time.sleep(poll_interval)
else: self.fail("Volume %s did not reach status %s after %d s" % (volume.id, status, timeout))
Strange behavior in this problem When control is in the function :wait_for_ volume_ status volume status shows it 'in-use' and just after the time out it is showing that - it is available, in the failure leg.
Confusing why below code in this function is not coming in available state....???/ volumes. get(volume. id)
break
time. sleep(poll_ interval)
self. fail("Volume %s did not reach status %s after %d s"
% (volume.id, status, timeout))
start_time = time.time()
while time.time() - start_time < timeout:
volume = self.client.
if volume.status == status:
else:
Any clue please suggest ....