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 redfish inventory support #299

Merged
merged 3 commits into from
Dec 12, 2022
Merged

Supermicro redfish inventory support #299

merged 3 commits into from
Dec 12, 2022

Conversation

joelrebel
Copy link
Member

@joelrebel joelrebel commented Dec 7, 2022

What does this PR implement/change/remove?

Updates the Redfish provider inventory collection to work on Supermicro hardware,

6029P-E1CR12L.json
SYS-5019C-MR.json
SYS-510T-MR.json

Checklist

  • Tests added
  • [X ] Similar commits squashed

The HW vendor this change applies to (if applicable)

Supermicro

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

Should work with all SMC hardware, tested on hardware variants,

SYS-5019C-MR
6029P-E1CR12L
SYS-510T-MR

Description for changelog/release notes

Redfish inventory support for Supermicro hardware.

… error

Since redfish endpoints differ between vendors, hardware models, one or more collection methods
part of Inventory() can fail, this bool value when false will cause Inventory() to ignore
those errors and continue collection for whatever data is available.

For now this bool parameter defaults to false, it can be exposed to the caller
when such a need arises.
…or SMC hardware

This fixes the collection methods to work with various SMC hardware as well.

Tested on,

SYS-5019C-MR
6029P-E1CR12L
SYS-510T-MR
Copy link
Collaborator

@luke-jarymowycz luke-jarymowycz left a comment

Choose a reason for hiding this comment

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

Bios version is not reporting correctly.

Came across this issue when testing on a SYS-510T-MR that had NICs listed in
redfish but no network adapters.
@codecov
Copy link

codecov bot commented Dec 8, 2022

Codecov Report

Base: 46.53% // Head: 46.41% // Decreases project coverage by -0.11% ⚠️

Coverage data is based on head (f280f1a) compared to base (31e3dc1).
Patch coverage: 11.53% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #299      +/-   ##
==========================================
- Coverage   46.53%   46.41%   -0.12%     
==========================================
  Files          27       27              
  Lines        2265     2273       +8     
==========================================
+ Hits         1054     1055       +1     
- Misses       1096     1103       +7     
  Partials      115      115              
Impacted Files Coverage Δ
providers/redfish/inventory.go 3.12% <0.00%> (-0.03%) ⬇️
providers/redfish/inventory_collect.go 0.00% <0.00%> (ø)
providers/redfish/redfish.go 20.37% <100.00%> (+1.50%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@joelrebel
Copy link
Member Author

Pushed a fix for a NIC collection issue identified in further testing.

@luke-jarymowycz thanks for taking a look, I realised that was actually the older gist,
these are the outputs per device.

6029P-E1CR12L.json
SYS-5019C-MR.json
SYS-510T-MR.json

Copy link
Collaborator

@luke-jarymowycz luke-jarymowycz left a comment

Choose a reason for hiding this comment

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

Output looks good now.

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