bhouse-nexthop opened a new issue, #14818: URL: https://github.com/apache/cloudstack/issues/14818
### problem `addNodesToKubernetesCluster` reports success when a node fails to be added. | step | what happens | |---|---| | a node fails setup in `KubernetesClusterAddWorker` (e.g. fails the compatibility check) | worker logs "Not every node was added to the CKS cluster ..., nodes added: 0 out of 1", records an ERROR event and returns `false` | | `KubernetesClusterManagerImpl.addNodesToKubernetesCluster` | passes the `false` up | | `AddNodesToKubernetesClusterCmd.execute()` | ignores the return value and sets a normal cluster response | | async job | completes successfully | cmk, the UI and automation see success; the only sign of failure is the event. ### versions 4.22 and main (`KubernetesClusterAddWorker` is the same on both). ### The steps to reproduce the bug 1. Have a CKS cluster and a VM that will fail the add-node checks (e.g. missing the required packages). 2. `addNodesToKubernetesCluster id=<cluster> nodeids=<vm>` 3. The job succeeds; the node is not in the cluster; an ERROR event says "nodes added: 0 out of 1". ### What to do about it? Fail the job with an error naming the VMs that were not added (and those that were, on a partial add). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
