Bug 1924816
Summary: | Misleading error messages in ironic-conductor log | ||||||
---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Lubov <lshilin> | ||||
Component: | Bare Metal Hardware Provisioning | Assignee: | Bob Fournier <bfournie> | ||||
Bare Metal Hardware Provisioning sub component: | ironic | QA Contact: | Lubov <lshilin> | ||||
Status: | CLOSED ERRATA | Docs Contact: | |||||
Severity: | low | ||||||
Priority: | low | CC: | rpittau, tsedovic | ||||
Version: | 4.7 | Keywords: | Triaged | ||||
Target Milestone: | --- | ||||||
Target Release: | 4.8.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
Cause: When Ironic attempted to access
the redfish/v1/SessionService URL it would log a Authentication error because this URL requires authentication.
Consequence: This is just a nuisance error message in the logs, its not a functional problem.
Fix: Prevent logging this error message.
Result: The logs no longer have the error message.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2021-07-27 22:40:58 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Lubov
2021-02-03 17:07:40 UTC
I think these are 2 separate issues: The first ERROR message occurs before the session has been authenticated. This is as expected, there was a fix here https://review.opendev.org/c/openstack/sushy/+/747960 to remove the warning and instead print text regarding "If this happens before authentication". 2021-02-03 05:43:46.132 1 ERROR sushy.connector [req-ac25c507-557b-4b69-923f-4933bc9f3601 bootstrap-user - - - -] Authentication error detected. Cannot proceed: HTTP GET https://10.46.61.42/redfish/v1/SessionService returned code 401. Base.1.0.GeneralError: The authentication credentials included with this request are missing or invalid <snip> 2021-02-03 05:43:46.132 1 DEBUG sushy.resources.sessionservice.sessionservice [req-ac25c507-557b-4b69-923f-4933bc9f3601 bootstrap-user - - - -] Received access error "HTTP GET https://10.46.61.42/redfish/v1/SessionService returned code 401. Base.1.0.GeneralError: The authentication credentials included with this request are missing or invalid. Extended information: [{'@odata.type': '#Message.v1_0_0.Message', 'MessageId': 'Base.1.2.AccessDenied', 'Message': 'The authentication credentials included with this request are missing or invalid.', 'MessageArgs': [], 'MessageArgs': 0, 'RelatedProperties': [], 'RelatedProperties': 0, 'Severity': 'Critical', 'Resolution': 'Attempt to ensure that the URI is correct and that the service has the appropriate credentials.'}]" when trying to refresh the SessionService. If this happens before authentication, we'll have to guess the Sessions URL. __init__ /usr/lib/python3.6/site-packages/sushy/resources/sessionservice/sessionservice.py The first ERROR message though should probably be handled better here - https://github.com/openstack/sushy/blob/master/sushy/connector.py#L145 although its not clear we can distinguish this expected behaviour from an actual authentication error. Will add a patch shortly for the first issue above... The second issue, the failure with getting bios_settings and the errors: driver_info: 2021-02-03 05:51:35.688 1 ERROR ironic.conductor.cleaning 'drac_address' not supplied to DracDriver. 2021-02-03 05:51:35.688 1 ERROR ironic.conductor.cleaning 'drac_username' not supplied to DracDriver. 2021-02-03 05:51:35.688 1 ERROR ironic.conductor.cleaning 'drac_password' not supplied to DracDriver. is happening because of the bios_interface configuration. 'bios_interface': 'idrac-wsman' but redfish credentials are provided, not idrac. Can you set the bios_interface to 'redfish' and try this again? (In reply to Bob Fournier from comment #2) > Will add a patch shortly for the first issue above... > > The second issue, the failure with getting bios_settings and the errors: > driver_info: > 2021-02-03 05:51:35.688 1 ERROR ironic.conductor.cleaning 'drac_address' not > supplied to DracDriver. > 2021-02-03 05:51:35.688 1 ERROR ironic.conductor.cleaning 'drac_username' > not supplied to DracDriver. > 2021-02-03 05:51:35.688 1 ERROR ironic.conductor.cleaning 'drac_password' > not supplied to DracDriver. > > is happening because of the bios_interface configuration. > 'bios_interface': 'idrac-wsman' > but redfish credentials are provided, not idrac. > > Can you set the bios_interface to 'redfish' and try this again? No such error when running with redfish-virtualmedia I'm going to split this bug as there are 2 separate issues. This bug will be used to track the "Authentication error detected." log which has a fix. This new bug https://bugzilla.redhat.com/show_bug.cgi?id=1928816 will be used to track the bios_interface issue. Sushy fix is in python-sushy-3.6.2-0.20210210081213.07ca7f4.el8 which was added to ironic-image with this change https://github.com/openshift/ironic-image/pull/150. Moving to ON_QA. verified on 4.8.0-0.nightly-2021-03-18-075013 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:2438 |