Comment 6 for bug 1613105

Revision history for this message
Ali Jabbar (jabbar-ali) wrote :

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))

Any clue please suggest ....