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

Add powersupply failures to machine issues #580

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

majst01
Copy link
Contributor

@majst01 majst01 commented Oct 4, 2024

Now we have the information about the power supply state, evaluate this info and report as machine issue if something is wrong here.

TODO:

  • add docs.metal-stack.io description what actions need to be done in case of such an issue

@majst01 majst01 requested a review from a team as a code owner October 4, 2024 06:22
@majst01 majst01 requested a review from Gerrit91 October 4, 2024 06:22

func (i *issuePowerSupplyFailure) Evaluate(m metal.Machine, ec metal.ProvisioningEventContainer, c *Config) bool {
for _, ps := range m.IPMI.PowerSupplies {
if ps.Status.Health != "OK" || ps.Status.State != "Enabled" {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would be nice if these String values are somewhere available and documented

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe we should at least compare case insensitive

@majst01 majst01 force-pushed the add-powersupply-failures-to-issues branch from ebd27f6 to 36daae2 Compare October 4, 2024 06:28
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