Backend/volume capacity metrics documented as GB but is actually GiB
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Cinder |
New
|
Undecided
|
Unassigned | ||
Bug Description
The Cinder API for listing backend storage pools documents that the capacity fields (total_capacity_gb and free_capacity_gb) are in gigabytes (GB) [1].
It appears that within the drivers however, these metrics are actually reported in **gibibytes (GiB)** [2] [3] [4] [5].
The Cinder capacity notifications (capacity.backend.* and capacity.pool.*) use the same methods for its metrics, so are also affected.
I'm assuming that changing the names of total_capacity_gb and free_capacity_gb is too disruptive (would require a new microversion and, if the existing names are deprecated, clients that consume this would need to change the references), and that's fair. I do think the following needs to be done, though:
* Change the documentation to reflect the fact that the returned metrics are in GiB, not GB.
* Check all currently supported Cinder volume drivers to make sure they all generate capacity metrics in GiB, not GB.
Also relevant is we are trying to fix incorrect reported storage units for metrics in Ceilometer (MB/GB to MiB/GiB) [6], which is what caused us to notice this discrepancy.
[1]: https:/
[2]: https:/
[3]: https:/
[4]: https:/
[5]: https:/
[6]: https:/
| description: | updated |
| description: | updated |
| summary: |
- Volume provider stats reported in GB but actually in GiB + Volume provider stats documented as GB but is actually GiB |
| summary: |
- Volume provider stats documented as GB but is actually GiB + Backend/volume capacity metrics documented as GB but is actually GiB |
