brash-waitress-85312
06/26/2025, 1:41 PMGenerating Cattle id
My question is: Is it compulsory to have a working CP node in order to register a node in the cluster using rancher registration token?future-fountain-82544
06/26/2025, 2:29 PMfuture-fountain-82544
06/26/2025, 2:30 PMfuture-fountain-82544
06/26/2025, 2:30 PMbrash-waitress-85312
06/26/2025, 2:53 PMbrash-waitress-85312
06/26/2025, 3:00 PMsystem-agent-install.sh
script which is run to register a node to the current cluster get stuck at this command:
curl --connect-timeout 60 --max-time 60 --write-out '%{http_code}\n' -sS -H 'Authorization: Bearer <token>' -H 'X-Cattle-Id: f8bcebdca8c1dcce980ee7d67b583b5b3db64419bc3a0e130f8a1369a8a395a' -H 'X-Cattle-Role-Etcd: true' -H 'X-Cattle-Role-Control-Plane: true' -H 'X-Cattle-Role-Worker: true' -H 'X-Cattle-Node-Name: <eradicated>' -H 'X-Cattle-Address: ' -H 'X-Cattle-Internal-Address: <eradicated>' -H 'X-Cattle-Labels: <http://cattle.io/os=linux|cattle.io/os=linux>' -H 'X-Cattle-Taints: ' <https://rancher.internal/v3/connect/agent> -o /var/lib/rancher/agent/rancher2_connection_info.json
future-fountain-82544
06/26/2025, 3:08 PMkubectl get nodes
?future-fountain-82544
06/26/2025, 3:10 PMbrash-waitress-85312
06/26/2025, 3:15 PMkubectl get nodes
shows nothing as rke2 installation is not successful and is stuck after Generating Cattle id
[INFO] Label: cattle.io/os=linux
[INFO] Role requested: etcd
[INFO] Role requested: controlplane
[INFO] Role requested: worker
[INFO] CA strict verification is set to false
[INFO] Using default agent configuration directory /etc/rancher/agent
[INFO] Using default agent var directory /var/lib/rancher/agent
[INFO] Determined CA is not necessary to connect to Rancher
[INFO] Successfully tested Rancher connection
[INFO] Downloading rancher-system-agent binary from <https://rancher.internal/assets/rancher-system-agent-amd64>
[INFO] Successfully downloaded the rancher-system-agent binary.
[INFO] Downloading rancher-system-agent-uninstall.sh script from <https://rancher.internal/assets/system-agent-uninstall.sh>
[INFO] Successfully downloaded the rancher-system-agent-uninstall.sh script.
[INFO] Generating Cattle ID
curl: (28) Operation timed out after 60002 milliseconds with 0 bytes received
[ERROR] 000 received while downloading Rancher connection information. Sleeping for 5 seconds and trying again
future-fountain-82544
06/26/2025, 3:23 PMfuture-fountain-82544
06/26/2025, 3:25 PMbrash-waitress-85312
06/26/2025, 3:27 PMfuture-fountain-82544
06/26/2025, 3:38 PMbrash-waitress-85312
06/26/2025, 3:46 PMfuture-fountain-82544
06/26/2025, 4:01 PMfuture-fountain-82544
06/26/2025, 4:04 PM/etc/rancher/k3s/config.yaml
SystemD unit systemctl cat k3s-agent
In the past, I had to recover a k3s workers where the 1 of 3 control-nodes failed and I accidentally pinned the compute nodes to that first control node, so I'd go in and modify the "server" option to point to a new serverfuture-fountain-82544
06/26/2025, 4:05 PM$ cat /etc/rancher/k3s/config.yaml
node-name: compute-node-1
server: <https://control-node-1:6443>
token: K...::server:....
In that case, I updated the control-node-1 to be something elsebrash-waitress-85312
06/26/2025, 4:35 PM/etc/rancher/rke2/config.yaml.d/50-rancher.yamlon
rke2 worker node as well.
{
"node-label": [
"<http://cattle.io/os=linux|cattle.io/os=linux>",
"<http://rke.cattle.io/machine=b67b5f2c-9d28-4be1-8bfb-cb6e0768eb70|rke.cattle.io/machine=b67b5f2c-9d28-4be1-8bfb-cb6e0768eb70>"
],
"private-registry": "/etc/rancher/rke2/registries.yaml",
"server": "<https://10.0.20.165:9345>",
"token": "<token>"
}
so if just update the "server": "<https://10.0.20.165:9345>
address with the new control plane and restart the rke2-agent service, would it simply work?future-fountain-82544
06/26/2025, 4:38 PMfuture-fountain-82544
06/26/2025, 4:41 PM