bhouse-nexthop opened a new issue, #14780: URL: https://github.com/apache/cloudstack/issues/14780
### problem CKS renders each node's cloud-config (certificates, keys and settings filled in), base64-encodes it and deploys the VM. If the result is over `vm.userdata.max.length` (default 32768), deploy fails deep inside VM creation: | what the user sees | where the real reason is | |---|---| | `Provisioning the control VM failed in the Kubernetes cluster : <name>` | management server log: `User data has exceeded configurable max length: 32768` | - The error doesn't say which node type, how big the user data is, or which setting to change. - On add-node, the CKS ISO is already attached and the cluster has already changed state when it fails. - If the etcd node is the one that's too big, the cluster is left in `Starting`. Stock 4.22 control-node user data is already about 28 KB after base64, so a CNI configuration (`cniconfigurationid`) or more content in the templates is enough to go over the limit. ### versions 4.22 (also main) ### The steps to reproduce the bug 1. Set `vm.userdata.max.length` below the control node's user data size (e.g. 16384), or use a large CNI configuration. 2. Create a CKS cluster. 3. The create job fails with the generic message above. ### What to do about it? Check each node's base64 user data against `vm.userdata.max.length` in CKS, before that VM is deployed (and on add-node, before the ISO is attached), and fail with a message that names the node type, cluster, size and limit. -- 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]
