Skip to content

fix(deltaproxy): log sub-proxy init failures at ERROR level instead of INFO [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] - #70074

Open
waterWang wants to merge 1 commit into
saltstack:masterfrom
waterWang:fix/deltaproxy-subproxy-init-log-level
Open

fix(deltaproxy): log sub-proxy init failures at ERROR level instead of INFO [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT]#70074
waterWang wants to merge 1 commit into
saltstack:masterfrom
waterWang:fix/deltaproxy-subproxy-init-log-level

Conversation

@waterWang

Copy link
Copy Markdown

What does this PR do?

Fixes #70072

When a deltaproxy control minion initializes its sub-proxies sequentially (the default), an exception during a sub-proxy's initialization is caught and logged at INFO level. With the default log_level: warning, a failure that permanently disables a minion produces zero visible log output — the sub-proxy silently disappears.

The parallel startup path handles this correctly (logs at ERROR + re-raises). This PR brings the sequential path in line:

  1. Per-proxy failure: log.infolog.error
  2. Summary of failed proxies: log.infolog.error

Problem Details

From the issue: after upgrading a production master from 3007.14 to 3008.2, all 21 sub-proxies failed to initialize (netmiko_px proxy module removed from core in 3008). The service showed active (running), logs contained nothing, and the fleet was silently unmanaged for four days.

What does this PR do NOT change?

No behavior change — only the log level of existing failure messages, matching the parallel-startup branch.

Testing

  • Manual verification on the code: the two log.info calls in salt/metaproxy/deltaproxy.py post_master_init (sequential branch) are now log.error.
  • No functional code path changed.

…f INFO

When a sub-proxy fails during sequential initialization, the exception
is caught and logged at INFO level. With the default log_level: warning
this means a failure that permanently disables a minion produces zero
visible log output — the sub-proxy is simply missing.

Fix: log both the per-proxy failure and the summary at ERROR level,
matching the existing parallel startup branch behavior.

Refs: saltstack#70072
@waterWang
waterWang requested a review from a team as a code owner August 17, 2026 07:56

@twangboy twangboy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please create this against the 3008.x branch. This also needs a changelog and a test.

@twangboy twangboy added the test:full Run the full test suite label Aug 18, 2026
@twangboy twangboy added this to the Argon v3008.3 milestone Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

# [BUG] deltaproxy: sub-proxy init failures are logged at INFO and invisible at default log level

2 participants