-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Root Object #165
Comments
When going through the initial Unfortunately you'll need to request support from your vendor. They have a bug in their service that requires a fix. |
Another user encountered the same issue on their system. They provided a workaround here: #157 |
Hi @mraineri Thanks a lot for the response. Can we have this optional as get root object? because I am able to login without this get root object and later I can assign the root_resp after login for future usage. I have a temp fix for this like I can use
But If its optional like in redfish_client , then it will help a lot. Because here every URI is password protected. Thank you |
@v-ajitpanda I brought this up with others for discussion. While we're still concerned changing things would encourage non-conformant behavior, we think we have a middleground in mind to move things along for you. What we'd like to do is in Would this path be okay? |
Thanks Mike. This will unblock us while pushing for conformance, at the same time. |
Thank you, Mike, I tried the patch, and it helps establish connection. Previously we could not establish connection because it was mandating authorization for /redfish/v1 |
Is it possible to use username and password to get the get root object. I am trying to connect to RM. To connect to RM we need to give username and password. So while I am creating an root object I am giving ip, username, password and default prefix also I am giving check_connectivity = False, so at that time it not calling get root object. But while loging in its checking for again get root object. Inside get root object we are not using any username and password so its giving always 401 error. Could you help me with this.
redfish_ifc = redfish.redfish_client(
"",
username="",
password="",
default_prefix="/redfish/v1",
timeout=30,
check_connectivity=False
)
redfish_ifc.login(auth="basic", username="", password="")
res = redfish_ifc.get("/redfish/v1/Systems")
This is the get root object
def get_root_object(self):
"""Perform an initial get and store the result"""
try:
resp = self.get(self.default_prefix)
except Exception as excp:
raise excp
def login(self, username=None, password=None, auth=AuthMethod.SESSION):
"""Login and start a REST session. Remember to call logout() when"""
""" you are done.
The text was updated successfully, but these errors were encountered: