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 fail service instance on broker server error #3607

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

georgethebeatle
Copy link
Member

@georgethebeatle georgethebeatle commented Nov 11, 2024

Is there a related GitHub Issue?

No

What is this change about?

Do not fail service instance on broker server error

Previously we were setting the ProvisioningFailedCondition to true if
the broker returned error on provision, no matter the error. The problem
with doing this is that the error can be recoverable, such as the
network flaking, but the instance is sent to a state from which it
cannot recover (When the ProvisioningFailedCondition is set the
reconciler gives up early in the reconciliation loop).

This change fixes the problem described above by defining a new
UnrecoverableError type in the osbapi client. The controller would then set the
ProvisioningFailedCondition only if the error it received is an
UnrecoverableError.

According to the OSBAPI spec unrecoverable perovision error codes are
400, 409 and 422.

Previously we were setting the ProvisioningFailedCondition to true if
the broker returned error on provision, no matter the error. The problem
with doing this is that the error can be recoverable, such as the
network flaking, but the instance is sent to a state from which it
cannot recover (When the ProvisioningFailedCondition is set the
reconciler gives up early in the reconciliation loop).

This change fixes the problem described above by defining a new
UnrecoverableError type in the osbapi client. The controller would then set the
ProvisioningFailedCondition only if the error it received is an
UnrecoverableError.

According to the OSBAPI spec unrecoverable perovision error codes are
400, 409 and 422.

Co-authored-by: Yusmen Zabanov <[email protected]>
@georgethebeatle georgethebeatle merged commit afb7c36 into main Nov 12, 2024
10 checks passed
@georgethebeatle georgethebeatle deleted the wip-retry-server-errors branch November 12, 2024 11:19
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