You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
addNodesToKubernetesCluster silently skips invalid VMs and reports success #14832
addNodesToKubernetesCluster checks each VM id in validateNodes, but a VM that fails a check is only logged and dropped from the list. The add worker then runs on the rest, and the job reports success. The caller is never told that some of the VMs it asked for were not added, and the UI shows nothing either.
VM passed
result
removed (expunged) VM
dropped silently
template not found or deleted
dropped silently
template not marked for CKS
dropped silently
default NIC not on the cluster network
dropped silently
VM with no default NIC
NullPointerException
VM already in this cluster
dropped silently
valid VM
added
The request fails only when every VM is dropped, and then with a generic "No valid nodes found to be added" error that names no VM and gives no reason.
versions
4.21.0 and later (4.22 branch, main)
The steps to reproduce the bug
Create a CKS cluster.
Deploy VM A from a CKS template on the cluster network, and VM B from a template not marked for CKS.
Activity