diff options
author | Rongze Zhu <zrzhit@gmail.com> | 2012-09-12 07:32:03 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2012-09-13 05:39:49 +0000 |
commit | 24fa0cc0c644c846baa746cf580cea9fd863a26f (patch) | |
tree | 618222feb59c5780ffa448c32e7754be2457a4b1 /nova/volume/api.py | |
parent | ef8d6a57a166d20782d8ad284b2b72aa4ec48572 (diff) | |
download | nova-24fa0cc0c644c846baa746cf580cea9fd863a26f.tar.gz nova-24fa0cc0c644c846baa746cf580cea9fd863a26f.tar.xz nova-24fa0cc0c644c846baa746cf580cea9fd863a26f.zip |
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
Diffstat (limited to 'nova/volume/api.py')
-rw-r--r-- | nova/volume/api.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |