]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Return provider_id in SolidFire model update
authorJohn Griffith <john.griffith8@gmail.com>
Mon, 1 Jun 2015 15:33:14 +0000 (15:33 +0000)
committerHuang Zhiteng <winston.d@gmail.com>
Wed, 3 Jun 2015 23:19:25 +0000 (23:19 +0000)
The provider_id field was added in
commit: 9f34d34d0ab92400223e3cc87285d0d4fbdf21f9

This patch adds provider_id to the returned model
update and uses it to provide the internal SolidFire
volume ID mapping.

Next step will be to rewrite the awkward list search
of volume names to find the corresponding volume on
the SolidFire backend.

Change-Id: Ia44d46362bb1b688c4ac266afecca9ce66dcef25

cinder/volume/drivers/solidfire.py

index dde7d5c761c445ce35ec4aff02ffc3cd21ee11ef..43864665df6832c2f6c7442f8861f9f909c9f228 100644 (file)
@@ -341,6 +341,7 @@ class SolidFireDriver(san.SanISCSIDriver):
                                             chap_secret))
         if not self.configuration.sf_emulate_512:
             model_update['provider_geometry'] = ('%s %s' % (4096, 4096))
+        model_update['provider_id'] = ('%s' % sf_volume_id)
 
         return model_update