cinder quota usage calculation

asked 2019-03-25 13:35:58 -0500

athi gravatar image

updated 2019-03-25 21:40:14 -0500

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    |
+----------------------+--------+----------+-------+
edit retag flag offensive close merge delete

Comments

Can you clarify which value(s) you consider incorrect?

Bernd Bausch gravatar imageBernd Bausch ( 2019-03-25 17:00:49 -0500 )edit

our total usage is 67GB but cinder usage showing only 57 and remaining marked as reserved

athi gravatar imageathi ( 2019-03-25 21:23:13 -0500 )edit

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.

Bernd Bausch gravatar imageBernd Bausch ( 2019-03-26 01:30:30 -0500 )edit

Here is the code in question, if you are interested (Rocky): http://git.openstack.org/cgit/opensta....

Bernd Bausch gravatar imageBernd Bausch ( 2019-03-26 01:31:51 -0500 )edit