Skip to content

Instantly share code, notes, and snippets.

@e0ne
Created January 20, 2016 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e0ne/3c457c0e39f460ddbf70 to your computer and use it in GitHub Desktop.
Save e0ne/3c457c0e39f460ddbf70 to your computer and use it in GitHub Desktop.
cinder.volume.manager._migrate_volume_generic (https://github.com/openstack/cinder/blob/master/cinder/volume/manager.py#L1623)
||
\/
...
cinder.volume.manager._copy_volume_data(src, dest) (https://github.com/openstack/cinder/blob/master/cinder/volume/manager.py#L1681)
||
\/
will try to attach 'src' and 'dest' volumes to the c-vol manager's host to copy volume data using `dd` tool
||
\/
cinder.volume.manager._attach_volume (https://github.com/openstack/cinder/blob/master/cinder/volume/manager.py#L1532)
||
\/
calls initialize_connection
calls _connect_device
||
\/
cinder.volume.manager._connect_device (https://github.com/openstack/cinder/blob/master/cinder/volume/manager.py#L1504)
||
\/
gets connector from os-brick an calls connect_volume
||
\/
connect_volume
||
\/
vol_utils.copy_volume(src_dev, dest_dev)
BUT: connect_volume doesn't `attach` volume for every protocol!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment