commit c1fca7affc22dc756f07f604f03c2343eeac9d15
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
Change-Id: I457ed8a9b78492eda22e31dfc198b2ee051d3ece
(cherry picked from commit 7d2641688454d9064b691e4aab4b5d8b14d75305)
Reviewed: https:/ /review. openstack. org/71404 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=c1fca7affc2 2dc756f07f604f0 3c2343eeac9d15
Committed: https:/
Submitter: Jenkins
Branch: stable/havana
commit c1fca7affc22dc7 56f07f604f03c23 43eeac9d15
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 64b691e4aab4b5d 8b14d75305)
Change-Id: I457ed8a9b78492
(cherry picked from commit 7d2641688454d90