Do not run dstat by default
Fixing dstat runtime in gate resulted in a side-effect, that dstat_graph tries to run even outside of the gates, since GATE_EXIT_RUN_DSTAT was always defaulted to True. Now we enable dstat only when ZUUL_PROJECT variable is defined. In it's turn ZUUL_PROJECT is set only in zuul pre-run tasks for our jobs. Change-Id: I807985f68e1a090c5b3c055a78c16b79beeec8c5
This commit is contained in:
parent
36919af266
commit
0369605a1c
@ -28,7 +28,12 @@ ZUUL_PROJECT="${ZUUL_PROJECT:-}"
|
||||
GATE_EXIT_LOG_COPY="${GATE_EXIT_LOG_COPY:-false}"
|
||||
GATE_EXIT_LOG_GZIP="${GATE_EXIT_LOG_GZIP:-true}"
|
||||
GATE_EXIT_RUN_ARA="${GATE_EXIT_RUN_ARA:-true}"
|
||||
GATE_EXIT_RUN_DSTAT="${GATE_EXIT_RUN_DSTAT:-true}"
|
||||
|
||||
if [ -z ${ZUUL_PROJECT} ]; then
|
||||
GATE_EXIT_RUN_DSTAT="${GATE_EXIT_RUN_DSTAT:-false}"
|
||||
else
|
||||
GATE_EXIT_RUN_DSTAT="${GATE_EXIT_RUN_DSTAT:-true}"
|
||||
fi
|
||||
|
||||
# The default SSHD configuration has MaxSessions = 10. If a deployer changes
|
||||
# their SSHD config, then the ANSIBLE_FORKS may be set to a higher number. We
|
||||
|
Loading…
Reference in New Issue
Block a user