From 3c0290e80400c1a08d7775cf5b023fb82d3cc0d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Sch=C3=B6chlin?= Date: Wed, 18 Dec 2024 22:03:07 +0100 Subject: [PATCH] Starting the system @scaleup (#85) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Rework procedure a bit Signed-off-by: Marc Schöchlin * Better sections Signed-off-by: Marc Schöchlin --------- Signed-off-by: Marc Schöchlin --- documentation/System_Runbooks.md | 36 ++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/documentation/System_Runbooks.md b/documentation/System_Runbooks.md index 031505ca..0f3576ec 100644 --- a/documentation/System_Runbooks.md +++ b/documentation/System_Runbooks.md @@ -58,7 +58,11 @@ ssh scs-manager osism apply scs_check_landscape ``` -# Shutdown the entire environment +# Global Maintenance + +The following sections decribe the complete takedown and restart of the entire system. + +## Shutdown the entire environment This procedure describes the tasks to shutdown the scs hardware landscape completly. @@ -137,7 +141,7 @@ This procedure describes the tasks to shutdown the scs hardware landscape comple sudo halt ``` -# Startup the entire environment +## Startup the entire environment This procedure describes the tasks ro startup a completly stopped scs hardware landscape. @@ -167,14 +171,11 @@ This procedure describes the tasks ro startup a completly stopped scs hardware l NODES="$(./server_ctl -s all 2>/dev/null|grep -- "st01-ctl"|sort -r)" for node in $NODES; do echo "--> $node"; - echo "+sudo systemctl enable docker.service" ssh $node "sudo systemctl enable docker.service"; - ssh $node "sudo systemctl start docker.service"; - echo "+sudo systemctl start ceph\*" - ssh $node "sudo systemctl start ceph\*"; - echo "+sudo systemctl start kolla\*" - ssh $node "sudo systemctl start kolla\*"; - + ssh $node "sudo systemctl start --all docker.service"; + ssh $node "sudo systemctl start --all osism\*"; + ssh $node "sudo systemctl start --all ceph\*"; + ssh $node "sudo systemctl start --all kolla\*"; while ! (ssh $node sudo /usr/local/scripts/scs_check_services.sh) ; do echo -e "\nwaiting"; sleep 50; done @@ -190,8 +191,11 @@ This procedure describes the tasks ro startup a completly stopped scs hardware l for node in $NODES; do echo "--> $node"; ssh $node "sudo systemctl enable docker.service"; done for node in $NODES; do echo "--> $node"; - ssh $node "sudo systemctl start docker.service"; - ssh $node "sudo sudo systemctl start ceph\*"; done + ssh $node "sudo systemctl enable docker.service"; + ssh $node "sudo systemctl start --all docker.service"; + ssh $node "sudo systemctl start --all osism\*"; + ssh $node "sudo systemctl start --all kolla\*"; + ssh $node "sudo systemctl start --all ceph\*"; done while ! (ssh $node sudo /usr/local/scripts/scs_check_services.sh) ; do echo -e "\nwaiting"; sleep 50; done @@ -220,10 +224,13 @@ This procedure describes the tasks ro startup a completly stopped scs hardware l for node in $NODES; do echo "--> $node"; ssh $node "sudo systemctl enable docker.service"; + ssh $node "sudo systemctl start --all docker.service"; + ssh $node "sudo systemctl start --all osism\*"; + ssh $node "sudo systemctl start --all ceph\*"; + ssh $node "sudo systemctl start --all kolla\*"; while ! (ssh $node sudo /usr/local/scripts/scs_check_services.sh) ; do echo -e "\nwaiting"; sleep 50; done - ssh $node "sudo systemctl start docker.service"; done ``` @@ -236,10 +243,13 @@ This procedure describes the tasks ro startup a completly stopped scs hardware l for node in $NODES; do echo "--> $node"; ssh $node "sudo systemctl enable docker.service"; + ssh $node "sudo systemctl start --all docker.service"; + ssh $node "sudo systemctl start --all osism\*"; + ssh $node "sudo systemctl start --all ceph\*"; + ssh $node "sudo systemctl start --all kolla\*"; while ! (ssh $node sudo /usr/local/scripts/scs_check_services.sh) ; do echo -e "\nwaiting"; sleep 50; done - ssh $node "sudo systemctl start docker.service"; done ```