commit 7d2641688454d9064b691e4aab4b5d8b14d75305
Author: Jay S. Bryant <email address hidden>
Date: Fri Nov 15 19:01:58 2013 -0600
Add default quota class into DB during migration
For some time now use_default_quota_class has been the
default setting for Cinder. Cinder, however, has not been putting
any defaults for the default quota class into the database. This
resulted in any command that queried for the default quotas to cause
the message "Deprecated: Default quota for resource: <resource> is set
by the default quota flag: <quota flag>, it is now deprecated. Please use
the default quota class for default quota."
This commit resolves this issue by setting the default value for volumes,
snapshots and gigabytes in the quota_class table at migration time if there
is not already a class_name of 'default' in the quota_classes table.
Reviewed: https:/ /review. openstack. org/56726 github. com/openstack/ cinder/ commit/ 7d2641688454d90 64b691e4aab4b5d 8b14d75305
Committed: http://
Submitter: Jenkins
Branch: master
commit 7d2641688454d90 64b691e4aab4b5d 8b14d75305
Author: Jay S. Bryant <email address hidden>
Date: Fri Nov 15 19:01:58 2013 -0600
Add default quota class into DB during migration
For some time now use_default_ quota_class has been the
default setting for Cinder. Cinder, however, has not been putting
any defaults for the default quota class into the database. This
resulted in any command that queried for the default quotas to cause
the message "Deprecated: Default quota for resource: <resource> is set
by the default quota flag: <quota flag>, it is now deprecated. Please use
the default quota class for default quota."
This commit resolves this issue by setting the default value for volumes,
snapshots and gigabytes in the quota_class table at migration time if there
is not already a class_name of 'default' in the quota_classes table.
Unit tests are included with this commit.
Closes-bug 1233763 eda22e31dfc198b 2ee051d3ece
Change-Id: I457ed8a9b78492