Open rustydb opened 10 months ago
I think it is here: https://github.com/Cray-HPE/gru/blob/main/pkg/cmd/cli/chassis/boot/show.go#L90
Getting this endpoint needs to be more robust. It tries at times to get
/redfish/v1/Systems/1/BootOptions/0002
but it is
/redfish/v1/Systems/1/BootOptions/2
it can also be inaccurate if you just trim the zeroes. Maybe go-redfish has some improvements in this area. At the time, I had to get get the endpoint manually
I think it is here: https://github.com/Cray-HPE/gru/blob/main/pkg/cmd/cli/chassis/boot/show.go#L90
Getting this endpoint needs to be more robust. It tries at times to get
/redfish/v1/Systems/1/BootOptions/0002
but it is
/redfish/v1/Systems/1/BootOptions/2
it can also be inaccurate if you just trim the zeroes. Maybe go-redfish has some improvements in this area. At the time, I had to get get the endpoint manually
@jacobsalmela are you saying that iLO/HPE can behave either way?
I ran your branch against one of our nodes and received a 404 error even with the trimmed zeros:
[662]rusty@HPE-XHD22YD7DW:~/gitstuffs/cray-shasta/gru> ./gru --insecure show boot surtur-ncn-m001-mgmt.hpc.amslabs.hpecorp.net
Asynchronously querying [ 1] hosts ...
surtur-ncn-m001-mgmt.hpc.amslabs.hpecorp.net:
Order:
Error : 404: {"error":{"code":"iLO.0.10.ExtendedInfo","message":"See @Message.ExtendedInfo for more information.","@Message.ExtendedInfo":[{"MessageArgs":["/redfish/v1/Systems/1/BootOptions/13"],"MessageId":"Base.1.4.ResourceMissingAtURI"}]}}
Yes, this branch/fix is incomplete but it started with it picking the wrong endpoint (BootOptions/0002
instead of BootOptions/2
).
I think I had some code in place to do our own URL manipulation, since go-fish wasn't doing it either. Maybe that is different now that the branch has been sitting for some time.
We may just need a larger set of varying hardware to run this against and make appropriate simulator/RIE changes to account for them going forward.
SUMMARY
When invoking either of the following against an iLO machine, 404 errors are returned.
gru show boot
gru chassis boot
Found against the following node
ISSUE TYPE
STEPS TO REPRODUCE
gru show boot
EXPECTED RESULTS
A list of boot options should print out
ACTUAL RESULTS
A 404 error is returned.