Comment 1 for bug 1554760

Revision history for this message
Ji.Wei (jiwei) wrote :

In remotefs drive, the code flow of create a clone volume is

1、Create a snapshot of the source volume

2、Call function: copy_volume_from_snapshot
     self._copy_volume_from_snapshot(temp_snapshot,
                                            volume_info,
                                            volume['size'])

This function was introduced to the specified volume['size']

3、Delete temporary snapshot

From the code flow, it seems, do not need to check if it needs to extend the volume to a new size

However, the copy_volume_from_snapshot is not implemented in the drive

    def _copy_volume_from_snapshot(self, snapshot, volume, volume_size):
        raise NotImplementedError()

This causes the create_volume_from_snapshot create_cloned_volume function to be unable to use.

Perhaps, this requires a new BP to achieve this function?