Add volume migration api support

Change-Id: I4bfaa17c75e9bc6803146b63937f21e0f0bd5852
Partially-Implements: blueprint volume-migration
This commit is contained in:
Zhenguo Niu 2015-04-14 18:16:26 +08:00
parent 50a1b5b736
commit 24ca5505ce

View File

@ -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)