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

FS-1671; X13 Support #9

Merged
merged 5 commits into from
Dec 4, 2024
Merged

FS-1671; X13 Support #9

merged 5 commits into from
Dec 4, 2024

Conversation

jakeschuurmans
Copy link

@jakeschuurmans jakeschuurmans commented Nov 19, 2024

What does this PR implement/change/remove?

Support for X13 inventory and X13 BIOS/BMC Firmware update

New example for firmware upload and firmware install uploaded

ofaurax
ofaurax previously approved these changes Nov 19, 2024
Copy link

@ofaurax ofaurax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, tested in dry-run on my side

@ofaurax
Copy link

ofaurax commented Nov 19, 2024

Please add a better title to the PR 🤣

@jakeschuurmans jakeschuurmans changed the title FS-1671 FS-1671; X13 Support Nov 19, 2024
@@ -182,8 +182,7 @@ func (c *Client) Open(ctx context.Context) (err error) {
return err
}

if !bytes.Contains(body, []byte(`url_redirect.cgi?url_name=mainmenu`)) &&
!bytes.Contains(body, []byte(`url_redirect.cgi?url_name=topmenu`)) {
if !bytes.Contains(body, []byte(`url_redirect.cgi?url_name=topmenu`)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why make this change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted

}
}

func stateFinalized(s redfish.TaskState) bool {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I low-key hate using a slice instead of a map here, but I don't hate it enough to demand a change.

return "", err
}

// X13s dont create a new task id when going from upload to install, so we pass through the same one

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a redfish version thing? Or a model thing?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redfish.

X11 doesnt have a taskID at all, X12 creates a new taskID for each, and X13 keeps the same taskID

@ofaurax
Copy link

ofaurax commented Nov 22, 2024

Is this work compatible with bmc-toolbox#394 ?

@jakeschuurmans
Copy link
Author

Is this work compatible with bmc-toolbox#394 ?

@ofaurax

This work will replace that work.

Copy link

@ofaurax ofaurax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested on both x11 and x13 servers

@jakeschuurmans jakeschuurmans merged commit f9b74d0 into main Dec 4, 2024
4 checks passed
@jakeschuurmans jakeschuurmans deleted the FS-1671 branch December 4, 2024 13:12
ofaurax pushed a commit that referenced this pull request Feb 5, 2025
* X13 Inventory support

* X13 Firmware update support

* Fix up examples

* remove duplicate import

* fix x11 and x12 bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants