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

Report powersupply status #70

Merged
merged 4 commits into from
Oct 2, 2024
Merged

Report powersupply status #70

merged 4 commits into from
Oct 2, 2024

Conversation

majst01
Copy link
Contributor

@majst01 majst01 commented Oct 1, 2024

References

Closes #69

Depends on:

Additional Description

Allow metal-bmc to report the state and health of the powersupplies of a machine.

@majst01 majst01 requested a review from a team as a code owner October 1, 2024 06:32
@majst01 majst01 requested review from mwennrich and Gerrit91 October 2, 2024 11:34
@@ -29,6 +29,7 @@ func (i *ReportItem) EnrichWithBMCDetails(ipmiPort int, ipmiUser, ipmiPassword s
}
} else {
i.Log.Warn("could not retrieve bmc details of device", "mac", i.Mac, "ip", i.Ip, "err", err)
return err
Copy link
Contributor

Choose a reason for hiding this comment

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

So, what is the implication of this? When skipping the error the reporting just sent part of the data and now it does not return the machine, I assume?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The the calling errgroup is now vanishing the error :-) so no machine should be skipped if i am right

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay. :)

@majst01 majst01 merged commit c55345d into master Oct 2, 2024
1 check passed
@majst01 majst01 deleted the report-powersupply-state branch October 2, 2024 12:18
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.

Report Powersupply state
3 participants