Allow reserved status for attach check

This issue was due to Nova changes it's volume attach workflow
(https://review.openstack.org/#/c/330285) which allows `reserved`
status.
Closes-Bug: #1737343

Change-Id: I13f1906f53a89586bb51c0b70fa768a9500dfa26
This commit is contained in:
ricolin 2017-12-10 00:45:31 +08:00 committed by Rico Lin
parent 653c130a1d
commit 81a2e4ab43
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class CinderClientPlugin(client_plugin.ClientPlugin):
def check_attach_volume_complete(self, vol_id):
vol = self.client().volumes.get(vol_id)
if vol.status in ('available', 'attaching'):
if vol.status in ('available', 'attaching', 'reserved'):
LOG.debug("Volume %(id)s is being attached - "
"volume status: %(status)s",
{'id': vol_id, 'status': vol.status})