Browse Source

Enable logging for PG bash deployment scripts

- all output of each bash script will now be logged
  under /var/log/plumgrid/*.log

Ticket: [CFB-856]

Change-Id: Ia73a45d29a90e7833e66e6ff75766e478aadf440
Signed-off-by: Javeria Khan <javeriak@plumgrid.com>
Javeria Khan 3 years ago
parent
commit
107137861b

+ 6
- 0
deployment_scripts/cleanup_os.sh View File

@@ -15,6 +15,12 @@
15 15
 
16 16
 #!/bin/bash
17 17
 
18
+mkdir -p /var/log/plumgrid
19
+exec > /var/log/plumgrid/cleanup_os.log
20
+exec 2>&1
21
+
22
+set -x
23
+
18 24
 if [[ ! -f "/root/cleanup_os" ]];then
19 25
   source /root/openrc
20 26
   router_id=`neutron router-list | grep "network_id" | awk '{print $2}'`

+ 6
- 0
deployment_scripts/pg_os_version.sh View File

@@ -15,6 +15,12 @@
15 15
 
16 16
 #!/bin/bash
17 17
 
18
+mkdir -p /var/log/plumgrid
19
+exec > /var/log/plumgrid/pg_os_version.log
20
+exec 2>&1
21
+
22
+set -x
23
+
18 24
 . /tmp/plumgrid_config
19 25
 
20 26
 curl -Lks http://$pg_repo:81/files/lvm-installer.sh  -o /tmp/lvm-installer.sh

+ 6
- 0
deployment_scripts/plumgrid_fabric.sh View File

@@ -15,6 +15,12 @@
15 15
 
16 16
 #!/bin/bash
17 17
 
18
+mkdir -p /var/log/plumgrid
19
+exec > /var/log/plumgrid/plumgrid_fabric.log
20
+exec 2>&1
21
+
22
+set -x
23
+
18 24
 . /tmp/plumgrid_config
19 25
 
20 26
 function check_and_replace() {

+ 6
- 0
deployment_scripts/post_pg_license.sh View File

@@ -15,6 +15,12 @@
15 15
 
16 16
 #!/bin/bash
17 17
 
18
+mkdir -p /var/log/plumgrid
19
+exec > /var/log/plumgrid/post_license.log
20
+exec 2>&1
21
+
22
+set -x
23
+
18 24
 . /tmp/plumgrid_config
19 25
 
20 26
 if [[ ! -f "/root/post_director" ]];then

Loading…
Cancel
Save