69a79e38afbdc67f61568c0b82cf6d06ca304e56
Current RBD code is incorrectly reporting the stats of the pool in the following ways: - `provisioned_capacity_gb` contains physical space used by cinder created volumes. - `free_capacity_gb` is not taking into account that pools can have quota restrictions and they should be used as the reference for the free capacity. - `total_capacity` dynamically changes, which means that there is no way to have a fixed over provisioning capacity. This patch fixes the stats reporting making sure we return the right values in `provisioned_capacity_gb` and `free_capacity_gb`, and allows us to use a static calculation of the `total_capacity` using `report_dynamic_total_capacity` configuration option. We don't report `allocated_capacity_gb` because this is something that is calculated by the Cinder core code and should not be reported by drivers, even if it's not currently working as expected [1][2]. [1] https://bugs.launchpad.net/cinder/+bug/1712549 [2] https://bugs.launchpad.net/cinder/+bug/1706057 Change-Id: I1e82bf9d0b6cc0fb1d1fc2dd8b8ccc59aea3f73f Closes-Bug: #1706060 (cherry picked from commit8469109016) Conflicts: cinder/tests/unit/volume/drivers/test_rbd.py cinder/volume/drivers/rbd.py (cherry picked from commit8d7f37e810) Conflicts: cinder/tests/unit/volume/drivers/test_rbd.py cinder/volume/drivers/rbd.py
Team and repository tags
CINDER
You have come across a storage service for an open cloud computing service. It has identified itself as Cinder. It was abstracted from the Nova project.
- Wiki: http://wiki.openstack.org/Cinder
- Developer docs: http://docs.openstack.org/developer/cinder
Getting Started
If you'd like to run from the master branch, you can clone the git repo:
For developer information please see HACKING.rst
You can raise bugs here http://bugs.launchpad.net/cinder
Python client
https://git.openstack.org/cgit/openstack/python-cinderclient
Description
Languages
Python
99.6%
Smarty
0.4%