From: MORITA Kazutaka Date: Thu, 17 Jan 2013 07:40:24 +0000 (+0900) Subject: Fix sheepdog volume creation X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=6cfe5f2a6d99c9fff9386794149b273bd2442bd1;p=openstack-build%2Fcinder-build.git Fix sheepdog volume creation SheepdogDriver uses an undefined method _sizestr. This patch removes it. Change-Id: Id157df5c4d69148257060926dbac7b5bc2804ee0 Fixes: bug #1100655. --- diff --git a/cinder/volume/drivers/sheepdog.py b/cinder/volume/drivers/sheepdog.py index ed1466ddb..175686332 100644 --- a/cinder/volume/drivers/sheepdog.py +++ b/cinder/volume/drivers/sheepdog.py @@ -53,7 +53,7 @@ class SheepdogDriver(driver.VolumeDriver): """Creates a sheepdog volume""" self._try_execute('qemu-img', 'create', "sheepdog:%s" % volume['name'], - self._sizestr(volume['size'])) + '%sG' % volume['size']) def create_volume_from_snapshot(self, volume, snapshot): """Creates a sheepdog volume from a snapshot."""