]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Report zero capacity if GPFS is unmounted
authorzhaoqin <chaochin@gmail.com>
Fri, 8 Nov 2013 17:45:02 +0000 (01:45 +0800)
committerzhaoqin <chaochin@gmail.com>
Fri, 8 Nov 2013 17:49:53 +0000 (01:49 +0800)
commit5ec46e1810d1a0af03e5517a00090e9a30909cae
tree69f721ab7828f292635af299de4df5980dae6dc8
parent54b117d26e3e61e639c334e2e1c47fcd481745ab
Report zero capacity if GPFS is unmounted

_get_available_capacity() calls df command to gather the capacity of GPFS
filesystem. If GPFS is unmounted, df command will return the capacity of
root file system. This change will let get_volume_stats() to report zero
capacity, so that Cinder can schedule the volume request to another volume
service After GPFS is mounted again, the correct capacity will be reported.

Change-Id: I4c229d78e7d659604a23a50e6ab46060642b4088
Closes-Bug: #1246779
cinder/volume/drivers/gpfs.py