|
|
47c289 |
# Graceful Startup of an Openshift 4 Cluster
|
|
|
47c289 |
This SOP should be followed in the following scenarios:
|
|
|
47c289 |
|
|
|
47c289 |
- Starting up an Openshift 4 cluster.
|
|
|
47c289 |
|
|
|
47c289 |
|
|
|
47c289 |
## Steps
|
|
|
47c289 |
|
|
|
47c289 |
Prequisite steps:
|
|
|
47c289 |
|
|
|
47c289 |
|
|
|
47c289 |
1. Start the physical nodes
|
|
|
47c289 |
|
|
|
47c289 |
- Production uses `adhoc-openshift-nfs-stats.yaml` playbook to stop/start/restart nodes
|
|
|
47c289 |
- Staging uses seamicro accessible from admin machine, user manual contained in centosci/ocp4-docs/sops/seamicro
|
|
|
47c289 |
|
|
|
47c289 |
2. Once the nodes have been started they must be uncordoned if appropriate
|
|
|
47c289 |
|
|
|
47c289 |
```
|
|
|
47c289 |
oc get nodes
|
|
|
47c289 |
NAME STATUS ROLES AGE VERSION
|
|
|
47c289 |
dumpty-n1.ci.centos.org Ready,SchedulingDisabled worker 77d v1.18.3+6c42de8
|
|
|
47c289 |
dumpty-n2.ci.centos.org Ready,SchedulingDisabled worker 77d v1.18.3+6c42de8
|
|
|
47c289 |
dumpty-n3.ci.centos.org Ready,SchedulingDisabled worker 77d v1.18.3+6c42de8
|
|
|
47c289 |
dumpty-n4.ci.centos.org Ready,SchedulingDisabled worker 77d v1.18.3+6c42de8
|
|
|
47c289 |
dumpty-n5.ci.centos.org Ready,SchedulingDisabled worker 77d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n10.ci.centos.org Ready,SchedulingDisabled worker 106d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n11.ci.centos.org Ready,SchedulingDisabled worker 106d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n12.ci.centos.org Ready,SchedulingDisabled worker 106d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n6.ci.centos.org Ready,SchedulingDisabled master 106d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n7.ci.centos.org Ready,SchedulingDisabled master 106d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n8.ci.centos.org Ready,SchedulingDisabled master 106d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n9.ci.centos.org Ready,SchedulingDisabled worker 106d v1.18.3+6c42de8
|
|
|
47c289 |
|
|
|
47c289 |
nodes=$(oc get nodes -o name | sed -E "s/node\///")
|
|
|
47c289 |
|
|
|
47c289 |
for node in ${nodes[@]}; do oc adm uncordon $node; done
|
|
|
47c289 |
node/dumpty-n1.ci.centos.org uncordoned
|
|
|
47c289 |
node/dumpty-n2.ci.centos.org uncordoned
|
|
|
47c289 |
node/dumpty-n3.ci.centos.org uncordoned
|
|
|
47c289 |
node/dumpty-n4.ci.centos.org uncordoned
|
|
|
47c289 |
node/dumpty-n5.ci.centos.org uncordoned
|
|
|
47c289 |
node/kempty-n10.ci.centos.org uncordoned
|
|
|
47c289 |
node/kempty-n11.ci.centos.org uncordoned
|
|
|
47c289 |
node/kempty-n12.ci.centos.org uncordoned
|
|
|
47c289 |
node/kempty-n6.ci.centos.org uncordoned
|
|
|
47c289 |
node/kempty-n7.ci.centos.org uncordoned
|
|
|
47c289 |
node/kempty-n8.ci.centos.org uncordoned
|
|
|
47c289 |
node/kempty-n9.ci.centos.org uncordoned
|
|
|
47c289 |
|
|
|
47c289 |
oc get nodes
|
|
|
47c289 |
NAME STATUS ROLES AGE VERSION
|
|
|
47c289 |
dumpty-n1.ci.centos.org Ready worker 77d v1.18.3+6c42de8
|
|
|
47c289 |
dumpty-n2.ci.centos.org Ready worker 77d v1.18.3+6c42de8
|
|
|
47c289 |
dumpty-n3.ci.centos.org Ready worker 77d v1.18.3+6c42de8
|
|
|
47c289 |
dumpty-n4.ci.centos.org Ready worker 77d v1.18.3+6c42de8
|
|
|
47c289 |
dumpty-n5.ci.centos.org Ready worker 77d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n10.ci.centos.org Ready worker 106d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n11.ci.centos.org Ready worker 106d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n12.ci.centos.org Ready worker 106d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n6.ci.centos.org Ready master 106d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n7.ci.centos.org Ready master 106d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n8.ci.centos.org Ready master 106d v1.18.3+6c42de8
|
|
|
47c289 |
kempty-n9.ci.centos.org Ready worker 106d v1.18.3+6c42de8
|
|
|
47c289 |
```
|
|
|
47c289 |
|
|
|
47c289 |
|
|
|
47c289 |
### Resources
|
|
|
47c289 |
|
|
|
47c289 |
- [1] [Graceful Cluster Startup](https://docs.openshift.com/container-platform/4.5/backup_and_restore/graceful-cluster-restart.html)
|
|
|
47c289 |
- [2] [Cluster disaster recovery](https://docs.openshift.com/container-platform/4.5/backup_and_restore/disaster_recovery/scenario-2-restoring-cluster-state.html#dr-restoring-cluster-state)
|