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>
This commit is contained in:
Javeria Khan 2016-03-09 04:34:40 -08:00
parent 450dcc4360
commit 107137861b
4 changed files with 24 additions and 0 deletions

View File

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

View File

@ -15,6 +15,12 @@
#!/bin/bash
mkdir -p /var/log/plumgrid
exec > /var/log/plumgrid/pg_os_version.log
exec 2>&1
set -x
. /tmp/plumgrid_config
curl -Lks http://$pg_repo:81/files/lvm-installer.sh -o /tmp/lvm-installer.sh

View File

@ -15,6 +15,12 @@
#!/bin/bash
mkdir -p /var/log/plumgrid
exec > /var/log/plumgrid/plumgrid_fabric.log
exec 2>&1
set -x
. /tmp/plumgrid_config
function check_and_replace() {

View File

@ -15,6 +15,12 @@
#!/bin/bash
mkdir -p /var/log/plumgrid
exec > /var/log/plumgrid/post_license.log
exec 2>&1
set -x
. /tmp/plumgrid_config
if [[ ! -f "/root/post_director" ]];then