From 0bd0af2fff130034bd8e219cbcf1b8383485670b Mon Sep 17 00:00:00 2001
From: Ricardo Jun <jtaniguc@redhat.com>
Date: Tue, 06 Nov 2018 11:39:27 +0100
Subject: [PATCH] Fixed pending classroom startup

---
 extras/backup/execution-pamdb.sh |    2 +-
 extras/backup/images.sh          |    7 ++++++-
 extras/backup/execution.sh       |    2 +-
 extras/backup/execution-dm.sh    |    1 +
 4 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/extras/backup/execution-dm.sh b/extras/backup/execution-dm.sh
index 5b1cf9d..723d742 100644
--- a/extras/backup/execution-dm.sh
+++ b/extras/backup/execution-dm.sh
@@ -1,3 +1,4 @@
+ssh root@classroom rht-config-nat
 ssh root@master oc new-project bxms-dm-dc39
 
 ssh root@master oc label namespace bxms-dm-dc39 AAD='dc39'
diff --git a/extras/backup/execution-pamdb.sh b/extras/backup/execution-pamdb.sh
index 3258f26..6958f7d 100644
--- a/extras/backup/execution-pamdb.sh
+++ b/extras/backup/execution-pamdb.sh
@@ -1,5 +1,5 @@
 # Create PAM with Postgresql
-
+ssh root@classroom rht-config-nat
 ssh root@master oc new-project bxms-pamdb-dc39
 ssh root@master oc label namespace bxms-pamdb-dc39 AAD='dc39'
 ssh root@master oc project default
diff --git a/extras/backup/execution.sh b/extras/backup/execution.sh
index 1cf609b..896f083 100644
--- a/extras/backup/execution.sh
+++ b/extras/backup/execution.sh
@@ -1,5 +1,5 @@
 # Create PAM without database
-
+ssh root@classroom rht-config-nat
 ssh root@master oc new-project bxms-pam-dc39
 ssh root@master oc label namespace bxms-pam-dc39 AAD='dc39'
 ssh root@master oc project default
diff --git a/extras/backup/images.sh b/extras/backup/images.sh
index 562d058..5f6ff82 100644
--- a/extras/backup/images.sh
+++ b/extras/backup/images.sh
@@ -75,4 +75,9 @@
 ssh root@services docker push registry.lab.example.com/node:latest
 
 rsync -aPv docker root@services:/etc/sysconfig/docker
-ssh root@services systemctl restart docker
\ No newline at end of file
+ssh root@services systemctl restart docker
+
+ssh root@services docker rmi -f $(docker images -q)
+ssh root@services systemctl stop docker
+ssh root@services rm -rf /var/lib/docker/*
+ssh root@services systemctl start docker

--
Gitblit v1.9.3