Skip to content

Commit

Permalink
Add TRIPLEO_DEBUG var for enabling debug logging
Browse files Browse the repository at this point in the history
If we would like to run any jobs with debug logging enabled (which we
would like to for the HA job) then we need a way for to specify this.

Depends on tripleo-incubator change:
I3f267f3d6290fddb40d80b1c889bade8980ddb43

Change-Id: Icf36094605eeaf6923ea1a9ab60386eda11730e9
  • Loading branch information
greghaynes committed Sep 19, 2014
1 parent bce867e commit 37b23ed
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions toci_devtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ function temprevert(){
# Add temporary reverts here e.g.
# temprevert <projectname> <commit-hash-to-revert> <bugnumber>

TRIPLEO_DEBUG=${TRIPLEO_DEBUG:-}
PRIV_SSH_KEY=$(OS_CONFIG_FILES=$TE_DATAFILE os-apply-config --key ssh-key --type raw)
SEED_IP=$(OS_CONFIG_FILES=$TE_DATAFILE os-apply-config --key seed-ip --type netaddress --key-default '')

if [ "$TRIPLEO_DEBUG" = "1" ]; then
TRIPLEO_DEBUG="--debug-logging"
fi

# The default pip timeout (15 seconds) isn't long enough to cater for our
# occasional network blips, bug #1292141
export PIP_DEFAULT_TIMEOUT=${PIP_DEFAULT_TIMEOUT:-60}
Expand Down Expand Up @@ -137,11 +142,11 @@ devtest_seed.sh
export no_proxy=${no_proxy:-},192.0.2.1
source $TRIPLEO_ROOT/tripleo-incubator/seedrc
if [ "undercloud" = "$TRIPLEO_TEST" ]; then
devtest_undercloud.sh $TE_DATAFILE
devtest_undercloud.sh $TRIPLEO_DEBUG $TE_DATAFILE
fi
if [ "overcloud" = "$TRIPLEO_TEST" ]; then
# Register more nodes with the seed.
setup-baremetal --service-host seed --nodes <(jq '.nodes - [.nodes[0]]' $TE_DATAFILE)
devtest_overcloud.sh
devtest_overcloud.sh $TRIPLEO_DEBUG
fi
echo 'Run completed.'

0 comments on commit 37b23ed

Please sign in to comment.