cinder quota usage calculation
Hello Team,
I am facing the issue with cinder volume usage calculation , you can see from the below output that the 10GB volume in reserved status and total usage is not included this 10Gb. is there anyway to clear this or update in_use
cinder quota-usage 82eaddf1f348142cabbed0d2ff7e213a0
+----------------------+--------+----------+-------+
| Type | In_use | Reserved | Limit |
+----------------------+--------+----------+-------+
| backup_gigabytes | 0 | 0 | 1000 |
| backups | 0 | 0 | 10 |
| gigabytes | 57 | 10 | 1000 |
| gigabytes_Local | 57 | 10 | 1000 |
| per_volume_gigabytes | 0 | 0 | -1 |
| snapshots | 0 | 0 | 10 |
| snapshots_Local | 0 | 0 | -1 |
| volumes | 6 | 1 | 10 |
| volumes_Local | 6 | 1 | -1 |
+----------------------+--------+----------+-------+
Can you clarify which value(s) you consider incorrect?
our total usage is 67GB but cinder usage showing only 57 and remaining marked as reserved
So your question is really “what is reserved, and how is it different from in-use”. Unfortunately I don’t have an immediate answer. A quick look at the source shows that Cinder quota reservations can be made when a volume is retyped; that’s the only location in the code that I found right now.
Here is the code in question, if you are interested (Rocky): http://git.openstack.org/cgit/opensta....