Closed aj-gh closed 2 years ago
thank you for the feedback.
I will need to lock the version for now and look into upgrading the script accordingly.
Hi,
I changed some code and it should now work with versions <3.1.0 and >= 3.1.0. Can you check out the "next-release" branch and try to run it with the redfish 3.1.1 version?
Thank you.
@bb-Ricardo I try the new next-release branch and the redfish version 3.1.1 and 3.1.2.
The exception is gone now, but the check does not works:
[CRITICAL]: Unable to connect to Host 'x.x.x.x', max retries exhausted
With redfish version 3.0.3 works.
Thank you very much for testing. I will have a look and see where this issue comes from.
@bb-Ricardo more debugging:
2022-03-15 17:08:09,723 - DEBUG: HTTP REQUEST: GET PATH: /redfish/v1/Chassis/System.Embedded.1/Thermal BODY: None 2022-03-15 17:08:09,723 - INFO: Attempt 1 of /redfish/v1/Chassis/System.Embedded.1/Thermal 2022-03-15 17:08:09,723 - INFO: Retrying /redfish/v1/Chassis/System.Embedded.1/Thermal ['HttpClient' object has no attribute '_session']
Hi @cmaile,
I finally got around to look into it and pushed a fix to "next-release". Can you please test if it's working now?
Thank you
@bb-Ricardo Thanks for the bugfix. It works now. Many Thanks 👍
I installed the dependencies for this tool yesterday and pip decided to install the recently released redfish 3.1.0 module. With redfish 3.1.0 I then ran into a missing attribute of the HttpClient object when trying to use the session feature:
AttributeError: 'HttpClient' object has no attribute '_conn'
Downgrading python-redfish-library to 3.0.3 resolved my issue. Looking into their commits it seems they replaced "http.client" with "requests".
Environment: Ubuntu 20.04.3 LTS Python 3.8.10 python-redfish-library via pip3 and a requirement of "redfish>=2.1.4"
Full traceback: