cinder/cinder/db/migrations
Gorka Eguileor 6a2716de16 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
2024-01-17 19:07:42 +01:00
..
versions Quota: Add backup related default limits 2024-01-17 19:07:42 +01:00
__init__.py db: Add alembic boilerplate 2021-08-27 15:13:21 +01:00
env.py db: Don't rely on branched connections 2023-09-25 11:14:32 +01:00
script.py.mako db: Add alembic boilerplate 2021-08-27 15:13:21 +01:00