From: John Griffith Date: Mon, 29 Apr 2013 17:30:10 +0000 (-0600) Subject: Fix update snapshot-quotas on delete. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=93247d22a256db8ed44791343ae942d4f0c40d7f;p=openstack-build%2Fcinder-build.git Fix update snapshot-quotas on delete. The merge from stable to RC of the snapshot quota fixes missed the new CONF usage and as a result the setting was always ignored on delete and therefore quotas were not decremented on delete. This patch changes CONF back to FLAGS for that call and resolves the issue. Fixes bug: 1173365 Change-Id: I7af69d5078ebcc5547e08d543a2dcfd0ca3f6c4b --- diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py index e6886c14e..0e3fcb288 100644 --- a/cinder/volume/manager.py +++ b/cinder/volume/manager.py @@ -505,7 +505,7 @@ class VolumeManager(manager.SchedulerDependentManager): # Get reservations try: - if CONF.no_snapshot_gb_quota: + if FLAGS.no_snapshot_gb_quota: reservations = QUOTAS.reserve(context, project_id=project_id, snapshots=-1)