]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Removed unnecessary call to ensure_export
authorUnmesh Gurjar <unmesh.gurjar@vertex.co.in>
Fri, 31 Aug 2012 14:25:39 +0000 (07:25 -0700)
committerUnmesh Gurjar <unmesh.gurjar@vertex.co.in>
Fri, 31 Aug 2012 14:25:39 +0000 (07:25 -0700)
Removed the extra call to 'ensure_export' from '_copy_image_to_volume' while
creating a volume from an image.

Fixes LP: #1044399

Change-Id: I189a4cb66b965367289c2f677147ee085e431190

cinder/volume/manager.py

index 68c4e6feca0be99e334e9ba1316908a8be8d87a2..bc82a5eb76a1bd04f753fa65de8bbc0838865198 100644 (file)
@@ -292,7 +292,6 @@ class VolumeManager(manager.SchedulerDependentManager):
         volume_id = volume['id']
         payload = {'volume_id': volume_id, 'image_id': image_id}
         try:
-            self.driver.ensure_export(context.elevated(), volume)
             image_service, image_id = glance.get_remote_image_service(context,
                                                                       image_id)
             self.driver.copy_image_to_volume(context, volume, image_service,