]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Be sure to check deleted types on quota update.
authorJohn Griffith <john.griffith@solidfire.com>
Fri, 12 Jul 2013 23:43:27 +0000 (17:43 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Tue, 16 Jul 2013 18:45:11 +0000 (12:45 -0600)
commit18308807de7e7090854d6fde9ae06c7ffbf9b7ac
treec345fb98f6111d4c102c6be7670f37d9d64802bc
parent5be685218b5dc08b9cd9e024482bbb2ed2eccf7d
Be sure to check deleted types on quota update.

If a volume-type is deleted, and later a volume
that's assigned that type is deleted the quota
update will fail and result in a trace for
VolumeTypeNotFound exception.

The volume is succesfully deleted, however the
quota information for the volume-type let alone
the other quota items for the volume are not
updated.

Fixes bug: 1200709

Change-Id: Idd687514be9d622df84aad54b1b33ddc6615851b
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/quota.py