Pass correct source_id to _handle_bootable_volume_glance_meta()

When we create a new volume from existing volume which has
volume_image_metadata, volume_image_metadata was not copied
to cloned volume.

This is a regression from Liberty and the root cause of this
problem was introduced via commit
032032f0c3.

This patch fixed a problem to pass correct source_id to
_handle_bootable_volume_glance_meta().

Change-Id: Ife1e9a6a25704569f8a599d19eee893bc7c0a469
Closes-Bug: #1557783
This commit is contained in:
Mitsuhiro Tanino 2016-03-15 18:56:59 -04:00
parent fc282f1ca0
commit 86d72d5806
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ class CreateVolumeFromSpecTask(flow_utils.CinderTask):
# will not destroy the volume (although they could in the future).
if srcvol_ref.bootable:
self._handle_bootable_volume_glance_meta(
context, volume_ref.id, source_volid=volume_ref.id)
context, volume_ref.id, source_volid=srcvol_ref.id)
return model_update
def _create_from_source_replica(self, context, volume_ref,