Skip to content

add bugfix/68506-minion-connect-retry#68743

Draft
harshang03 wants to merge 1 commit intosaltstack:masterfrom
harshang03:bugfix/68506-minion-connect-retry
Draft

add bugfix/68506-minion-connect-retry#68743
harshang03 wants to merge 1 commit intosaltstack:masterfrom
harshang03:bugfix/68506-minion-connect-retry

Conversation

@harshang03
Copy link

What does this PR do?

Improves minion/master connection resiliency by treating transient transport failures as retryable instead of fatal.
Adds shared retry classification helpers in salt/utils/zeromq.py (including handling for transient Tornado callback race errors like TypeError: 'NoneType' object is not iterable).
Exposes transport-level retry/error formatting helpers in salt/transport/init.py.
Updates minion/syndic connection flows in salt/minion.py to:
retry transient connection errors with backoff,
normalize retryable transport failures into SaltClientError,
keep non-retryable exceptions as hard failures.
Adds/updates unit tests for retry classification and minion retry behavior.

What issues does this PR fix or reference?

Fixes #68506

Previous Behavior

A transient transport exception during connect (including Tornado callback race-style failures) could prematurely abort minion/syndic connect flow, resulting in “minion does not connect to master” behavior.

New Behavior

Transient transport/connect exceptions are detected and retried consistently. Minion and syndic connect loops now continue retrying with bounded backoff for retryable failures, while still surfacing non-retryable failures.

Merge requirements satisfied?

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

No

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.

[Bug]: Minion does not connect to master

1 participant