From 24fa0cc0c644c846baa746cf580cea9fd863a26f Mon Sep 17 00:00:00 2001 From: Rongze Zhu Date: Wed, 12 Sep 2012 07:32:03 +0000 Subject: Add reservations parameter when cast "create_volume" to volume manager Fixes bug #1050192 Add reservations parameter when _cast_create_volume cast "create_volume" to volume manager. So VolumeManager.create_volume() can commit the reservations in volume quota. Change-Id: I8f3104d53bde55d4d83f39253869cc78a8511750 --- nova/volume/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nova/volume/api.py b/nova/volume/api.py index eb03b94c3..ab93853bc 100644 --- a/nova/volume/api.py +++ b/nova/volume/api.py @@ -175,7 +175,8 @@ class API(base.Base): topic, {"method": "create_volume", "args": {"volume_id": volume_id, - "snapshot_id": snapshot_id}}) + "snapshot_id": snapshot_id, + "reservations": reservations}}) else: self.scheduler_rpcapi.create_volume( context, volume_id, snapshot_id, reservations) -- cgit