Skip to content
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

Error getting Chassis collection for DPU BMCs #322

Closed
iamsli opened this issue Apr 30, 2024 · 1 comment · Fixed by #323
Closed

Error getting Chassis collection for DPU BMCs #322

iamsli opened this issue Apr 30, 2024 · 1 comment · Fixed by #323

Comments

@iamsli
Copy link
Contributor

iamsli commented Apr 30, 2024

Getting the below error when trying to get the chassis collection by
serviceRoot.Chassis() on DPU BMCs

error getting list of chassis: failed to retrieve some items: [{"link":"/redfish/v1/Chassis/Card1","error":"json: cannot unmarshal object into Go struct field .Controls of type common.Links"},{"link":"/redfish/v1/Chassis/Bluefield_BMC","error":"json: cannot unmarshal object into Go struct field .Controls of type common.Links"}]chassisList: [0xc0001c5b08]
@stmcginnis
Copy link
Owner

Ah, I think I see what the issue is. I can have a fix up shortly.

I'll start working on that, but just to confirm, would you be able to run the following to get the output from this machine? I've never worked with a DPU machine, so it would be great to see what it returns.

curl https:/$ADDR/redfish/v1/Chassis/Bluefield_BMC \
    -X GET \
    -k -s \
    -H "Content-type: application/json" \
    -u "$USER:$PASS" | jq .

If you don't have jq available you can omit that and just get the raw JSON response.

If you are unable to use curl, no worries. If you do know a way to get the output from the system with the tools you have, great. If not, I'm 99% certain I know the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants