-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🐛 Make clusterctl move tolerant to APIserver ServerTimeoutError bug when re-creating objects with GenerateName set #5185
Conversation
Hi @alejandroEsc. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/assign @timothysc |
/ok-to-test |
/assign @timothysc |
/retest |
Would it be possible to rename the PR and amend comments so we make explicit we making move tolerant to a known Kuberenetes defect? |
Please rename, what comments do you suggest? |
The comment was fixed according to #5185 (review). |
Could you please suggest s change to the title you would like? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alejandroEsc please squash commits, we should be good to go
ran gofmt remove generateName metadata instead of changing the AlreadyExist error remove unnecessary comment Update cmd/clusterctl/client/cluster/mover.go Co-authored-by: Daniel Lipovetsky <[email protected]> Update cmd/clusterctl/client/cluster/mover.go Co-authored-by: Vince Prignano <[email protected]>
9dc6fa1
to
313b1fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
More details found in slack: https://kubernetes.slack.com/archives/C8TSNPY4T/p1630421115076500
The move function is not idempotent because currently the Kubernetes apiserver returns a ServerTimoutError for those objects whose metadata has the generateName flag. This can be verified by creating a resource with this flag, and then trying to
create -f
the file again with the same name in place.This is a known Kubernetes issue kubernetes/kubernetes#32220
Until a fix is in place, we propose this solution which would allow the move function to be idempotent and handle these kind of objects without tossing an unexpected error.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #