HewlettPackard / python-ilorest-library

Python library for interacting with devices which support a Redfish Service
Apache License 2.0
189 stars 92 forks source link

Cannot cooenct #165

Closed Houselstein57 closed 1 month ago

Houselstein57 commented 3 months ago

Hello,

I'm trying a redfish connection to ILO using ILO session token gotten from Oneview. It is not working using python-ilorest-library, got an empty object:

from redfish import RedfishClient REDFISHOBJ=RedfishClient(base_url=iloURL,sessionkey=iloToken) vars(REDFISHOBJ) {'default_prefix': '/redfish/v1', 'is_redfish': True, 'root': None, 'auth_type': 'session', '_auth_key': None, '_user_pass': (None, None), '_session_location': None, '_cert_data': None, 'login_otp': None, 'connection': <redfish.rest.connections.HttpConnection object at 0x000002553C3ABD60>, '_biospassword': None}

but when using DMTF redfish it is working :

import redfish

REDFISHOBJ=redfish.redfish_client(base_url=iloURL,sessionkey=iloToken) vars(REDFISHOBJ) {'_RestClientBasebase_url': 'https://XX.XX.XX.XX', '_RestClientBaseusername': None, '_RestClientBase__password': None, '_RestClientBase__session_key': '6029eb116e109b5b91d94432bb28ecba',......

Thanks in advance for your help.

Yvon Housletein.

rajeevkallur commented 3 months ago

Will check

rajeevkallur commented 2 months ago

This will be fixed in upcoming ilorest version 5.3.0.0

rajeevkallur commented 1 month ago

Fixed in 5.3