From 227731d4b64a3edf886d49bec724360bbf890059 Mon Sep 17 00:00:00 2001 From: Maxim Nestratov Date: Thu, 23 Feb 2017 19:20:16 +0300 Subject: [PATCH] libvirt: Fix misleading error in Ploop imagebackend Saying that Virtuozzo doesn't support, for instance qcow2 format, when Ploop backend was asked to work with something different from 'ploop' or 'raw' is completely wrong thus, we'd better change it. Change-Id: I008745e5de4a5739c9a447edb2a4ab8442f45821 --- nova/virt/libvirt/imagebackend.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nova/virt/libvirt/imagebackend.py b/nova/virt/libvirt/imagebackend.py index d6105058dd..2b0ecf2f0d 100644 --- a/nova/virt/libvirt/imagebackend.py +++ b/nova/virt/libvirt/imagebackend.py @@ -1078,10 +1078,10 @@ class Ploop(Image): elif format == "raw": self.pcs_format = "raw" else: - reason = _("Virtuozzo doesn't support images in %s format." - " You should either set force_raw_images=True" - " in config or upload an image in ploop" - " or raw format.") % format + reason = _("Ploop image backend doesn't support images in" + " %s format. You should either set" + " force_raw_images=True in config or upload an" + " image in ploop or raw format.") % format raise exception.ImageUnacceptable( image_id=kwargs["image_id"], reason=reason)