From 75b09a0ad9f050c9773a94bdf9bd8cbe2b090250 Mon Sep 17 00:00:00 2001 From: TaoBai Date: Fri, 26 Sep 2014 14:20:08 +0300 Subject: [PATCH] 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 --- cinder/volume/drivers/ibm/storwize_svc/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, -- 2.45.2