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
# 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)