]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add get_cluster_stats to SolidFire driver
authorjohn-griffith <john.griffith@solidfire.com>
Sat, 16 Feb 2013 16:58:46 +0000 (09:58 -0700)
committerjohn-griffith <john.griffith@solidfire.com>
Sat, 16 Feb 2013 17:01:03 +0000 (10:01 -0700)
commitbb923d5eedc922fbfa5cbe755b46a334c5ed9664
tree79696ef21c3a70e3762305487c2f4b702de9d5e5
parent1f0aad51eac5ea6b9abb53a49c224dea97147481
Add get_cluster_stats to SolidFire driver

With the filter scheduler addition we added get_stats to the
drivers.  This provides the required data for the filtering
mechanisms and is called by the scheduler.

The change adds the required call in the driver and also adds
an update routine to it's init to populate this info on startup.
This also adds the fake api response so that the tests can perform
the init routine and get the data, while giving the added bonus of
testing the new functions at the same time.

Change-Id: Ia75e078f8e73883131cb1e68f6e6713fce1ab518
cinder/tests/test_drivers_compatibility.py
cinder/tests/test_solidfire.py
cinder/volume/drivers/solidfire.py