Go to file
Gorka Eguileor 69a79e38af RBD: Fix stats reporting
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 commit 8469109016)
Conflicts:
	cinder/tests/unit/volume/drivers/test_rbd.py
	cinder/volume/drivers/rbd.py
(cherry picked from commit 8d7f37e810)
Conflicts:
      cinder/tests/unit/volume/drivers/test_rbd.py
      cinder/volume/drivers/rbd.py
2017-10-06 15:33:16 -05:00
2017-10-06 15:33:16 -05:00
2017-10-06 15:33:16 -05:00
2016-07-26 11:09:05 -05:00
2017-02-06 23:32:48 +00:00
2012-05-03 10:48:26 -07:00
2012-05-03 10:48:26 -07:00
2015-06-11 17:19:19 +02:00
2016-11-25 13:39:11 +01:00
2016-10-02 15:46:57 -07:00
2015-09-18 16:37:17 +00:00

Team and repository tags

image

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.

Getting Started

If you'd like to run from the master branch, you can clone the git repo:

git clone https://git.openstack.org/openstack/cinder.git

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
OpenStack Block Storage (Cinder)
Readme 950 MiB
Languages
Python 99.6%
Smarty 0.4%