|
| 1 | +// This is included in the following assemblies: |
| 2 | +// |
| 3 | +// ipi-install-expanding-the-cluster.adoc |
| 4 | +[id='provisioning-the-bare-metal-node_{context}'] |
| 5 | + |
| 6 | += Provisioning the bare metal node |
| 7 | + |
| 8 | +Provisioning the bare metal node requires executing the following procedure from the provisioner node. |
| 9 | + |
| 10 | +.Procedure |
| 11 | + |
| 12 | +. Ensure the `PROVISIONING STATUS` is `ready` before provisioning the bare metal node. |
| 13 | ++ |
| 14 | +[source,bash] |
| 15 | +---- |
| 16 | +[kni@provisioner ~]$ oc -n openshift-machine-api get bmh openshift-worker-<num> |
| 17 | +---- |
| 18 | ++ |
| 19 | +Where `<num>` is the worker node number. |
| 20 | ++ |
| 21 | +[source,bash] |
| 22 | +---- |
| 23 | +NAME STATUS PROVISIONING STATUS CONSUMER BMC HARDWARE PROFILE ONLINE ERROR |
| 24 | +openshift-worker-<num> OK ready ipmi://<out-of-band-ip> unknown true |
| 25 | +---- |
| 26 | + |
| 27 | +. Get a count of the number of worker nodes. |
| 28 | +[source,bash] |
| 29 | ++ |
| 30 | +---- |
| 31 | +[kni@provisioner ~]$ oc get nodes |
| 32 | +---- |
| 33 | ++ |
| 34 | +[source,bash] |
| 35 | +---- |
| 36 | +NAME STATUS ROLES AGE VERSION |
| 37 | +provisioner.openshift.example.com Ready master 30h v1.16.2 |
| 38 | +openshift-master-1.openshift.example.com Ready master 30h v1.16.2 |
| 39 | +openshift-master-2.openshift.example.com Ready master 30h v1.16.2 |
| 40 | +openshift-master-3.openshift.example.com Ready master 30h v1.16.2 |
| 41 | +openshift-worker-0.openshift.example.com Ready master 30h v1.16.2 |
| 42 | +openshift-worker-1.openshift.example.com Ready master 30h v1.16.2 |
| 43 | +---- |
| 44 | + |
| 45 | +. Get the machine set. |
| 46 | ++ |
| 47 | +[source,bash] |
| 48 | +---- |
| 49 | +[kni@provisioner ~]$ oc get machinesets -n openshift-machine-api |
| 50 | +---- |
| 51 | ++ |
| 52 | +[source,bash] |
| 53 | +---- |
| 54 | +NAME DESIRED CURRENT READY AVAILABLE AGE |
| 55 | +... |
| 56 | +openshift-worker-0.example.com 1 1 1 1 55m |
| 57 | +openshift-worker-1.example.com 1 1 1 1 55m |
| 58 | +---- |
| 59 | + |
| 60 | +. Increase the number of worker nodes by one. |
| 61 | ++ |
| 62 | +[source,bash] |
| 63 | +---- |
| 64 | +[kni@provisioner ~]$ oc scale --replicas=<num> machineset <machineset> -n openshift-machine-api |
| 65 | +---- |
| 66 | ++ |
| 67 | +Replace `<num>` with the new number of worker nodes. Replace `<machineset>` with the name of the machine set from the previous step. |
| 68 | + |
| 69 | +. Check the status of the bare metal node. |
| 70 | ++ |
| 71 | +[source,bash] |
| 72 | +---- |
| 73 | +[kni@provisioner ~]$ oc -n openshift-machine-api get bmh openshift-worker-<num> |
| 74 | +---- |
| 75 | ++ |
| 76 | +Where `<num>` is the worker node number. The status changes from `ready` to `provisioning`. |
| 77 | ++ |
| 78 | +[source,bash] |
| 79 | +---- |
| 80 | +NAME STATUS PROVISIONING STATUS CONSUMER BMC HARDWARE PROFILE ONLINE ERROR |
| 81 | +openshift-worker-<num> OK provisioning openshift-worker-<num>-65tjz ipmi://<out-of-band-ip> unknown true |
| 82 | +---- |
| 83 | ++ |
| 84 | +The `provisioning` status remains until the {product-title} cluster provisions the node. This can take 30 minutes or more. Once complete, the status will change to `provisioned`. |
| 85 | ++ |
| 86 | +[source,bash] |
| 87 | +---- |
| 88 | +NAME STATUS PROVISIONING STATUS CONSUMER BMC HARDWARE PROFILE ONLINE ERROR |
| 89 | +openshift-worker-<num> OK provisioned openshift-worker-<num>-65tjz ipmi://<out-of-band-ip> unknown true |
| 90 | +---- |
| 91 | + |
| 92 | +. Once provisioned, ensure the bare metal node is ready. |
| 93 | ++ |
| 94 | +[source,bash] |
| 95 | +---- |
| 96 | +[kni@provisioner ~]$ oc get nodes |
| 97 | +---- |
| 98 | ++ |
| 99 | +[source,bash] |
| 100 | +---- |
| 101 | +NAME STATUS ROLES AGE VERSION |
| 102 | +provisioner.openshift.example.com Ready master 30h v1.16.2 |
| 103 | +openshift-master-1.openshift.example.com Ready master 30h v1.16.2 |
| 104 | +openshift-master-2.openshift.example.com Ready master 30h v1.16.2 |
| 105 | +openshift-master-3.openshift.example.com Ready master 30h v1.16.2 |
| 106 | +openshift-worker-0.openshift.example.com Ready master 30h v1.16.2 |
| 107 | +openshift-worker-1.openshift.example.com Ready master 30h v1.16.2 |
| 108 | +openshift-worker-<num>.openshift.example.com Ready worker 3m27s v1.16.2 |
| 109 | +---- |
| 110 | ++ |
| 111 | +You can also check the kubelet. |
| 112 | ++ |
| 113 | +[source,bash] |
| 114 | +---- |
| 115 | +[kni@provisioner ~]$ ssh openshift-worker-<num> |
| 116 | +---- |
| 117 | ++ |
| 118 | +[source,bash] |
| 119 | +---- |
| 120 | +[kni@openshift-worker-<num>]$ journalctl -fu kubelet |
| 121 | +---- |
0 commit comments