Subscribe

Cannot config Juno cinder to NetApp iSCSI 7-mode share

Hello, following the configuration guide on this website: http://netapp.github.io/openstack-deploy-ops-guide/juno/content/cinder.7mode.iscsi.configuration.html, I am unable to get the connection working. We have inbound and outbound CHAP authentication (the interface says we can't use the same user/pass for in/out auth) set and I can login to the share using iscsiadm. But in the cinder.conf file, there is only 1 user field and 1 password field. Here is my cinder.conf:

 

[root@radv-ctrl ~]# cat /etc/cinder/cinder.conf | grep -v ^$ | grep -v ^#
[DEFAULT]
verbose = True
rpc_backend = rabbit
rabbit_host = radv-ctrl
rabbit_password = password
auth_strategy = keystone
my_ip = 172.16.243.1
control_exchange = cinder
notification_driver = cinder.openstack.common.notifier.rpc_notifier
enabled_backends=RADV_CINDER
[BRCD_FABRIC_EXAMPLE]
[CISCO_FABRIC_EXAMPLE]
[database]
connection = mysql://cinder:password@radv-ctrl/cinder
[fc-zone-manager]
[keymgr]
[keystone_authtoken]
auth_uri = http://radv-ctrl:5000/v2.0
identity_uri = http://radv-ctrl:35357
admin_tenant_name = service
admin_user = cinder
admin_password = password
[matchmaker_redis]
[matchmaker_ring]
[oslo_messaging_amqp]
[profiler]
[ssl]
[RADV_CINDER]
volume_backend_name=RADV_CINDER
volume_driver=cinder.volume.drivers.netapp.common.NetAppDriver
netapp_server_hostname=radv-cinder
netapp_server_port=3260
netapp_storage_protocol=iscsi
netapp_storage_family=ontap_7mode
netapp_login=root
netapp_password=password

 And here is the error I'm getting when I restart openstack-cinder-volume:

 

2015-02-05 13:08:25.140 26615 INFO cinder.volume.manager [req-174d8ba7-a910-461e-ae4e-b9b8193e1446 - - - - -] Starting volume driver NetAppDriver (1.0.0)
2015-02-05 13:08:25.144 26615 ERROR cinder.volume.manager [req-174d8ba7-a910-461e-ae4e-b9b8193e1446 - - - - -] Error encountered during initialization of driver: NetAppDriver
2015-02-05 13:08:25.145 26615 ERROR cinder.volume.manager [req-174d8ba7-a910-461e-ae4e-b9b8193e1446 - - - - -] NetApp api failed. Reason - Unexpected error:<urlopen error [Errno 111] ECONNREFUSED>
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager Traceback (most recent call last):
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 250, in init_host
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager     self.driver.do_setup(ctxt)
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/iscsi.py", line 145, in do_setup
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager     self._do_custom_setup()
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/iscsi.py", line 1179, in _do_custom_setup
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager     (major, minor) = self._get_ontapi_version()
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/iscsi.py", line 370, in _get_ontapi_version
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager     res = self.client.invoke_successfully(ontapi_version, False)
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/api.py", line 215, in invoke_successfully
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager     result = self.invoke_elem(na_element, enable_tunneling)
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/api.py", line 203, in invoke_elem
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager     raise NaApiError('Unexpected error', e)
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager NaApiError: NetApp api failed. Reason - Unexpected error:<urlopen error [Errno 111] ECONNREFUSED>
2015-02-05 13:08:25.145 26615 TRACE cinder.volume.manager
2015-02-05 13:08:25.479 26615 INFO oslo.messaging._drivers.impl_rabbit [-] Connecting to AMQP server on radv-ctrl:5672
2015-02-05 13:08:25.497 26615 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on radv-ctrl:5672

 To me, that reads like an authentication error. I tried setting up the shares with no authentication, but it seems those fields are required in cinder.conf. So I setup only inbound CHAP auth and still get the same error in Cinder's volume.log. I also commented out the port but no change, same error. Any clues? Thanks in advance for your help!

 

Chris

Re: Cannot config Juno cinder to NetApp iSCSI 7-mode share

Hello Chris

The error can be a couple of things. The ECONNREFUSED can be the result of a couple of things. But, initially, not with iSCSI/CHAP at this point(not tuling it out yet). With a quick review of the log you posted - appears to be related to the API calls for the login, protocol, or even the version of the ZAPI. See if the setup of http/https on the 7mode controller is okay. For example, I have seen similar errors with the API calls when http/https was not enabled on the controllers. I have also seen this, in some cases, where the login(user/password was incorrect). But, typically see a credentials error in that use case.

 

I suggest checking on the controller for the enablement of http/https, and double checking the credntials within the cinder configuration file for the NetApp controller. 

 

Regards,

Greg

Re: Cannot config Juno cinder to NetApp iSCSI 7-mode share

Hi Chris

 

The issue is with this line here:

 

netapp_server_port=3260

That should either be 80 or 443 because it refers to the port that the cinder dirver will contact the controller to issue administrative (ZAPI) calls over either http or https.

 

Hope this helps

 

Thanks

 

Jeff Applewhite