Add volume migration api support
Change-Id: I4bfaa17c75e9bc6803146b63937f21e0f0bd5852 Partially-Implements: blueprint volume-migration
This commit is contained in:
parent
50a1b5b736
commit
24ca5505ce
@ -289,6 +289,12 @@ def volume_get_encryption_metadata(request, volume_id):
|
||||
return cinderclient(request).volumes.get_encryption_metadata(volume_id)
|
||||
|
||||
|
||||
def volume_migrate(request, volume_id, host, force_host_copy=False):
|
||||
return cinderclient(request).volumes.migrate_volume(volume_id,
|
||||
host,
|
||||
force_host_copy)
|
||||
|
||||
|
||||
def volume_snapshot_get(request, snapshot_id):
|
||||
snapshot = cinderclient(request).volume_snapshots.get(snapshot_id)
|
||||
return VolumeSnapshot(snapshot)
|
||||
|
Loading…
Reference in New Issue
Block a user