Add wait_for_power + rebooted state for BMC-managed hosts - #2
Open
dwoz wants to merge 2 commits into
Open
Conversation
Lets an SLS file gate further work on a remote BMC-managed host actually coming back after a reset, instead of fire-and-forget. The new state issues a reset, polls the BMC until power returns to 'on', and optionally TCP-probes an OS-side host:port (typically SSH) before declaring success. Transient errors during the BMC's restart (TLS resets, 401s while the web stack restarts) are absorbed and retried instead of aborting the wait. Exposed in both targeting styles: - bmc.wait_for_power / bmc.rebooted (profile-based) - bmc_host.wait_for_power / bmc_host.rebooted (resource-based) Includes a new "Rebooting BMC-managed hosts" topic guide and an autodoc reference page for the shared polling helper.
dwoz
force-pushed
the
feat/wait-for-power-rebooted
branch
from
June 19, 2026 09:54
1744db6 to
fa7618f
Compare
pyupgrade rewrote socket.error to OSError in test_tcp_probe_failure, leaving 'import socket' unused.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2 +/- ##
==========================================
+ Coverage 82.78% 85.18% +2.39%
==========================================
Files 17 19 +2
Lines 1348 1586 +238
Branches 98 108 +10
==========================================
+ Hits 1116 1351 +235
- Misses 200 201 +1
- Partials 32 34 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets an SLS file gate further work on a remote BMC-managed host actually coming back after a reset, instead of fire-and-forget. The new state issues a reset, polls the BMC until power returns to 'on', and optionally TCP-probes an OS-side host:port (typically SSH) before declaring success. Transient errors during the BMC's restart (TLS resets, 401s while the web stack restarts) are absorbed and retried instead of aborting the wait.
Exposed in both targeting styles: