]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix volume['id'] from integer to string
authorJohn Griffith <john.griffith@solidfire.com>
Thu, 7 Jun 2012 20:38:29 +0000 (14:38 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Thu, 7 Jun 2012 20:40:52 +0000 (14:40 -0600)
* This is the same fix as nova bug 1010200
* Missed in volume uuid migration

Change-Id: Ib433ea6a1f247aad7fcba72680fd14e82387ed62

cinder/volume/driver.py

index 5e640bd8b6b3a5f706aad0b39feaf921c924e475..54709e1a24641ae585da46ced0e4ff18c1f1538f 100644 (file)
@@ -268,7 +268,7 @@ class ISCSIDriver(VolumeDriver):
                                                            volume['id'])
         except exception.NotFound:
             LOG.info(_("Skipping ensure_export. No iscsi_target "
-                       "provisioned for volume: %d"), volume['id'])
+                       "provisioned for volume: %s"), volume['id'])
             return
 
         iscsi_name = "%s%s" % (FLAGS.iscsi_target_prefix, volume['name'])
@@ -316,7 +316,7 @@ class ISCSIDriver(VolumeDriver):
                                                            volume['id'])
         except exception.NotFound:
             LOG.info(_("Skipping remove_export. No iscsi_target "
-                       "provisioned for volume: %d"), volume['id'])
+                       "provisioned for volume: %s"), volume['id'])
             return
 
         try:
@@ -325,7 +325,7 @@ class ISCSIDriver(VolumeDriver):
             self.tgtadm.show_target(iscsi_target)
         except Exception as e:
             LOG.info(_("Skipping remove_export. No iscsi_target "
-                       "is presently exported for volume: %d"), volume['id'])
+                       "is presently exported for volume: %s"), volume['id'])
             return
 
         self.tgtadm.delete_logicalunit(iscsi_target, 0)