Skip to content

iDrac8 incompatible with latest version 2.1.0 #188

@SirScruffy

Description

@SirScruffy

Hello Ricardo,

Thank you for the new version. Unfortunately, we encountered a problem with our iDrac 8 servers. The new 'login_with_redirect_handling' function uses the POST method, which is not allowed in iDrac 8 under the provided URL (redfish.py line 357) and therefore returns a 405.

Interestingly, a new session is created anyway, and a valid 'Location' and 'X-Auth-Token' are also present in the response.

....
< HTTP/1.1 405 Method Not Allowed
....
< Server: iDRAC/8
< Location: /redfish/v1/Sessions/33
< Date: Tue, 20 Jan 2026 20:13:56 GMT
< X-Auth-Token: 7817b2a4050b3d5fa5007e33ddfe2500
....
< Allow: GET,HEAD,PATCH,DELETE
....

Thanks to that my current ‘dirty’ workaround is to evaluate the HTTP response code 405 as OK in line 393, and then everything works as expected.

In another attempt, I modified the ‘session_url’ from {base_url}/redfish/v1/SessionService/Sessions to {base_url}/redfish/v1/Sessions.
Under this URL, iDrac 8 accepts POST and you get the desired HTTP code 201.

I take it that evaluating a 405 as OK is not the preferable way to solve this issue, so do you maybe have an idea how to detect the iDrac version and chose the correct session URL accordingly?

Cheers
Scruffy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions