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

Update virtual media mounting: #398

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

jacobweinstock
Copy link
Member

@jacobweinstock jacobweinstock commented Oct 8, 2024

What does this PR implement/change/remove?

At least one BMC, Supermicro X11SDV-4C-TLN2F, did not support setting inserted and/or writeProtected in the payload properties in redfish calls to do a virtual media mount. This falls back to not using them if the initial call with them in the properties fails.

This was test and worked successfully on a Supermicro (X11SDV-4C-TLN2F), HP ILO5, and Dell iDRAC9.

Checklist

  • Tests added
  • Similar commits squashed

The HW vendor this change applies to (if applicable)

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

At least one BMC, Supermicro SYS-E300-D9, did not
support setting inserted and/or writeProtected
properties in redfish calls to do a virtual media
mount. This falls back to not using them if the
initial call with them in the properties fails.

This was test and worked successfully on a
Supermicro (SYS-E300-D9), HP ILO5, and Dell iDRAC9.

Signed-off-by: Jacob Weinstock <[email protected]>
Copy link
Member

@joelrebel joelrebel left a comment

Choose a reason for hiding this comment

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

Thanks for adding SMC support and testing this out, would you mind adding in an example snippet for reference into https://github.com/bmc-toolbox/bmclib/tree/main/examples

internal/redfishwrapper/virtual_media.go Outdated Show resolved Hide resolved
internal/redfishwrapper/virtual_media.go Outdated Show resolved Hide resolved
internal/redfishwrapper/virtual_media.go Outdated Show resolved Hide resolved
This helps understand and maintain-ability.
Decreases the complexity of the function too.

Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock
Copy link
Member Author

jacobweinstock commented Oct 8, 2024

Thanks for adding SMC support and testing this out, would you mind adding in an example snippet for reference into https://github.com/bmc-toolbox/bmclib/tree/main/examples

Thanks for the review. Will add an example.

This helps users see how to use the virtual
media mounting capabilities.

Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock
Copy link
Member Author

@joelrebel , ready for another review. please and thank you!

Copy link
Member

@joelrebel joelrebel left a comment

Choose a reason for hiding this comment

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

Thanks, thanks looks good to me

@mergify mergify bot merged commit eba5356 into bmc-toolbox:main Oct 9, 2024
5 checks passed
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