]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixed shared gigabytes quota resource.
authorJohn Griffith <john.griffith@solidfire.com>
Sun, 24 Mar 2013 20:49:46 +0000 (20:49 +0000)
committerjohn-griffith <john.griffith@solidfire.com>
Sun, 24 Mar 2013 22:18:56 +0000 (16:18 -0600)
commit6a29bda3c2050bb79298a088be17372c1687266a
treed170183b23c1ca7360309438e5c833a6d08ae2ae
parent18e2c3542a6db98b1a71e50ed77b337ab179a0ba
Fixed shared gigabytes quota resource.

The shared gigabytes resource between volumes and snapshots wasn't
working properly.  The issue was that on update/sync the action item
(volumes or snapshots) would update the resource usages based only on
it's own particular item.

This patch fixes that, and makes the total gigabytes truly shared
between volumesa and snapshots.

Fixes bug: 1159489

Change-Id: Ib1be9788f0beb4f94d010e4f816f9f3393371205
(cherry picked from commit d6935af9b3cdf73cc5dac2006d76a95e4c6cb35e)
cinder/quota.py
cinder/volume/api.py