Our cases for what we allow delete on are limited, this is
fine, however we should log the status of a volume that we
are unable to delete so there's some feed-back as to exactly
why the delete call failed.
Change-Id: I95a9584d4875e188024be13bb53246be63c72374
return
if not force and volume['status'] not in ["available", "error",
"error_restoring"]:
- msg = _("Volume status must be available or error")
+ msg = _("Volume status must be available or error, "
+ "but current status is: %s") % volume['status']
raise exception.InvalidVolume(reason=msg)
if volume['attach_status'] == "attached":