setup-mnode script or Management Services update fails on Element mNode 12.2+ with configure_element_auth error
Applies to
- Element management node (mNode) version 12.2 and above
- NetApp Element software
Issue
- Setting up the mNode using the
/sf/packages/mnode/setup-mnode
script or when updating Management Services on the mNode fails with an auth error in/var/log/sf-nde.info
:
ERROR [auth_utilities.py:112] 400 Client Error: Bad Request for url: https://x.x.x.x/auth/api/1/configuration
ERROR:Uncaught Exception:
Traceback (most recent call last):
File "setup_scripts/config_util.py", line 1549, in configure_element_auth
File "docker/models/containers.py", line 814, in run
docker.errors.ContainerError: Command 'None' in image 'reconfigure-auth-sidecar:1.0.4' returned non-zero exit status 1: b'2021-01-22 21:37:04.105 INFO [logger.py:153] Log level for reconfigure-auth-sidecar has been set to INFO\n2021-01-22 21:37:04.107 INFO
- These errors might be seen while setting up the mNode:
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: https://<MVIP>/auth/api/2/configuration
2021-05-24 23:27:36.873 DEBUG [auth_utilities.py:207] Response: Reconfiguration failed with HTTP error: "503 Server Error: Service Unavailable for url: https://<MVIP>/auth/api/2/configuration". See log for traceback., RC: 503
2021-05-24 23:27:36.873 ERROR [auth_utilities.py:209] Reconfiguring auth failed. Aborting deployment. Got error: "Reconfiguration failed with HTTP error: "503 Server Error: Service Unavailable for url: https://<MVIP>/auth/api/2/configuration". See log for traceback."
sfprime.MnodeCfgError: Failed to update element-auth configuration
- The
setup-mnode
script is failed with the same error as above when the cluster is still in upgrade mode (eg,11.5 to 12.3)