]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add parsing to extra-specs key check
authorJohn Griffith <john.griffith@solidfire.com>
Wed, 10 Apr 2013 05:07:52 +0000 (23:07 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Fri, 12 Apr 2013 21:18:12 +0000 (15:18 -0600)
commit0e3ea4e85dab00b7cecd5596f6daa65cc4d710b5
tree57f0edef146fd235183fb38f6894b5c9e6b870fc
parent31789cb520121c7adba3a2ef91d1bd158c54f9db
Add parsing to extra-specs key check

When using the filter scheduler which is now the default,
we can no longer pass in extra-specs like: {minIOPS:500, ....},
because the capabilities filter will reject this because there is
no host reporting minIOPS:500 capabilities.

We now need to scope the keys (ie qos:minIOPS:500....), but
that unfortunately requires a fix to the SolidFire driver.

This change add a check for the ':' in the key, and parses
on it if it's there.

Also fixes backend_name and uses VERSION var instead of
generating string in stats reporting.

Fixes bug: 1167141

Change-Id: Ie7fd7d231af78cb18a13f44a4379b44d3c3385df
cinder/volume/drivers/solidfire.py