From 3973fc2605da337cc2cfe1ca705c3b77f144cd6e Mon Sep 17 00:00:00 2001 From: Tullio Sebastiani Date: Tue, 26 Nov 2024 19:09:14 +0100 Subject: [PATCH] renamed debug envvar from DEBUG to KRKN_DEBUG Signed-off-by: Tullio Sebastiani --- application-outages/run.sh | 2 +- container-scenarios/run.sh | 4 ++-- docs/all_scenarios_env.md | 2 +- env.sh | 2 +- network-chaos/run.sh | 2 +- node-cpu-hog/run.sh | 4 ++-- node-io-hog/run.sh | 4 ++-- node-memory-hog/run.sh | 4 ++-- node-scenarios/run.sh | 4 ++-- pod-network-chaos/run.sh | 4 ++-- pod-scenarios/run.sh | 4 ++-- power-outages/run.sh | 4 ++-- pvc-scenario/run.sh | 2 +- service-disruption-scenarios/run.sh | 4 ++-- service-hijacking/run.sh | 4 ++-- syn-flood/run.sh | 2 +- time-scenarios/run.sh | 2 +- zone-outages/run.sh | 2 +- 18 files changed, 28 insertions(+), 28 deletions(-) diff --git a/application-outages/run.sh b/application-outages/run.sh index c627af1..b57c9e1 100755 --- a/application-outages/run.sh +++ b/application-outages/run.sh @@ -7,7 +7,7 @@ source /home/krkn/env.sh source /home/krkn/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex ls -la /home/krkn/.kube fi diff --git a/container-scenarios/run.sh b/container-scenarios/run.sh index af7cd2a..b69652b 100755 --- a/container-scenarios/run.sh +++ b/container-scenarios/run.sh @@ -5,7 +5,7 @@ source /home/krkn/main_env.sh source /home/krkn/env.sh source /home/krkn/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex fi @@ -20,7 +20,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con # Run Kraken cd /home/krkn/kraken -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then cat config/container_scenario_config.yaml cat scenarios/container_scenario.yaml fi diff --git a/docs/all_scenarios_env.md b/docs/all_scenarios_env.md index b323dc4..341a116 100644 --- a/docs/all_scenarios_env.md +++ b/docs/all_scenarios_env.md @@ -43,6 +43,6 @@ TELEMETRY_FILTER_PATTER | Filter logs based on certain time stamp patterns |["(\ TELEMETRY_CLI_PATH | OC Cli path, if not specified will be search in $PATH | _blank_ | ELASTIC_SERVER | Be able to track telemtry data in elasticsearch, this is the url of the elasticsearch data storage | _blank_ | ELASTIC_INDEX | Elastic search index pattern to post results to | _blank_ | -DEBUG| If set to "True" enables krkn Verbose output | "False" | +KRKN_DEBUG| If set to "True" enables krkn Verbose output | "False" | **NOTE**: For setting the TELEMETRY_ARCHIVE_SIZE,the higher the number of archive files will be produced and uploaded (and processed by backup_thread simultaneously).For unstable/slow connection is better to keep this value low increasing the number of backup_threads, in this way, on upload failure, the retry will happen only on the failed chunk without affecting the whole upload. diff --git a/env.sh b/env.sh index 50b20fa..12c8bfb 100755 --- a/env.sh +++ b/env.sh @@ -54,4 +54,4 @@ export TELEMETRY_EVENTS_BACKUP=${TELEMETRY_EVENTS_BACKUP:=True} # Set KUBECONFIG to mounted kubeconfig export KUBECONFIG=${KRKN_KUBE_CONFIG} -export DEBUG=${DEBUG:="False"} +export KRKN_DEBUG=${KRKN_DEBUG:="False"} diff --git a/network-chaos/run.sh b/network-chaos/run.sh index c0eed5d..b0a214b 100755 --- a/network-chaos/run.sh +++ b/network-chaos/run.sh @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh source /home/krkn/env.sh source /home/krkn/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex ls -la /home/krkn/.kube fi diff --git a/node-cpu-hog/run.sh b/node-cpu-hog/run.sh index 52aae47..edfdca9 100755 --- a/node-cpu-hog/run.sh +++ b/node-cpu-hog/run.sh @@ -9,7 +9,7 @@ source $ROOT_FOLDER/main_env.sh source $ROOT_FOLDER/env.sh source $ROOT_FOLDER/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex fi @@ -22,7 +22,7 @@ config_setup # Run Kraken cd $KRAKEN_FOLDER -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then cat scenarios/kube/cpu-hog/input.yaml cat config/cpu_config.yaml fi diff --git a/node-io-hog/run.sh b/node-io-hog/run.sh index 5dc57ff..c504763 100755 --- a/node-io-hog/run.sh +++ b/node-io-hog/run.sh @@ -9,7 +9,7 @@ source $ROOT_FOLDER/main_env.sh source $ROOT_FOLDER/env.sh source $ROOT_FOLDER/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex fi @@ -22,7 +22,7 @@ config_setup # Run Kraken cd $KRAKEN_FOLDER -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then cat config/io_config.yaml cat scenarios/kube/io-hog/input.yaml fi diff --git a/node-memory-hog/run.sh b/node-memory-hog/run.sh index ea0e323..c045338 100755 --- a/node-memory-hog/run.sh +++ b/node-memory-hog/run.sh @@ -9,7 +9,7 @@ source $ROOT_FOLDER/main_env.sh source $ROOT_FOLDER/env.sh source $ROOT_FOLDER/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex fi @@ -24,7 +24,7 @@ config_setup # Run Kraken cd $KRAKEN_FOLDER -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then cat config/mem_config.yaml cat scenarios/kube/memory-hog/input.yaml fi diff --git a/node-scenarios/run.sh b/node-scenarios/run.sh index b0a6d01..8b27e2a 100755 --- a/node-scenarios/run.sh +++ b/node-scenarios/run.sh @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh source /home/krkn/env.sh source /home/krkn/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex fi @@ -45,7 +45,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con cd /home/krkn/kraken -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then cat config/node_scenario_config.yaml cat scenarios/node_scenario.yaml fi diff --git a/pod-network-chaos/run.sh b/pod-network-chaos/run.sh index 77be6e8..79d511f 100755 --- a/pod-network-chaos/run.sh +++ b/pod-network-chaos/run.sh @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh source /home/krkn/env.sh source /home/krkn/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex ls -la /home/krkn/.kube fi @@ -25,7 +25,7 @@ fi # Run Kraken cd /home/krkn/kraken -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then cat /home/krkn/kraken/config/pod_network_scenario_config.yaml cat /home/krkn/kraken/scenarios/pod_network_scenario.yaml fi diff --git a/pod-scenarios/run.sh b/pod-scenarios/run.sh index 7f285b1..60e9da2 100755 --- a/pod-scenarios/run.sh +++ b/pod-scenarios/run.sh @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh source /home/krkn/env.sh source /home/krkn/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex ls -la /home/krkn/.kube fi @@ -24,7 +24,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con cd /home/krkn/kraken -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then cat /home/krkn/kraken/config/pod_scenario_config.yaml cat /home/krkn/kraken/scenarios/pod_scenario.yaml fi diff --git a/power-outages/run.sh b/power-outages/run.sh index a066a12..89dab57 100755 --- a/power-outages/run.sh +++ b/power-outages/run.sh @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh source /home/krkn/env.sh source /home/krkn/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex fi @@ -18,7 +18,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con # Run Kraken cd /home/krkn/kraken -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then cat config/shut_down_config.yaml cat scenarios/cluster_shut_down_scenario.yml fi diff --git a/pvc-scenario/run.sh b/pvc-scenario/run.sh index a677200..6306674 100755 --- a/pvc-scenario/run.sh +++ b/pvc-scenario/run.sh @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh source /home/krkn/env.sh source /home/krkn/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex ls -la /home/krkn/.kube fi diff --git a/service-disruption-scenarios/run.sh b/service-disruption-scenarios/run.sh index e3b68f7..15f034c 100755 --- a/service-disruption-scenarios/run.sh +++ b/service-disruption-scenarios/run.sh @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh source /home/krkn/env.sh source /home/krkn/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex fi @@ -18,7 +18,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con # Run Kraken cd /home/krkn/kraken -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then cat scenarios/namespace_scenario.yaml cat config/namespace_config.yaml fi diff --git a/service-hijacking/run.sh b/service-hijacking/run.sh index 5cec0d8..d8f23fb 100755 --- a/service-hijacking/run.sh +++ b/service-hijacking/run.sh @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh source /home/krkn/env.sh source /home/krkn/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex fi @@ -36,7 +36,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con # Run Kraken cd /home/krkn/kraken -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then cat scenarios/service_hijacking.yaml cat config/service_hijacking_config.yaml fi diff --git a/syn-flood/run.sh b/syn-flood/run.sh index 7cc9586..67eaac1 100755 --- a/syn-flood/run.sh +++ b/syn-flood/run.sh @@ -8,7 +8,7 @@ source $ROOT_FOLDER/main_env.sh source $ROOT_FOLDER/env.sh source $ROOT_FOLDER/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex fi diff --git a/time-scenarios/run.sh b/time-scenarios/run.sh index dddc536..8da72b3 100755 --- a/time-scenarios/run.sh +++ b/time-scenarios/run.sh @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh source /home/krkn/env.sh source /home/krkn/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex fi diff --git a/zone-outages/run.sh b/zone-outages/run.sh index c5346f4..9b530e9 100755 --- a/zone-outages/run.sh +++ b/zone-outages/run.sh @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh source /home/krkn/env.sh source /home/krkn/common_run.sh -if [[ $DEBUG == "True" ]];then +if [[ $KRKN_DEBUG == "True" ]];then set -ex fi