-
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
MachineDeployment status does not show the number of ReadyReplicas in a Management cluster #930
Comments
/kind bug This issue is related to the AWS provider not setting the NodeRef field when running in a Management cluster. The nodeRef was being set before, but the logic was revisited in kubernetes-sigs/cluster-api-provider-aws#744 because Cluster API wouldn't properly delete the cluster in a management scenario. Going to close this one here, given it's specific to the AWS provider. |
@vincepri: 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. |
@vincepri This would also affect other providers that do not set NodeRef when run in a management cluster (which I believe is all) /reopen |
@detiber: 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. |
/assign |
Reproduction steps:
$ kubectl get machinedeployments -o=jsonpath='{.items[0].status}'
map[observedGeneration:2 replicas:1 unavailableReplicas:1 updatedReplicas:1]% |
I'm curious how we can make this work in the general case. The only status information reported by the machine is provider-specific: $ kubectl get machine brew-69b776f86c-8s2tl -o json | jq '.status'
{
"providerStatus": {
"instanceID": "i-0d833b1e56938a3bb",
"instanceState": "running",
"metadata": {
"creationTimestamp": null
}
}
} If we look at the structure itself, we see that there's a There's the Conditions field, vwhich includes a ready status. This is also not currently not populated by CAPA, I don't know if other things do populated it. I think perhaps the issue here is that the MachineSet doesn't get updated with ReadyReplicas either. If it did, it'd be trivial to propagate that up to MachineDeployment |
/area machine |
/lifecycle active |
Create a MachineDeployment in ManagementCluster with n Replica
n nodes are created.
Check status of MachineDeployment, the ReadyReplica wont be set to n.
The text was updated successfully, but these errors were encountered: