Failed to initialize driver.: NaApiError: NetApp API failed. Reason - 401:basic auth failed

Solution Verified - Updated -

Issue

  • Cinder is not able to perform any operation on volumes because the backend NetApp driver initialization fails with the basic authorization error

    2020-11-17 18:11:52.801 55 INFO cinder.volume.manager [req-22671614-05ca-4298-9277-a01264a3bc44 - - - - -] Starting volume driver NetAppCmodeNfsDriver (1.0.0)
    2020-11-17 18:12:13.807 55 WARNING cinder.volume.drivers.nfs [req-22671614-05ca-4298-9277-a01264a3bc44 - - - - -] The NAS file permissions mode will be 666 (allowing other/world read & write access). This is considered an insecure NAS environment. Please see https://docs.openstack.org/cinder/latest/admin/blockstorage-nfs-backend.html for information on a secure NFS configuration.
    2020-11-17 18:12:13.808 55 WARNING cinder.volume.drivers.nfs [req-22671614-05ca-4298-9277-a01264a3bc44 - - - - -] The NAS file operations will be run as root: allowing root level access at the storage backend. This is considered an insecure NAS environment. Please see https://docs.openstack.org/cinder/latest/admin/blockstorage-nfs-backend.html for information on a secure NAS configuration.
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager [req-22671614-05ca-4298-9277-a01264a3bc44 - - - - -] Failed to initialize driver.: NaApiError: NetApp API failed. Reason - 401:basic auth failed
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager Traceback (most recent call last):
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 456, in init_host
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager     self.driver.do_setup(ctxt)
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 849, in trace_method_logging_wrapper
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager     return f(*args, **kwargs)
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 849, in trace_method_logging_wrapper
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager     return f(*args, **kwargs)
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/dataontap/nfs_cmode.py", line 77, in do_setup
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager     self.failed_over_backend_name or self.backend_name)
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/dataontap/utils/utils.py", line 77, in get_client_for_backend
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager     api_trace_pattern=config.netapp_api_trace_pattern)
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 849, in trace_method_logging_wrapper
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager     return f(*args, **kwargs)
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 849, in trace_method_logging_wrapper
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager     return f(*args, **kwargs)
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/dataontap/client/client_cmode.py", line 51, in __init__
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager     (major, minor) = self.get_ontapi_version(cached=False)
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 849, in trace_method_logging_wrapper
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager     return f(*args, **kwargs)
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/dataontap/client/client_base.py", line 72, in get_ontapi_version
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager     res = self.connection.invoke_successfully(ontapi_version, False)
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/dataontap/client/api.py", line 215, in invoke_successfully
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager     result = self.send_http_request(na_element, enable_tunneling)
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 861, in trace_api_logging_wrapper
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager     return f(*args, **kwargs)
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/dataontap/client/api.py", line 197, in send_http_request
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager     raise NaApiError(e.code, e.msg)
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager NaApiError: NetApp API failed. Reason - 401:basic auth failed
    2020-11-17 18:12:38.543 55 ERROR cinder.volume.manager 
    

Environment

Red Hat OpenStack Platform 13.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In