From 3dab6f0df04aa45c18a43526e15baad428130df7 Mon Sep 17 00:00:00 2001
From: Ronelle Landy
Date: Sun, 27 May 2018 17:53:11 -0400
Subject: [PATCH] Add dry run option to toci_quickstart - playbook order in
tact
With dry run, playbooks are not executed.
The env variables, releases script output and playbooks
commands are written out to files for debug.
The review also moves the collect logs lines to a
function for easier organization
Documentation for the dry run option and variable
files is added.
Change-Id: I0bad5ee3150d94115bed018de9488590305a2b80
---
docs/tripleo-quickstart-logs.html | 29 ++++++-
scripts/oooq_common_functions.sh | 68 ++++++++++++++++
toci_gate_test-oooq.sh | 5 ++
toci_quickstart.sh | 125 ++++++++++--------------------
4 files changed, 144 insertions(+), 83 deletions(-)
diff --git a/docs/tripleo-quickstart-logs.html b/docs/tripleo-quickstart-logs.html
index e1873d4c5..918010c74 100644
--- a/docs/tripleo-quickstart-logs.html
+++ b/docs/tripleo-quickstart-logs.html
@@ -49,12 +49,39 @@ Quickstart itself.
+
+Variables used in the job run
+The logs contain files showing variables used in the job run.
+
+
+Dry Run option
+As a debugging step, a job can be run manually with '-dryrun'
+appended to the job name. When the "playbook dry run" option is invoked,
+the playbooks will not execute and collect logs will not run but
+certain log files, including 'toci_env_args_output.log', which
+contains the environment variables used in the job, and
+playbook_executions.log will still be produced in the logs
+directory for inspection. This option serves to assist with
+debugging and to test the testing scripts themselves.