From 6a8c054097f87fe2ae5c4ee1886b84d4e4c561fb Mon Sep 17 00:00:00 2001 From: Itxaka Date: Fri, 5 Feb 2016 14:10:19 +0100 Subject: [PATCH] api cinder volume_migrate wrong number of params We were missing the lock_volume parameter, causing the call to volume_migrate to always fail. Change-Id: I8d2b5db9e2cb9551ac4bb47564b1f81c088d4ed3 Co-Authored-By: Dmitry Galkin Closes-bug: #1533663 --- openstack_dashboard/api/cinder.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openstack_dashboard/api/cinder.py b/openstack_dashboard/api/cinder.py index 3cd74c8c55..2c5ca36b86 100644 --- a/openstack_dashboard/api/cinder.py +++ b/openstack_dashboard/api/cinder.py @@ -334,10 +334,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): +def volume_migrate(request, volume_id, host, force_host_copy=False, + lock_volume=False): return cinderclient(request).volumes.migrate_volume(volume_id, host, - force_host_copy) + force_host_copy, + lock_volume) def volume_snapshot_get(request, snapshot_id):