]> 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, 3 May 2013 21:33:29 +0000 (15:33 -0600)
commit319f71276ad2bcf8a222b81484e67d3a20f295dc
tree5442b4b0143d0bc2e2c767a4b41efb81db8c32af
parent93247d22a256db8ed44791343ae942d4f0c40d7f
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
(cherry picked from commit 0e3ea4e85dab00b7cecd5596f6daa65cc4d710b5)
cinder/volume/drivers/solidfire.py