From 488fe5e8605dabf22914a99d3c57bb249ef9c36a Mon Sep 17 00:00:00 2001 From: John Griffith Date: Wed, 10 Jul 2013 13:41:10 -0600 Subject: [PATCH] Fix missing volume_name_template flag. volume_template_name was converted to a self.configuration option, however we don't import that opt in the self.configuration changes. This patch switches the specifier back to the global CONF Fixes bug: 1199909 Change-Id: I1431ba8a46b3a86ed77c02646a1c5fd1f62ae010 --- cinder/volume/drivers/lvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/drivers/lvm.py b/cinder/volume/drivers/lvm.py index 4fba2db4eb..0f9df0ffe6 100644 --- a/cinder/volume/drivers/lvm.py +++ b/cinder/volume/drivers/lvm.py @@ -300,7 +300,7 @@ def copy_volume_to_image(self, context, volume, image_service, image_meta): def create_cloned_volume(self, volume, src_vref): """Creates a clone of the specified volume.""" LOG.info(_('Creating clone of volume: %s') % src_vref['id']) - volume_name = self.configuration.volume_name_template % src_vref['id'] + volume_name = CONF.volume_name_template % src_vref['id'] temp_id = 'tmp-snap-%s' % src_vref['id'] temp_snapshot = {'volume_name': volume_name, 'size': src_vref['size'],