Comment 6 for bug 1233763

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/havana)

Reviewed: https://review.openstack.org/71404
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=c1fca7affc22dc756f07f604f03c2343eeac9d15
Submitter: Jenkins
Branch: stable/havana

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)