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

Do not shutdown if UPS is performing calibration #817

Merged

Conversation

overhacked
Copy link
Contributor

Some UPS calibration procedures (e.g. CyberPower) involve
discharging the battery below the LB level, but we don't
want systems to shut down if the UPS is only on battery
because it is calibrating.

Some UPS calibration procedures (e.g. CyberPower) involve
discharging the battery below the LB level, but we don't
want systems to shut down if the UPS is only on battery
because it is calibrating.
Log a warning if an UPS is both OB+LB+Calibrating so due to this combo we do not tell the host to shut down gracefully.
Comment some ideas to work around such situation in a smarter way if we have additional info to know if we are in a safe environment just calibrating, or a known-unsafe one with a real outage in progress.
@lgtm-com
Copy link

lgtm-com bot commented Oct 7, 2020

This pull request introduces 1 alert when merging 6b43dbb into 979d583 - view on LGTM.com

new alerts:

  • 1 for FIXME comment

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