]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Roll back reservations quota in RPC if necessary
authorNate Potter <nathaniel.potter@intel.com>
Mon, 4 Jan 2016 23:10:19 +0000 (23:10 +0000)
committerMichał Dulko <michal.dulko@intel.com>
Tue, 16 Feb 2016 13:21:33 +0000 (14:21 +0100)
commit3ef58dd656d6fdf08457f16a2a39b0fbffd3c2ca
treeb2cae6678e2f317232c87e2b137e2b44dededf00
parenteb8be7655d6a59fa38b9a136d02e57e6df702a0c
Roll back reservations quota in RPC if necessary

Currently the latest version of the volume rpcapi passes along
old_reservations in retype whereas older versions do not. In the
case where old_reservations aren't passed, they will be checked again
in c-vol. This patch rolls back the quotas that were checked for
old_reservations if the client can't send the latest version in
the RPCAPI so that they aren't reserved twice.

This is an amendment to this recently merged patch:
Iba24edd8ad824837028353b52c90742df55c9173

Closes-Bug: 1546089
Related-bug: 1508249
Change-Id: I54b39f367b8552ed5e932c71265432e7cf72c073
cinder/tests/unit/test_volume_rpcapi.py
cinder/volume/rpcapi.py