# openstack quota set --gigabytes 48260 'xxxxx'
"Quota gigabytes limit must be equal or greater than existing resources. Current usage is 48660 and the requested limit is 48260."
Log Snippets :
[2025-05-28 10:42:37.449] Quota gigabytes limit must be equal or greater than existing resources. Current usage is 48660 and the requested limit is 48260. (HTTP 400) (Request-ID: req- #######-###-####)
deleting" state in the VIO mariadb.MariaDB [cinder]>MariaDB [cinder]> SELECT id, size, status, deleted FROM volumes WHERE project_id='<Project UUID>';+--------------------------------------+-------+----------+---------+| id | size | status | deleted |+--------------------------------------+-------+----------+---------+| #######-###-#### | 400 | deleting | 1 || #######-###-#### | 1650 | in-use | 0 |
Mark the volume stuck in the deleting status as deleted, and then update the "quota_usages table" for the corresponding volume type.
1.) Check the project list
#openstack project list --long
[root@vioadmin1-vioshim-xxxxx-xxxx ~]# openstack project list --long+----------------------------------+--------+----------------------------------+-------------+---------+ | ID | Name | Domain ID | Description | Enabled |+----------------------------------+--------+----------------------------------+-------------+---------+ | #######-###-#### | SVCXXX | #######-###-#### | <8F><A4><97>p_VMS | True |+----------------------------------+--------+----------------------------------+-------------+---------+
2.) Check under the volume list for any volume that is missing or stuck in deleted or deleting state
#openstack volume list
3.) Check for any snapshots
#openstack volume snapshot list
[root@vioadmin1-vioshim-xxxx-xxxx ~]# openstack volume snapshot list
None
4.) Check for any backups :
#openstack volume backup list
[root@vioadmin1-vioshim-xxxx-xxxx ~]# openstack volume backup list
None
5.) If step 2,3 & 4 doesn't retrieve any anomalies, please validate for any discrepancies in the database. Connect to the "mariadb"
MariaDB [cinder]>MariaDB [cinder]> SELECT id, size, status, deleted FROM volumes WHERE project_id='<Project UUID>';
+--------------------------------------+-------+----------+---------+| id | size | status | deleted |+--------------------------------------+-------+----------+---------+ | xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx | 400 | deleting | 1 || xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx | 1650 | in-use | 0 |+--------------------------------------+-------+----------+---------+34 rows in set (0.00 sec)
6.) Check for space usage from the "mariadb"
#MariaDB [cinder]> SELECT resource, in_use, reserved-> FROM quota_usages-> WHERE project_id = '';Project UUID
+--------------------------------+--------+----------+| resource | in_use | reserved |+--------------------------------+--------+----------+| gigabytes_SDS_super_large_comp | 47460 | 0 || volumes | 33 | 0 || volumes_SDS_super_large_comp | 30 | 0 || gigabytes | 48660 | 0 || gigabytes_SDS_large_comp | 1200 | 0 || volumes_SDS_large_comp | 3 | 0 |+--------------------------------+--------+----------+6 rows in set (0.01 sec)
#MariaDB [cinder]> SELECT COUNT(*) AS active_volumes, SUM(size) AS used_gb FROM volumes WHERE project_id = '' AND deleted = 0;Project UUID+----------------+---------+| active_volumes | used_gb |+----------------+---------+| 32 | 48260 |+----------------+---------+1 row in set (0.00 sec)
7.) Mark the volume status as "deleted" in mariadb.
#UPDATE volumes SET status = 'deleted' WHERE id = '<Volume UUID stuck in deleting>';
8.) Space and Volume count calculation
gigabytes = gigabytes_SDS_super_large_comp + gigabytes_SDS_large_comp (48660 = 47460 + 1200)
volumes = volumes_SDS_super_large_comp + volumes_SDS_large_comp (33 = 30 + 3)
9.) Find out which volume type is set on the missing volume so that we can adjust the subtotal of corresponding volume type as well.
1.) Find the volume_type_id
#select id,volume_type_id from cinder.volumes where id='xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx';
[2025-06-23 15:18:09.398] MariaDB [cinder]> select id, volume_type_id from cinder.volumes where id='xxxxx-xxx-xxx-xxx-xxxxx';
[2025-06-23 15:23:09.527] +--------------------------------------+--------------------------------------+
[2025-06-23 15:23:09.527] | id | volume_type_id |
[2025-06-23 15:23:09.527] +--------------------------------------+--------------------------------------+
[2025-06-23 15:23:09.527] | xxxxx-xxx-xxx-xxx-xxxxx | xxxx-xxx-xxxxx-xxxx-xxxxxxxxxx|
[2025-06-23 15:23:09.527] +--------------------------------------+--------------------------------------+
[2025-06-23 15:23:09.527] 1 row in set (0.00 sec)
2.) Find volume type name of volume_type_id above
#select * from cinder.volume_types;
#######-###-#### ) has a volume_type_id of "#######-###-####".3.) Then update quota_usages table for corresponding volume type (SDS_large_comp) and additionally update the total (volumes and gigabytes)
UPDATE quota_usagesSET in_use = 32WHERE project_id = '<'Project UUID> AND resource = 'volumes';
UPDATE quota_usagesSET in_use = 48260WHERE project_id = '<'Project UUID> AND resource = 'gigabytes';
UPDATE quota_usagesSET in_use = 2WHERE project_id = '<'Project UUID> AND resource = 'volumes_SDS_large_comp';
UPDATE quota_usagesSET in_use = 800WHERE project_id = '<'Project UUID> AND resource = 'gigabytes_SDS_large_comp';
4.) The above updation to release the missing space which reported as consumed.