From: Vipin Balachandran Date: Wed, 25 Mar 2015 11:28:07 +0000 (-0700) Subject: VMware: Improve invalid container error message X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d0087559e8333c3e07b15c8e09d0126556dfe9ea;p=openstack-build%2Fcinder-build.git VMware: Improve invalid container error message This patch improves the error message when dealing with invalid image container types. Mike had a comment in commit 869e71c31a6e2c1753796625b060fa39848af683 to make the error message more specific. Change-Id: I211e570e11c8525878195e3c24ef0957e6bb526d --- diff --git a/cinder/volume/drivers/vmware/vmdk.py b/cinder/volume/drivers/vmware/vmdk.py index a9b3c47c8..d5896c564 100644 --- a/cinder/volume/drivers/vmware/vmdk.py +++ b/cinder/volume/drivers/vmware/vmdk.py @@ -1240,8 +1240,8 @@ class VMwareEsxVmdkDriver(driver.VolumeDriver): # Validate container format; only 'bare' is supported currently. container_format = metadata.get('container_format') if (container_format and container_format != 'bare'): - msg = _("Container format: %s is unsupported, only 'bare' is " - "supported.") % container_format + msg = _("Container format: %s is unsupported by the VMDK driver, " + "only 'bare' is supported.") % container_format LOG.error(msg) raise exception.ImageUnacceptable(image_id=image_id, reason=msg)