-
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
ControlPlaneInitialized condition is set before a control-plane Node is ready #4936
Comments
/assign @fabriziopandini Just a note that the two codepaths linked above are mutually exclusive, although I do agree that they have different definitions and this should be fixed. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. 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. |
/reopen |
@vincepri: Reopened this issue. 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. |
/unassign |
I am very interested in this project, can I try to solve this problem? |
@13164815445 Welcome and thanks for your interest! It might be a good idea to tackle on of our good first issues initially to get used to the workflow in contributing to Cluster API. |
thanks! can i assign this issue to me? @killianmuldoon |
/assign @13164815445 |
/triage accepted |
/unassign @13164815445 /assign @killianmuldoon |
What steps did you take and what happened:
KubeadmControlPlane
to force a failure, something like:The worker machine is in Provisioning, before a control-plane is up:
Its because the
cluster
hasControlPlaneInitialized
status.Even though there is no nodeRef
What did you expect to happen:
According to the API comment
ControlPlaneInitializedCondition
should be marked True when:There is 1 controller that checks for the NodeRef
cluster-api/controllers/cluster_controller.go
Lines 477 to 482 in 7f879be
But another one will set to True with only
KubeadmControlPlane.initialized = true
:cluster-api/controllers/cluster_controller_phases.go
Lines 238 to 247 in bfc6f80
I think both should check for a control-plane Machine to have a NodeRef.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
It most cases it may be undesirable to start bootstrapping worker machines before a control-plane (and API server) is up since it may cause a lot of churn as the workers will fail to start.
Environment:
v0.4.0
kubectl version
):/etc/os-release
):/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: