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
AGENT-863: Script to run monitor-add-nodes in cluster
Derived from a similar script by Andrea Fasano
to generate the add-nodes ISO.
#8242
This script tweaks it and creates a node-joiner-monitor
pod to monitor adding nodes to a cluster.
Co-authored-by: Andrea Fasano <[email protected]>
After a node is booted using the ISO image, progress can be monitored using the node-joiner-monitor.sh script.
108
+
109
+
Download the [node-joiner-monitor.sh](./node-joiner-monitor.sh) script to a local directory.
110
+
111
+
The script requires the IP address of the node to monitor.
112
+
113
+
Run [node-joiner-monitor.sh](./node-joiner-monitor.sh):
114
+
```bash
115
+
$ ./node-joiner-monitor.sh 192.168.111.90
116
+
```
117
+
118
+
The script will execute a command to monitor the node using a temporary namespace with
119
+
prefix `openshift-node-joiner-monitor` in the target cluster. The output of this command
120
+
is printed out to stdout.
121
+
122
+
The script shows useful information about the node as it joins the cluster.
123
+
* Pre-flight validations. In case the node does not pass one or more validations, the installation will not start. The output of the failed validations are reported to allow users to fix the problem(s) when required.
124
+
* Installation progress indicating the current stage is shown. For example, writing of the image to disk, and initial reboot are reported.
125
+
* CSRs requiring the user's approval are shown.
126
+
127
+
The script exits either after the node has joined the cluster and is in ready state or after 90 minutes have elapsed.
WARNING[2024-04-29T22:48:32-04:00] Node 192.168.111.90: Host couldn't synchronize with any NTP server
137
+
WARNING[2024-04-29T22:48:32-04:00] Node 192.168.111.90: Host extraworker-0: updated status from discovering to insufficient (Host does not meet the minimum hardware requirements: Host couldn't synchronize with any NTP server)
138
+
INFO[2024-04-29T22:49:28-04:00] Node 192.168.111.90: Host extraworker-0: updated status from known to installing (Installation is in progress)
INFO[2024-04-29T22:56:35-04:00] Node 192.168.111.90: Kubelet is running
150
+
INFO[2024-04-29T22:56:45-04:00] Node 192.168.111.90: First CSR Pending approval
151
+
INFO[2024-04-29T22:56:45-04:00] CSR csr-257ms with signerName kubernetes.io/kube-apiserver-client-kubelet and username system:serviceaccount:openshift-machine-config-operator:node-bootstrapper is Pending and awaiting approval
152
+
INFO[2024-04-29T22:58:50-04:00] Node 192.168.111.90: Second CSR Pending approval
153
+
INFO[2024-04-29T22:58:50-04:00] CSR csr-tc8xt with signerName kubernetes.io/kubelet-serving and username system:node:extraworker-0 is Pending and awaiting approval
154
+
INFO[2024-04-29T22:58:50-04:00] Node 192.168.111.90: Node joined cluster
155
+
INFO[2024-04-29T23:00:00-04:00] Node 192.168.111.90: Node is Ready
0 commit comments