]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix sheepdog volume creation
authorMORITA Kazutaka <morita.kazutaka@gmail.com>
Thu, 17 Jan 2013 07:40:24 +0000 (16:40 +0900)
committerMORITA Kazutaka <morita.kazutaka@gmail.com>
Sat, 19 Jan 2013 02:53:02 +0000 (11:53 +0900)
SheepdogDriver uses an undefined method _sizestr.  This patch removes
it.

Change-Id: Id157df5c4d69148257060926dbac7b5bc2804ee0
Fixes: bug #1100655.
cinder/volume/drivers/sheepdog.py

index ed1466ddbeebdd2d5e4800d837aca3980a0a0810..175686332f213a644d744a90916676352f4565c4 100644 (file)
@@ -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."""