-
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
Panic in NodeRef controller #1104
Comments
Once fixed, we'll need to backport to |
Fixing the panic seems to be as easy as not swallowing the error when returning:
Now, I'm not sure this is enough because the code (or its comments) is not clear whether The end result would be: return reconcile.Result{RequeueAfter: 10 * time.Second}, err If this makes sense to you, I think the next step would be to figure out tests that prove the fix. |
@pires That seems like a good approach, we can return both |
I'll be opening a PR to address this today. |
I just hit this and have a patch. I do not se lifecycle active so I will take it. /assign |
ah ok, actually this is a good chance for someone else to get a contribution /remove-lifecycle active Sorry for the noise @pires, you should for sure work on this |
Fixes kubernetes-sigs#1104 Signed-off-by: Pires <pjpires@gmail.com>
Fixes kubernetes-sigs#1104 Signed-off-by: Pires <pjpires@gmail.com>
/kind bug
What steps did you take and what happened:
What did you expect to happen:
Anything else you would like to add:
I hit this return statement:
cluster-api/pkg/controller/noderef/noderef_controller.go
Line 169 in b37cf11
which returns a
nil
error. But it crashed atcluster-api/pkg/controller/noderef/noderef_controller.go
Line 143 in b37cf11
because it didn't check to see if the reconcile needed to be requeued, and machine.status.nodeRef was nil.
Environment:
The text was updated successfully, but these errors were encountered: