Skip to content

Commit 0671221

Browse files
authored
Disable arca config setup for hog scenarios (#239)
This is needed given the move to native krkn scenarios. Signed-off-by: Naga Ravi Chaitanya Elluri <nelluri@redhat.com>
1 parent 207e16f commit 0671221

File tree

14 files changed

+3
-29
lines changed

14 files changed

+3
-29
lines changed

application-outages/run.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ if [[ $KRKN_DEBUG == "True" ]];then
1212
ls -la /home/krkn/.kube
1313
fi
1414

15-
16-
17-
1815
checks
19-
config_setup
2016

2117
# Substitute config with environment vars defined
2218
envsubst < /home/krkn/kraken/scenarios/app_outage.yaml.template > /home/krkn/kraken/scenarios/app_outage.yaml

common_run.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,3 @@ checks() {
5454
check_cluster_version
5555
set_kubernetes_platform
5656
}
57-
58-
# Config substitutions
59-
config_setup(){
60-
envsubst < /home/krkn/kraken/config/kube_burner.yaml.template > /home/krkn/kraken/config/kube_burner.yaml
61-
}
62-
63-

container-scenarios/run.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ fi
1111

1212

1313
checks
14-
config_setup
1514

1615
# Substitute config with environment vars defined
1716
envsubst < /home/krkn/kraken/scenarios/container_scenario.yaml.template > /home/krkn/kraken/scenarios/container_scenario.yaml

docs/node-io-hog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This scenario hogs the IO on the specified node on a Kubernetes/OpenShift cluste
55
If enabling [Cerberus](https://github.com/krkn-chaos/krkn#kraken-scenario-passfail-criteria-and-report) to monitor the cluster and pass/fail the scenario post chaos, refer [docs](https://github.com/redhat-chaos/krkn-hub/tree/main/docs/cerberus.md). Make sure to start it before injecting the chaos and set `CERBERUS_ENABLED` environment variable for the chaos injection container to autoconnect.
66

77
```
8-
$ podman run --name=<container_name> --net=host --env-host=true -v <path-to-kube-config>:/root/.kube/config:Z -d quay.io/krkn-chaos/krkn-hub:node-io-hog
8+
$ podman run --name=<container_name> --net=host --env-host=true -v <path-to-kube-config>:/home/krkn/.kube/config:Z -d quay.io/krkn-chaos/krkn-hub:node-io-hog
99
$ podman logs -f <container_name or container_id> # Streams Kraken logs
1010
$ podman inspect <container-name or container-id> --format "{{.State.ExitCode}}" # Outputs exit code which can considered as pass/fail for the scenario
1111
```

network-chaos/run.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ if [[ $KRKN_DEBUG == "True" ]];then
99
ls -la /home/krkn/.kube
1010
fi
1111

12-
1312
checks
14-
config_setup
1513

1614
# Substitute config with environment vars defined
1715
if [[ $TRAFFIC_TYPE == "egress" ]]; then

node-cpu-hog/run.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ envsubst < $KRAKEN_FOLDER/scenarios/kube/cpu-hog.yml.template > $KRAKEN_FOLDER/s
1818
cat $KRAKEN_FOLDER/scenarios/kube/cpu-hog.yml
1919
# Substitute config with environment vars defined
2020
envsubst < $KRAKEN_FOLDER/config/config.yaml.template > $KRAKEN_FOLDER/config/cpu_config.yaml
21-
echo $KRAKEN_FOLDER
21+
2222
checks
23-
config_setup
2423

2524
# Run Kraken
2625
cd $KRAKEN_FOLDER

node-io-hog/run.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ if [[ $KRKN_DEBUG == "True" ]];then
1313
set -ex
1414
fi
1515

16-
1716
envsubst < $KRAKEN_FOLDER/scenarios/kube/io-hog.yml.template > $KRAKEN_FOLDER/scenarios/kube/io-hog.yml
1817
# Substitute config with environment vars defined
1918
envsubst < $KRAKEN_FOLDER/config/config.yaml.template > $KRAKEN_FOLDER/config/io-config.yaml
19+
2020
checks
21-
config_setup
2221

2322
# Run Kraken
2423
cd $KRAKEN_FOLDER
@@ -29,5 +28,3 @@ if [[ $KRKN_DEBUG == "True" ]];then
2928
fi
3029

3130
python3.9 run_kraken.py --config=config/io-config.yaml
32-
33-

node-memory-hog/run.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ envsubst < $KRAKEN_FOLDER/scenarios/kube/memory-hog.yml.template > $KRAKEN_FOLDE
1818
envsubst < $KRAKEN_FOLDER/config/config.yaml.template > $KRAKEN_FOLDER/config/mem-config.yaml
1919

2020
checks
21-
config_setup
22-
2321

2422
# Run Kraken
2523
cd $KRAKEN_FOLDER

pod-network-chaos/run.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ if [[ $KRKN_DEBUG == "True" ]];then
1010
fi
1111

1212
checks
13-
config_setup
1413

1514
# Substitute config with environment vars defined
1615
envsubst < /home/krkn/kraken/scenarios/pod_network_scenario.yaml.template > /home/krkn/kraken/scenarios/pod_network_scenario.yaml

pod-scenarios/run.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ if [[ $KRKN_DEBUG == "True" ]];then
1010
fi
1111

1212
checks
13-
config_setup
1413

1514
# Substitute config with environment vars defined
1615
if [[ -z "$POD_LABEL" ]]; then

0 commit comments

Comments
 (0)