]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
RemoteFS: Reporting configured reserved_percentage in _update_volume_stats
authorBharat Kumar Kobagana <bharat.kobagana@redhat.com>
Tue, 12 May 2015 12:56:34 +0000 (18:26 +0530)
committerBharat Kumar Kobagana <bharat.kobagana@redhat.com>
Wed, 1 Jul 2015 17:13:31 +0000 (22:43 +0530)
commit53b736fb658b7d301ead1d23e3cddc4b0cdd832f
tree0b0787bb49cb15b50c4035f720a9aef2877eeab2
parent6b93625a3d7e3085bab0246ae4d0fb46b6af7e98
RemoteFS: Reporting configured reserved_percentage in _update_volume_stats

In remotefs, reserved_percentage will be always reported up to the
scheduler as 0, irrespective of the value of cfg.reserved_percentage.

This patch modifies the code to use reserved_percentage configuration
parameter while updating status.

Closes-Bug: #1458640
Change-Id: I53917835b79797417aca7b1b3c794c84b6143ab5
cinder/tests/unit/test_nfs.py
cinder/volume/drivers/remotefs.py