You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, redfish credentials are configured as empty strings. In this case, if redfish compatible hardware is detected, we should prompt the user to enter the credentials instead of it failing silently with logs only in journalctl and no logs in juju debug-log. The charm unit still stays in active status and the systemd hardware-exporter service is also active even though there's this redfish authorization error.
journalctl -u hardware-exporter.service -n 100 -f
Aug 01 09:35:58 kongfu python3[832352]: 2023-08-01 09:35:58 INFO Started promethesus hardware exporter at 0.0.0.0:10000.
(...)
Aug 01 09:36:30 kongfu python3[832352]: 2023-08-01 09:36:30 INFO Attempt 1 of /redfish/v1/
Aug 01 09:36:30 kongfu python3[832352]: 2023-08-01 09:36:30 INFO Response Time for GET to /redfish/v1/: 0.37731877801707014 seconds.
Aug 01 09:36:30 kongfu python3[832352]: 2023-08-01 09:36:30 INFO Attempt 1 of /redfish/v1/SessionService/Sessions/
Aug 01 09:36:30 kongfu python3[832352]: 2023-08-01 09:36:30 INFO Response Time for POST to /redfish/v1/SessionService/Sessions/: 0.04424629302229732 seconds.
Aug 01 09:36:30 kongfu python3[832352]: 2023-08-01 09:36:30 INFO Login returned code 400: {
"error":{"code":"iLO.0.10.ExtendedInfo","message":"See @Message.ExtendedInfo for more information.","@Message.ExtendedInfo":[{"MessageId":"iLO.2.14.UnauthorizedLoginAttempt"}]}}
Aug 01 09:36:30 kongfu python3[832352]: 2023-08-01 09:36:30 ERROR HTTP 400: Failed to created the session
Aug 01 09:36:30 kongfu python3[832352]: See @Message.ExtendedInfo for more information.
Aug 01 09:36:30 kongfu python3[832352]: Traceback (most recent call last):
Aug 01 09:36:30 kongfu python3[832352]: File "/var/lib/juju/agents/unit-hardware-observer-30/charm/venv/prometheus_hardware_exporter/collectors/redfish.py", line 49, in _get_sensor_data
Aug 01 09:36:30 kongfu python3[832352]: redfish_obj.login(auth="session")
Aug 01 09:36:30 kongfu python3[832352]: File "/var/lib/juju/agents/unit-hardware-observer-30/charm/venv/redfish/rest/v1.py", line 978, in login
Aug 01 09:36:30 kongfu python3[832352]: raise SessionCreationError('HTTP {}: Failed to created the session\n{}'.format(resp.status, error_str))
Aug 01 09:36:30 kongfu python3[832352]: redfish.rest.v1.SessionCreationError: HTTP 400: Failed to created the session
Aug 01 09:36:30 kongfu python3[832352]: See @Message.ExtendedInfo for more information.
Aug 01 09:36:30 kongfu python3[832352]: 2023-08-01 09:36:30 ERROR Failed to get sensor data via redfish.
Related point: If the wrong credentials are provided, it should also be mentioned in the debug logs.
The text was updated successfully, but these errors were encountered:
By default, redfish credentials are configured as empty strings. In this case, if redfish compatible hardware is detected, we should prompt the user to enter the credentials instead of it failing silently with logs only in journalctl and no logs in
juju debug-log
. The charm unit still stays in active status and the systemd hardware-exporter service is also active even though there's this redfish authorization error.Related point: If the wrong credentials are provided, it should also be mentioned in the debug logs.
The text was updated successfully, but these errors were encountered: