Comment 2 for bug 1952420

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

Reviewed: https://review.opendev.org/c/openstack/cinder/+/819668
Committed: https://opendev.org/openstack/cinder/commit/6a2716de161a1143b56c92bf1cc672c34573233a
Submitter: "Zuul (22348)"
Branch: master

commit 6a2716de161a1143b56c92bf1cc672c34573233a
Author: Gorka Eguileor <email address hidden>
Date: Wed Nov 10 12:42:44 2021 +0100

    Quota: Add backup related default limits

    Logs show deprecation warning in the logs when creating backups.

    Warnings are related to the "backups" and "backup_gigabytes" quota
    resources:

      Deprecated: Default quota for resource: backups is set by the default
      quota flag: quota_backups, it is now deprecated. Please use the
      default quota class for default quota.

      Deprecated: Default quota for resource: backup_gigabytes is set by the
      default quota flag: quota_backup_gigabytes, it is now deprecated.
      Please use the default quota class for default quota.

    This warning is shown because the ``quota_classes`` table doesn't have
    entries for these 2 resources for the "default" quota class.

    This patch adds a database migration to create the ``backups`` and
    ``backup_gigabytes`` entries in the ``quota_classes`` table like we have
    for the other standard resources, such as ``volumes``, ``gigabytes``,
    etc.

    Closes-Bug: #1952420
    Change-Id: I2a83e9b23f40a8ef4a734b456e4b7afb1ad65f94