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?
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 _copy_volume_ from_snapshot( temp_snapshot,
volume_ info,
volume[ 'size'] )
self.
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): rror()
raise NotImplementedE
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?