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

Adds BmcReset methods and few fixes for ASRR firmware installed version checks #267

Merged
merged 9 commits into from
Apr 26, 2022

Conversation

joelrebel
Copy link
Member

@joelrebel joelrebel commented Apr 22, 2022

  • Checklist
  • Tests added
  • Similar commits squashed

What does this PR implement/change/remove?

  • builds on changes in Inventory firmware #261
  • fixes the redfish InventoryGetter implementation - method renamed
  • implements the BmcResetter interface for ASRR, Redfish
  • Firmware install status lookup to return state FirmwareInstallUnknown, when the BMC returns an empty version string
  • A few other minor fixes

The HW vendor this change applies to

  • ASRR
  • Redfish (provider)

Description for changelog/release notes

  • Implement BmcResetter interface for ASRR, Redfish

… FirmwareInstallUnknown

this is so that the caller is aware that the BMC is not aware of the
component version and can decide if it wants to power cycle or take
other actions.

instead of assuming the device needs a powercycle
…payload

this is an attempt to have the BMC preserve the User, Network BMC
configuration after a flash
…eset

error returned when the install status lookup fails
This enables the ASRR and Redfish providers to reset the BMC
- moves the optional component parameter at the end
- providers/asrockrack/firmware: wrap FirmwareInstall errors
@joelrebel joelrebel force-pushed the inventory-firmware-1 branch from 4699548 to 7503c32 Compare April 25, 2022 14:21
@joelrebel joelrebel force-pushed the inventory-firmware-1 branch from 7503c32 to da0793a Compare April 25, 2022 14:28
@joelrebel joelrebel requested a review from micahhausler April 25, 2022 15:04
Copy link
Contributor

@micahhausler micahhausler left a comment

Choose a reason for hiding this comment

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

Just a few minor changes, thanks!

providers/asrockrack/firmware.go Outdated Show resolved Hide resolved
providers/asrockrack/firmware.go Outdated Show resolved Hide resolved
providers/asrockrack/firmware.go Outdated Show resolved Hide resolved
@joelrebel joelrebel requested a review from micahhausler April 26, 2022 09:57
Copy link
Contributor

@micahhausler micahhausler left a comment

Choose a reason for hiding this comment

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

LGTM, unless you want to add flags to the example

examples/v1/firmware/firmware.go Show resolved Hide resolved
@@ -40,23 +39,17 @@ func main() {

defer cl.Close(ctx)

for _, update := range []string{"/tmp/iDRAC-with-Lifecycle-Controller_Firmware_F87RP_WN64_5.00.00.00_A00.EXE"} {
for _, update := range []string{"/tmp/E6D4INL2.09C.ima"} {
Copy link
Contributor

Choose a reason for hiding this comment

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

want to make this a flag-provided value?

examples/v1/firmware/firmware.go Show resolved Hide resolved
@joelrebel joelrebel merged commit 3c070f6 into inventory-firmware Apr 26, 2022
@joelrebel joelrebel deleted the inventory-firmware-1 branch April 26, 2022 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants