-
Notifications
You must be signed in to change notification settings - Fork 262
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
🐛 Fix patching OpenstackMachine's immutable spec during reconcile #1807
🐛 Fix patching OpenstackMachine's immutable spec during reconcile #1807
Conversation
|
✅ Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Welcome @strudelPi! |
Hi @strudelPi. 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. |
dc2d0ba
to
39b7242
Compare
/ok-to-test |
@MaysaMacedo: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/ok-to-test |
e98c500
to
6020a9e
Compare
6020a9e
to
8f75b68
Compare
I just realized that the same use case of vanishing machines is a trouble when a delete on that machine is attempted. I think the finalizer makes it so that the delete hangs forever. Will need to check on that further. |
This should be ok. In general we treat 404 as success on delete: cluster-api-provider-openstack/pkg/cloud/services/compute/instance.go Lines 766 to 769 in 5f306c3
|
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.
This is a nasty bug, thanks!
I've approved, but I'd appreciate it if you would make the requested change to call SetFailure() before merging. You'll still need LGTM from somebody.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mdbooth, strudelPi 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 |
/cherry-pick release-0.9 |
@mdbooth: once the present PR merges, I will cherry-pick it on top of release-0.9 in a new PR and assign it to you. In response to this:
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. |
when the VM is vanished (cannot be fetched but existed at some point)
8f75b68
to
e939503
Compare
Thanks for the update. Lets wait for a second reviewer to leave lgtm. |
/lgtm |
/hold cancel |
@mdbooth: new pull request created: #1819 In response to this:
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. |
What this PR does / why we need it: When a previously existing(OpenstackMachine has instanceID ref) VM vanishes (cannot be fetched from Openstack) the reconcile loop attempts recreate and update the OpenstackMachine spec (the instanceID and providerID) which is immutable. This PR disables the attempt to recreate (consistent behaviour with other broken states example)
Fixes #1787
Special notes for your reviewer:
TODOs: