Merge "Log error when volume validation fails during boot from volume"

This commit is contained in:
Zuul 2019-09-25 18:55:09 +00:00 committed by Gerrit Code Review
commit f96d0ac980
1 changed files with 3 additions and 1 deletions

View File

@ -1598,7 +1598,9 @@ class API(base.Base):
raise
except exception.InvalidInput as exc:
raise exception.InvalidVolume(reason=exc.format_message())
except Exception:
except Exception as e:
LOG.info('Failed validating volume %s. Error: %s',
volume_id, e)
raise exception.InvalidBDMVolume(id=volume_id)
elif snapshot_id is not None:
try: