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
032032f0c329b4eddcbf2185399396ff4fd5f00d.
This patch fixed a problem to pass correct source_id to
_handle_bootable_volume_glance_meta().
Change-Id: Ife1e9a6a25704569f8a599d19eee893bc7c0a469
Closes-Bug: #
1557783
# 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,