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

supermicro/firmware: support firmware installs on BMCs running older firmware #339

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

joelrebel
Copy link
Member

support firmware installs on BMCs running firmware <= 1.23.06

The older firmware expects Host headers to be in a certain format (without the port) and it expects a Referrer header. The firmware upload endpoint expects the multipart header slightly different as well.

Tested this change works on the newer firmware (1.74.x) as well.

What does this PR implement/change/remove?

Checklist

  • Tests added
  • Similar commits squashed

The HW vendor this change applies to (if applicable)

  • SMC X11s

The HW model number, product name this change applies to (if applicable)

The BMC firmware and/or BIOS versions that this change applies to (if applicable)

What version of tooling - vendor specific or opensource does this change depend on (if applicable)

Description for changelog/release notes

- Support for SMC firmware updates on BMCs running firmware <=1.23.06

…re <=1.23.06

The older firmware expects Host headers to be in a certain format
(without the port) and it expects a Referrer. The firmware upload
endpoint expects the multipart header slightly different as well.

Tested this change works on the newer firmware as well.
@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Patch coverage: 50.00% and project coverage change: +0.02 🎉

Comparison is base (37fb7ea) 42.56% compared to head (a17da39) 42.59%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #339      +/-   ##
==========================================
+ Coverage   42.56%   42.59%   +0.02%     
==========================================
  Files          44       44              
  Lines        3667     3679      +12     
==========================================
+ Hits         1561     1567       +6     
- Misses       1930     1933       +3     
- Partials      176      179       +3     
Impacted Files Coverage Δ
providers/supermicro/firmware_bios.go 6.10% <0.00%> (ø)
providers/supermicro/supermicro.go 44.38% <50.00%> (+0.38%) ⬆️
providers/supermicro/firmware_bmc.go 62.01% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@diogomatsubara diogomatsubara left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the fix!

@joelrebel joelrebel merged commit 13adab0 into main Jul 13, 2023
7 checks passed
@joelrebel joelrebel deleted the smc-support-olderfw branch July 13, 2023 15:09
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.

2 participants