Quota shows warnings on backup creation

Bug #1952420 reported by Gorka Eguileor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Low
Gorka Eguileor

Bug Description

Logs show deprecation warning in the logs when creating backups.

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

  Nov 26 10:03:32 localhost.localdomain <email address hidden>[390423]: WARNING cinder.quota [req-e3682860-e795-4db7-99ce-841b59479a2b req-673716ec-5706-43c2-bc02-ac95f6c1f18c admin admin] 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.

  Nov 26 10:03:32 localhost.localdomain <email address hidden>[390423]: WARNING cinder.quota [req-e3682860-e795-4db7-99ce-841b59479a2b req-673716ec-5706-43c2-bc02-ac95f6c1f18c admin admin] 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, unlike the other quota resources (``volumes``, ``gigabytes``, ``snapshots``, etc.) which have them because they are added by the database migration.

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

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/819668

Changed in cinder:
status: New → In Progress
Changed in cinder:
importance: Undecided → Medium
tags: added: backup-service quota
Changed in cinder:
importance: Medium → Low
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

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 24.0.0.0rc1

This issue was fixed in the openstack/cinder 24.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.