cinder/cinder/db/migrations/versions
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
..
9ab1b092a404_make_use_quota_non_nullable.py Clean old temporary tracking 2024-01-12 14:25:44 +01:00
9c74c1c6971f_quota_add_backup_defaults_in_quota_class.py Quota: Add backup related default limits 2024-01-17 19:07:42 +01:00
89aa6f9639f9_drop_legacy_migrate_version_table.py db: Remove the legacy 'migration_version' table 2023-03-23 12:24:52 +00:00
921e1a36b076_initial.py Remove consistencygroups quota entries 2024-01-17 19:06:24 +01:00
__init__.py db: Add alembic boilerplate 2021-08-27 15:13:21 +01:00
b7b88f50aab5_remove_quota_consistencygroups.py Remove consistencygroups quota entries 2024-01-17 19:06:24 +01:00
b8660621f1b9_update_reservations_resource.py DB: Set quota resource property length to 300 2024-01-12 14:25:43 +01:00
c92a3e68beed_make_shared_targets_nullable.py Report tri-state shared_targets for NVMe volumes 2022-05-24 15:13:23 +02:00
daa98075b90d_add_resource_indexes.py db: Replace use of enginefacade in migrations 2023-11-08 11:34:16 +00:00