]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Append nas_opts to IBMNAS_NFSDriver configuration
authorSasikanth <sasikanth.eda@in.ibm.com>
Thu, 27 Mar 2014 15:14:50 +0000 (20:44 +0530)
committerSasikanth <sasikanth.eda@in.ibm.com>
Tue, 1 Apr 2014 08:21:33 +0000 (13:51 +0530)
'nas_opts' were added in the NFS Driver (nfs.py), but were not appended
to the IBMNAS driver configuration, causing failure with the multi-backend
configuration of driver.

Adding the missing configuration.

Change-Id: I55727566d03573908750d01ae1345c4b6276f131
Closes-Bug: #1298279

cinder/volume/drivers/ibm/ibmnas.py

index ecfcaa79406385d8aa457de7556a57a0524d06fd..f99cb77790fc0d54cc61408565f5febf8fb70247 100644 (file)
@@ -39,6 +39,7 @@ from cinder.openstack.common import processutils
 from cinder import units
 from cinder import utils
 from cinder.volume.drivers import nfs
+from cinder.volume.drivers.nfs import nas_opts
 from cinder.volume.drivers.san import san
 
 VERSION = '1.0.0'
@@ -61,6 +62,7 @@ class IBMNAS_NFSDriver(nfs.NfsDriver, san.SanDriver):
     def __init__(self, execute=utils.execute, *args, **kwargs):
         self._context = None
         super(IBMNAS_NFSDriver, self).__init__(*args, **kwargs)
+        self.configuration.append_config_values(nas_opts)
         self.configuration.san_ip = self.configuration.nas_ip
         self.configuration.san_login = self.configuration.nas_login
         self.configuration.san_password = self.configuration.nas_password