]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add the volume and snapshot gigabytes together.
authorCory Stone <corystone@gmail.com>
Mon, 25 Mar 2013 20:09:37 +0000 (15:09 -0500)
committerJohn Griffith <john.griffith@solidfire.com>
Tue, 26 Mar 2013 23:48:12 +0000 (17:48 -0600)
commit3a9fcc337cd0eaa1412a1f5fc634ce03fa6c6f0d
tree10cde4b7995f5e0488c04fe4a6aa077651e7a77a
parent75af3f7669938e799df28adce228f0a5a9d7e109
Add the volume and snapshot gigabytes together.

The quota sync functions were not working correctly for both
snapshots and volumes regarding gigabytes. Each would report
their own count as the total gigabytes.

Now the gigabytes sync is separate from the volume and snapshot
count syncs.

Fixes bug #1160004

Change-Id: Ib1200813acb6055412b3f7f6b63fa9ba2b8fa3be
(cherry picked from commit 1fde5a4fbc73a31453f0fe288a0b4a929d7f3026)
cinder/db/sqlalchemy/api.py
cinder/quota.py
cinder/tests/test_quota.py