]> 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 20:52:03 +0000 (20:52 +0000)
commitd6935af9b3cdf73cc5dac2006d76a95e4c6cb35e
treed5004f77d10209d70b76bc93d8c6ea9d33c73802
parent821e7ce075636f763b86b74fc8117fad6dbae3f1
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
cinder/quota.py
cinder/volume/api.py