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

Patch UID in error causing infinite reconcile #7337

Closed
killianmuldoon opened this issue Oct 4, 2022 · 3 comments · Fixed by #7345
Closed

Patch UID in error causing infinite reconcile #7337

killianmuldoon opened this issue Oct 4, 2022 · 3 comments · Fixed by #7345
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@killianmuldoon
Copy link
Contributor

In the Topology Reconciler's patching logic applyPatchesToRequest returns an error which includes the Patch UID if the patch fails. If a patch is misspecified (i.e. always errors in this function) this error gets added to a TopologyReconciled condition on the Cluster object. The result is infinite reconciles i.e. no exponential backoff if this error occurs, similar to the issue in #5945.

The solution to this is to either remove the UID from the error or to log and return the error seperately, similar to #7295

return errors.Errorf("unable to find corresponding request item with uid %q for the patch", patch.UID)

/kind bug
/cc @sbueringer

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Oct 4, 2022
@k8s-ci-robot
Copy link
Contributor

@killianmuldoon: This issue is currently awaiting triage.

If CAPI contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sbueringer
Copy link
Member

I think our best option is to log with UID and return the error without as you suggested.

@killianmuldoon
Copy link
Contributor Author

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants