Retry on closing of luks encrypted volume in case device is busy
We're seeing races in the gate on detach of an encrypted volume where
the device is busy so the detach fails, which causes the delete of the
volume on the cinder side to fail because the volume is still in use and
then Tempest times out waiting for the volume to be deleted.
This simply adds a retry to close the encryption device. I use
attempts=3 since that's what we use for lvremove.
Closes-Bug: #1374458
Change-Id: Ia0667da7dee247ba8c3338b296244b2a71d1045d
(cherry picked from commit eef97cdf4bb7f426d7feb394ef54510db8b1656b)
Reviewed: https:/ /review. openstack. org/130727 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=0695e144f74 69ba98247e625fa dc9a979a87af91
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit 0695e144f7469ba 98247e625fadc9a 979a87af91
Author: Matt Riedemann <email address hidden>
Date: Fri Sep 26 07:31:49 2014 -0700
Retry on closing of luks encrypted volume in case device is busy
We're seeing races in the gate on detach of an encrypted volume where
the device is busy so the detach fails, which causes the delete of the
volume on the cinder side to fail because the volume is still in use and
then Tempest times out waiting for the volume to be deleted.
This simply adds a retry to close the encryption device. I use
attempts=3 since that's what we use for lvremove.
Closes-Bug: #1374458
Change-Id: Ia0667da7dee247 ba8c3338b296244 b2a71d1045d 6d7feb394ef5451 0db8b1656b)
(cherry picked from commit eef97cdf4bb7f42