]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fixing notify message of manage_existing flow
authorwanghao <wanghao749@huawei.com>
Mon, 27 Jul 2015 04:20:21 +0000 (12:20 +0800)
committerwanghao <wanghao749@huawei.com>
Wed, 29 Jul 2015 00:45:32 +0000 (00:45 +0000)
Use manage_existing.end instead of create.end to send notify
when process of managing existing is finished.

Change-Id: If3a56eb0ddba045851f6790230a8d35fb1a0b11a
Closes-Bug: #1478758

cinder/volume/flows/manager/manage_existing.py

index 12f70e59f30ddd8a84fdb09d0672a86ecc1df8e4..dcbd8ae3735404f8e68db46c02aed2f32ebd9448 100644 (file)
@@ -114,7 +114,8 @@ def get_flow(context, db, driver, host, volume_id, ref):
                     create_api.QuotaReserveTask(),
                     ManageExistingTask(db, driver),
                     create_api.QuotaCommitTask(),
-                    create_mgr.CreateVolumeOnFinishTask(db, "create.end"))
+                    create_mgr.CreateVolumeOnFinishTask(db,
+                                                        "manage_existing.end"))
 
     # Now load (but do not run) the flow using the provided initial data.
     return taskflow.engines.load(volume_flow, store=create_what)