From: John Griffith Date: Wed, 10 Jul 2013 19:41:10 +0000 (-0600) Subject: Fix missing volume_name_template flag. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=488fe5e8605dabf22914a99d3c57bb249ef9c36a;p=openstack-build%2Fcinder-build.git 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 --- diff --git a/cinder/volume/drivers/lvm.py b/cinder/volume/drivers/lvm.py index 4fba2db4e..0f9df0ffe 100644 --- a/cinder/volume/drivers/lvm.py +++ b/cinder/volume/drivers/lvm.py @@ -300,7 +300,7 @@ class LVMVolumeDriver(driver.VolumeDriver): 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'],