From: TaoBai Date: Fri, 26 Sep 2014 11:20:08 +0000 (+0300) Subject: IBM Storwize: Improve error message X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=75b09a0ad9f050c9773a94bdf9bd8cbe2b090250;p=openstack-build%2Fcinder-build.git IBM Storwize: Improve error message 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 --- diff --git a/cinder/volume/drivers/ibm/storwize_svc/__init__.py b/cinder/volume/drivers/ibm/storwize_svc/__init__.py index 62ad086cf..62d2c7d59 100644 --- a/cinder/volume/drivers/ibm/storwize_svc/__init__.py +++ b/cinder/volume/drivers/ibm/storwize_svc/__init__.py @@ -894,8 +894,9 @@ class StorwizeSVCDriver(san.SanDriver): # 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,