]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use cached values for stats on query failures for vmem drivers
authorRyan Lucio <rlucio@vmem.com>
Thu, 19 Mar 2015 10:17:17 +0000 (03:17 -0700)
committerRyan Lucio <rlucio@vmem.com>
Mon, 23 Mar 2015 23:20:38 +0000 (16:20 -0700)
commit479b4c0dd3496f739e05082df0f2c675b34b7d0c
treea6a16c4e4b6a14bf6ee41015f493a7513df0d880
parent37713115be3dec1a92e47906fa96d205d77a4274
Use cached values for stats on query failures for vmem drivers

This change allows vmem drivers to return previously cached
values for free_capacity_gb and total_capacity_gb if the queries
to the backend for those stats succeed but do not contain
the data.  This can happen when the mgmt plane is under heavy load.

Change-Id: I218a54897361d739c04963b4c36d93620be01fb3
Closes-Bug: 1433990
cinder/tests/test_v6000_fcp.py
cinder/tests/test_v6000_iscsi.py
cinder/volume/drivers/violin/v6000_fcp.py
cinder/volume/drivers/violin/v6000_iscsi.py