Add PS4 for better logfile information of devstack runs
The scripts tools/ironic/scripts/cleanup-node.sh tools/ironic/scripts/create-node.sh tools/ironic/scripts/setup-network.sh are executed by sudo and the PS4 value disappears during sudo. Add a PS4 value so that we get better logs during their execution. PS4 is used to prefix the tracing output when using: 'set -x' or 'set -o xtrace' From the bash manpage: PS4 The value of this parameter is expanded as with PS1 and the value is printed before each command bash displays during an execution trace. The first character of PS4 is replicated multiple times, as necessary, to indicate multiple levels of indirection. The default is ``+ ''. Change-Id: If06f079bed16d9c84569594aa64259bf06f91a1e
This commit is contained in:
parent
0c3ac28a45
commit
a78097bf3f
@ -7,6 +7,9 @@
|
||||
|
||||
set -exu
|
||||
|
||||
# Make tracing more educational
|
||||
export PS4='+ ${BASH_SOURCE:-}:${FUNCNAME[0]:-}:L${LINENO:-}: '
|
||||
|
||||
LIBVIRT_STORAGE_POOL=${LIBVIRT_STORAGE_POOL:-"default"}
|
||||
LIBVIRT_CONNECT_URI=${LIBVIRT_CONNECT_URI:-"qemu:///system"}
|
||||
|
||||
|
@ -6,6 +6,9 @@
|
||||
|
||||
set -ex
|
||||
|
||||
# Make tracing more educational
|
||||
export PS4='+ ${BASH_SOURCE:-}:${FUNCNAME[0]:-}:L${LINENO:-}: '
|
||||
|
||||
# Keep track of the DevStack directory
|
||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
||||
|
||||
|
@ -7,6 +7,9 @@
|
||||
|
||||
set -exu
|
||||
|
||||
# Make tracing more educational
|
||||
export PS4='+ ${BASH_SOURCE:-}:${FUNCNAME[0]:-}:L${LINENO:-}: '
|
||||
|
||||
LIBVIRT_CONNECT_URI=${LIBVIRT_CONNECT_URI:-"qemu:///system"}
|
||||
|
||||
# Keep track of the DevStack directory
|
||||
|
Loading…
x
Reference in New Issue
Block a user