Update Volume Delete rejection message
When a user tries to delete a volume in "awaiting-transfer" state , the error message received does not include the "awaiting-transfer" state in invalid states of Volume for deletion. This leads to the user believing the volume-delete request is valid and is not able to debug the reason for failure of the volume deletion for volume present in "awaiting-transfer" state. Closes-Bug: #1971603 Change-Id: I78915c332169b26ffb2b97310efedec65bc25e4d
This commit is contained in:
parent
a540555457
commit
2b75fa3021
|
@ -508,7 +508,8 @@ class API(base.Base):
|
|||
status = utils.build_or_str(expected.get('status'),
|
||||
_('status must be %s and'))
|
||||
msg = _('Volume %s must not be migrating, attached, belong to a '
|
||||
'group, have snapshots or be disassociated from '
|
||||
'group, have snapshots, awaiting a transfer, '
|
||||
'or be disassociated from '
|
||||
'snapshots after volume transfer.') % status
|
||||
LOG.info(msg)
|
||||
raise exception.InvalidVolume(reason=msg)
|
||||
|
|
Loading…
Reference in New Issue