Skip to content

Commit

Permalink
IBM Storwize: Improve error message
Browse files Browse the repository at this point in the history
Message "Unable to retype: Volume is replicated." can not really reflect
the reason why retype failed. We need to add additional information to
help user to better understand why retype failed.

Change-Id: If68bb1ba1e72df46fef35394c9ad207ffdeb271b
  • Loading branch information
JamesBai committed Oct 24, 2014
1 parent 7766ff9 commit 75b09a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cinder/volume/drivers/ibm/storwize_svc/__init__.py
Expand Up @@ -894,8 +894,9 @@ def retype_iogrp_property(volume, new, old):

# If volume is replicated, can't copy
if new_type_replication:
msg = (_('Unable to retype: Volume %s is replicated.'),
volume['id'])
msg = (_('Unable to retype: Current action needs volume-copy,'
' it is not allowed when new type is replication.'
' Volume = %s'), volume['id'])
raise exception.VolumeDriverException(message=msg)

retype_iogrp_property(volume,
Expand Down

0 comments on commit 75b09a0

Please sign in to comment.