]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Add optional_args to fix Volume Import failure
authorJeegn Chen <jeegn.chen@emc.com>
Tue, 1 Jul 2014 03:31:19 +0000 (11:31 +0800)
committerJeegn Chen <jeegn.chen@emc.com>
Tue, 1 Jul 2014 09:12:23 +0000 (17:12 +0800)
Commit 971a63bd9cf675a00bce1244ec101577b5c17cac added a new
parameter 'optional_args' to execute method of QuotaReserveTask
and QuotaCommitTask. So the new parameter should be needed where
those Tasks are used. This changed volume create task flow to
provide the new parameter. We need the samiliar change to get_flow
method in cinder/volume/flows/manager/manage_existing.py

Trigger EMC VNX CI

Change-Id: Ifed7bd146eec82ba35c2b2c19e9bacd2259ae3ed
Closes-Bug: #1334086

cinder/volume/flows/manager/manage_existing.py

index 5ee2860c476242d4df917381db10ae8220d909fc..2de879b6872e2bc6974dcea0d0cd0e704e008f91 100644 (file)
@@ -102,7 +102,8 @@ def get_flow(context, db, driver, host, volume_id, ref):
     create_what = {
         'context': context,
         'volume_id': volume_id,
-        'manage_existing_ref': ref
+        'manage_existing_ref': ref,
+        'optional_args': {'is_quota_committed': False}
     }
 
     volume_flow.add(create_mgr.ExtractVolumeRefTask(db, host),