Skip to content

feat(core): retry all CES endpoints on connection failure#109

Merged
cryptomilk merged 1 commit into
openSUSE:masterfrom
cryptomilk:asn-fix
Jun 29, 2026
Merged

feat(core): retry all CES endpoints on connection failure#109
cryptomilk merged 1 commit into
openSUSE:masterfrom
cryptomilk:asn-fix

Conversation

@cryptomilk

Copy link
Copy Markdown
Collaborator

When operating in Policy mode, _request_cep() now iterates through all matching CES endpoints in priority order instead of stopping at the first. A requests.exceptions.RequestException (connection refused, timeout, etc.) triggers a warning log and a retry on the next endpoint; SOAPFault still propagates immediately since the server deliberately rejected the request. If all endpoints fail, the last exception is re-raised.

certmonger's Submit and Poll operations now catch RequestException and return CONNECTERROR (exit code 3) so certmonger receives proper feedback when all servers are unreachable.

Fixes #35

When operating in Policy mode, _request_cep() now iterates through all
matching CES endpoints in priority order instead of stopping at the
first. A requests.exceptions.RequestException (connection refused,
timeout, etc.) triggers a warning log and a retry on the next endpoint;
SOAPFault still propagates immediately since the server deliberately
rejected the request. If all endpoints fail, the last exception is
re-raised.

certmonger's Submit and Poll operations now catch RequestException and
return CONNECTERROR (exit code 3) so certmonger receives proper
feedback when all servers are unreachable.

Fixes openSUSE#35

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cryptomilk cryptomilk merged commit 36606cc into openSUSE:master Jun 29, 2026
9 checks passed
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.

Multiple enrollment servers not tried

1 participant