adamant-kite-43734
10/04/2023, 11:26 PMancient-pizza-13099
10/05/2023, 6:40 AMbusy-photographer-15014
10/05/2023, 6:40 AMancient-pizza-13099
10/05/2023, 6:42 AMancient-pizza-13099
10/05/2023, 6:46 AMbusy-photographer-15014
10/05/2023, 6:47 AMbusy-photographer-15014
10/05/2023, 6:48 AMancient-pizza-13099
10/05/2023, 6:48 AMjournalctl --unit=rancherd
busy-photographer-15014
10/05/2023, 6:48 AMLog rancherd service this 4rd node /usr/bin/rancherd bootstrap -f
INFO[0000] Loading config file [/usr/share/rancher/rancherd/config.yaml.d/50-defaults.yaml]
INFO[0000] Loading config file [/usr/share/rancher/rancherd/config.yaml.d/91-harvester-bootstrap-repo.yaml]
INFO[0000] Loading config file [/etc/rancher/rancherd/config.yaml]
INFO[0000] Bootstrapping Rancher (v2.6.11/v1.24.11+rke2r1)
INFO[0000] Writing plan file to /var/lib/rancher/rancherd/plan/plan.json
INFO[0000] Applying plan with checksum
INFO[0000] No image provided, creating empty working directory /var/lib/rancher/rancherd/plan/work/20231004-232518-applied.plan/_0
INFO[0000] Running command: /usr/bin/env [sh /var/lib/rancher/rancherd/install.sh]
INFO[0000] [stdout]: [INFO] Using default agent configuration directory /etc/rancher/agent
INFO[0000] [stdout]: [INFO] Using default agent var directory /var/lib/rancher/agent
INFO[0000] [stderr]: [WARN] /usr/local is read-only or a mount point; installing to /opt/rancher-system-agent
INFO[0000] [stdout]: [INFO] Determined CA is necessary to connect to Rancher
INFO[0000] [stdout]: [INFO] Successfully downloaded CA certificate
INFO[0000] [stdout]: [INFO] Value from <https://br1-harvester.infra.azion.net:443/cacerts> is an x509 certificate
INFO[0000] [stdout]: [INFO] Successfully tested Rancher connection
INFO[0000] [stdout]: [INFO] Downloading rancher-system-agent binary from <https://br1-harvester.infra.azion.net:443/assets/rancher-system-agent-amd64>
INFO[0000] [stdout]: [INFO] Successfully downloaded the rancher-system-agent binary.
INFO[0000] [stdout]: [INFO] Downloading rancher-system-agent-uninstall.sh script from <https://br1-harvester.infra.azion.net:443/assets/system-agent-uninstall.sh>
INFO[0000] [stdout]: [INFO] Successfully downloaded the rancher-system-agent-uninstall.sh script.
INFO[0000] [stdout]: [INFO] Generating Cattle ID
INFO[0000] [stdout]: [INFO] Cattle ID was already detected as 6676d2bf46ee5753a6fbbae5dca53810b89638b832e318a9393c32f8d1b2f44. Not generating a new one.
INFO[0000] [stdout]: [INFO] Successfully downloaded Rancher connection information
INFO[0000] [stdout]: [INFO] systemd: Creating service file
INFO[0000] [stdout]: [INFO] Creating environment file /etc/systemd/system/rancher-system-agent.env
INFO[0000] [stdout]: [INFO] Enabling rancher-system-agent.service
INFO[0001] [stdout]: [INFO] Starting/restarting rancher-system-agent.service
INFO[0001] No image provided, creating empty working directory /var/lib/rancher/rancherd/plan/work/20231004-232518-applied.plan/_1
INFO[0001] Running command: /usr/bin/rancherd [probe]
INFO[0001] [stderr]: time="2023-10-04T23:25:19Z" level=info msg="Running probes defined in /var/lib/rancher/rancherd/plan/plan.json"
INFO[0002] [stderr]: time="2023-10-04T23:25:20Z" level=info msg="Probe [kubelet] is unhealthy"
ancient-pizza-13099
10/05/2023, 6:51 AMjournalctl --unit=rancher-system-agent
busy-photographer-15014
10/05/2023, 7:00 AMOct 05 04:19:39 vmh-cgh-act002p systemd[1]: Started Rancher System Agent.
Oct 05 04:19:39 vmh-cgh-act002p rancher-system-agent[4267]: time="2023-10-05T04:19:39Z" level=info msg="Rancher System Agent version v0.2.13 (4fa9427) is starting"
Oct 05 04:19:39 vmh-cgh-act002p rancher-system-agent[4267]: time="2023-10-05T04:19:39Z" level=info msg="Using directory /var/lib/rancher/agent/work for work"
Oct 05 04:19:39 vmh-cgh-act002p rancher-system-agent[4267]: time="2023-10-05T04:19:39Z" level=info msg="Starting remote watch of plans"
Oct 05 04:19:39 vmh-cgh-act002p rancher-system-agent[4267]: time="2023-10-05T04:19:39Z" level=info msg="Initial connection to Kubernetes cluster failed with error Get \"<https://br1-harvester.infra.azion.net/version>\": x509: certificate s>
Oct 05 04:19:39 vmh-cgh-act002p rancher-system-agent[4267]: panic: error while connecting to Kubernetes cluster with nullified CA data: Get "<https://br1-harvester.infra.azion.net/version>": x509: certificate signed by unknown authority
Oct 05 04:19:39 vmh-cgh-act002p rancher-system-agent[4267]: goroutine 99 [running]:
busy-photographer-15014
10/05/2023, 7:02 AMbusy-photographer-15014
10/05/2023, 7:03 AMancient-pizza-13099
10/05/2023, 7:16 AMOct 05 04:19:39 vmh-cgh-act002p rancher-system-agent[4267]: time="2023-10-05T04:19:39Z" level=info msg="Initial connection to Kubernetes cluster failed with error Get \"<https://br1-harvester.infra.azion.net/version>\": x509: certificate s>
Oct 05 04:19:39 vmh-cgh-act002p rancher-system-agent[4267]: panic: error while connecting to Kubernetes cluster with nullified CA data: Get "<https://br1-harvester.infra.azion.net/version>": x509: certificate signed by unknown authority
Oct 05 04:19:39 vmh-cgh-act002p rancher-system-agent[4267]: goroutine 99 [running]:
ancient-pizza-13099
10/05/2023, 7:18 AMrancher-system-agent
can't continueancient-pizza-13099
10/05/2023, 7:20 AMhead -n10 /var/lib/rancher/rancherd/install.sh
ancient-pizza-13099
10/05/2023, 7:20 AMancient-pizza-13099
10/05/2023, 7:28 AMgreat-bear-19718
10/05/2023, 8:45 AMbusy-photographer-15014
10/05/2023, 5:49 PMbusy-photographer-15014
10/05/2023, 5:49 PMgreat-bear-19718
10/05/2023, 11:16 PMbusy-photographer-15014
10/06/2023, 9:57 AMbusy-photographer-15014
10/06/2023, 5:23 PMbusy-photographer-15014
10/06/2023, 5:23 PMbusy-photographer-15014
10/06/2023, 8:32 PMkubectl edit setting.management server-url
).
I changed it to my cluster's URL, restarted the rancherd service and everything worked!
The strangest thing is that at no point did I have to do this on the other 2 nodes that I inserted into the cluster through join mode.great-bear-19718
10/08/2023, 11:37 PMgreat-bear-19718
10/08/2023, 11:37 PM