Review openshift SOP

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2021-09-07 15:17:33 +02:00
parent 0f4ea0ff92
commit 61955e9fbf
3 changed files with 29 additions and 30 deletions

View file

@ -4,10 +4,9 @@ OpenShift is used in Fedora Infrastructure to host a number of
applications. This SOP is applicable to the OpenShift cluster and not
the application running on it.
Production instance: https://os.fedoraproject.org/ Staging instance:
https://os.stg.fedoraproject.org/
Production instance: https://os.fedoraproject.org/
Contents
Staging instance: https://os.stg.fedoraproject.org/
== Contact information
@ -17,17 +16,15 @@ Contact::
#fedora-admin
Persons::
.oncall
Location::
Phoenix
Servers::
* os-master01.phx2.fedoraproject.org
* os-master02.phx2.fedoraproject.org
* os-master03.phx2.fedoraproject.org
* os-node01.phx2.fedoraproject.org
* os-node02.phx2.fedoraproject.org
* os-node03.phx2.fedoraproject.org
* os-node04.phx2.fedoraproject.org
* os-node05.phx2.fedoraproject.org
* os-master01.iad2.fedoraproject.org
* os-master02.iad2.fedoraproject.org
* os-master03.iad2.fedoraproject.org
* os-node01.iad2.fedoraproject.org
* os-node02.iad2.fedoraproject.org
* os-node03.iad2.fedoraproject.org
* os-node04.iad2.fedoraproject.org
* os-node05.iad2.fedoraproject.org
Purpose::
Run Fedora Infrastructure applications
@ -38,16 +35,16 @@ Purpose::
If an application build seems stuck, it generally helps to restart the
docker service on the node used for the build.
First check which builds are currently running on the cluster. :
First check which builds are currently running on the cluster:
....
[os-master01] # oc get builds --all-namespaces | grep -i running
....
if the builds seems stuck (ie running for more than 20 mins), Check on
If the builds seems stuck (ie running for more than 20 mins) check on
which nodes they are scheduled.
Let's take a bodhi build for example :
Let's take a bodhi build for example:
....
[os-master01] # oc -n bodhi get builds
@ -56,20 +53,20 @@ Let's take a bodhi build for example :
....
Once you have identified which node the build is running on, you can
restart the docker service on this node. :
restart the docker service on this node:
....
[os-node02] # systemctl restart docker
....
You can start a new build.:
You can start a new build:
....
[os-master01] # oc -n bodhi start-build bodhi-base
....
Finally you can check if there are any more build stuck. If that's the
case just repeat these steps. :
case just repeat these steps:
....
[os-master01] # oc get builds --all-namespaces