Fixes the wrong resources status after restore was finished

Change-Id: I6e85d4c6c7a1dfa81d086f5b316f9ac9b8d0f83c
Closes-Bug: #1710540
This commit is contained in:
luqitao 2017-08-14 12:30:04 +08:00
parent 283586f264
commit 4df11604cb
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ class RestoreOperation(protection_plugin.Operation):
failure_statuses=VOLUME_FAILURE_STATUSES,
ignore_statuses=VOLUME_IGNORE_STATUSES,
)
volume = cinder_client.volumes.get(volume.id)
if is_success is not True:
LOG.error('The status of volume is invalid. status:%s',
volume.status)