from cinder.volume.drivers.san.san import SanISCSIDriver
from cinder.volume import volume_types
-VERSION = 1.2
+VERSION = '1.2'
LOG = logging.getLogger(__name__)
sf_opts = [
volume_type = volume_types.get_volume_type(ctxt, type_id)
specs = volume_type.get('extra_specs')
for key, value in specs.iteritems():
+ if ':' in key:
+ fields = key.split(':')
+ key = fields[1]
if key in self.sf_qos_keys:
qos[key] = int(value)
return qos
results['maxProvisionedSpace'] - results['usedSpace']
data = {}
- data["volume_backend_name"] = self.__class__.__name__
+ backend_name = self.configuration.safe_get('volume_backend_name')
+ data["volume_backend_name"] = backend_name or self.__class__.__name__
data["vendor_name"] = 'SolidFire Inc'
- data["driver_version"] = '1.2'
+ data["driver_version"] = VERSION
data["storage_protocol"] = 'iSCSI'
data['total_capacity_gb'] = results['maxProvisionedSpace']