diff --git a/CI/scenarios/node_cpu_hog_engine.yaml b/CI/scenarios/node_cpu_hog_engine.yaml deleted file mode 100644 index b095942c..00000000 --- a/CI/scenarios/node_cpu_hog_engine.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: litmuschaos.io/v1alpha1 -kind: ChaosEngine -metadata: - name: nginx-chaos - namespace: litmus -spec: - # It can be true/false - annotationCheck: 'false' - # It can be active/stop - engineState: 'active' - chaosServiceAccount: litmus-sa - monitoring: false - # It can be delete/retain - jobCleanUpPolicy: 'delete' - experiments: - - name: node-cpu-hog - spec: - components: - env: - # set chaos duration (in sec) as desired - - name: TOTAL_CHAOS_DURATION - value: '10' - - # Number of cores of node CPU to be consumed - - name: NODE_CPU_CORE - value: '1' - - # percentage of total nodes to target - - name: NODES_AFFECTED_PERC - value: '30' - - # ENTER THE COMMA SEPARATED TARGET NODES NAME - - name: TARGET_NODES - value: $WORKER_NODE diff --git a/CI/scenarios/node_cpu_hog_engine_node.yaml b/CI/scenarios/node_cpu_hog_engine_node.yaml deleted file mode 100644 index 2ba399df..00000000 --- a/CI/scenarios/node_cpu_hog_engine_node.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: litmuschaos.io/v1alpha1 -kind: ChaosEngine -metadata: - name: nginx-chaos - namespace: litmus -spec: - # It can be true/false - annotationCheck: 'false' - # It can be active/stop - engineState: 'active' - chaosServiceAccount: litmus-sa - monitoring: false - # It can be delete/retain - jobCleanUpPolicy: 'delete' - experiments: - - name: node-cpu-hog - spec: - components: - env: - # set chaos duration (in sec) as desired - - name: TOTAL_CHAOS_DURATION - value: '10' - - # Number of cores of node CPU to be consumed - - name: NODE_CPU_CORE - value: '1' - - # percentage of total nodes to target - - name: NODES_AFFECTED_PERC - value: '30' - - # ENTER THE COMMA SEPARATED TARGET NODES NAME - - name: TARGET_NODES - value: diff --git a/CI/scenarios/node_io_engine.yaml b/CI/scenarios/node_io_engine.yaml deleted file mode 100644 index 51fb7208..00000000 --- a/CI/scenarios/node_io_engine.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: litmuschaos.io/v1alpha1 -kind: ChaosEngine -metadata: - name: nginx-chaos - namespace: litmus -spec: - # It can be delete/retain - jobCleanUpPolicy: 'retain' - # It can be active/stop - engineState: 'active' - chaosServiceAccount: litmus-sa - experiments: - - name: node-io-stress - spec: - components: - env: - # set chaos duration (in sec) as desired - - name: TOTAL_CHAOS_DURATION - value: '10' - - ## specify the size as percentage of free space on the file system - - name: FILESYSTEM_UTILIZATION_PERCENTAGE - value: '100' - - ## Number of core of CPU - - name: CPU - value: '1' - - ## Total number of workers default value is 4 - - name: NUMBER_OF_WORKERS - value: '3' - - ## enter the comma separated target nodes name - - name: TARGET_NODES - value: $WORKER_NODE diff --git a/CI/scenarios/node_io_engine_node.yaml b/CI/scenarios/node_io_engine_node.yaml deleted file mode 100644 index 73affe46..00000000 --- a/CI/scenarios/node_io_engine_node.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: litmuschaos.io/v1alpha1 -kind: ChaosEngine -metadata: - name: nginx-chaos - namespace: litmus -spec: - # It can be delete/retain - jobCleanUpPolicy: 'retain' - # It can be active/stop - engineState: 'active' - chaosServiceAccount: litmus-sa - experiments: - - name: node-io-stress - spec: - components: - env: - # set chaos duration (in sec) as desired - - name: TOTAL_CHAOS_DURATION - value: '10' - - ## specify the size as percentage of free space on the file system - - name: FILESYSTEM_UTILIZATION_PERCENTAGE - value: '100' - - ## Number of core of CPU - - name: CPU - value: '1' - - ## Total number of workers default value is 4 - - name: NUMBER_OF_WORKERS - value: '3' - - ## enter the comma separated target nodes name - - name: TARGET_NODES - value: diff --git a/CI/scenarios/node_mem_engine.yaml b/CI/scenarios/node_mem_engine.yaml deleted file mode 100644 index 33fc7ff7..00000000 --- a/CI/scenarios/node_mem_engine.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: litmuschaos.io/v1alpha1 -kind: ChaosEngine -metadata: - name: nginx-chaos - namespace: litmus -spec: - # It can be delete/retain - jobCleanUpPolicy: 'retain' - # It can be active/stop - engineState: 'active' - chaosServiceAccount: litmus-sa - experiments: - - name: node-memory-hog - spec: - components: - env: - # set chaos duration (in sec) as desired - - name: TOTAL_CHAOS_DURATION - value: '10' - - ## Specify the size as percent of total node capacity Ex: '30' - ## Note: For consuming memory in mebibytes change the variable to MEMORY_CONSUMPTION_MEBIBYTES - - name: MEMORY_CONSUMPTION_PERCENTAGE - value: '30' - - # ENTER THE COMMA SEPARATED TARGET NODES NAME - - name: TARGET_NODES - value: $WORKER_NODE diff --git a/CI/scenarios/node_mem_engine_node.yaml b/CI/scenarios/node_mem_engine_node.yaml deleted file mode 100644 index 6de33f24..00000000 --- a/CI/scenarios/node_mem_engine_node.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: litmuschaos.io/v1alpha1 -kind: ChaosEngine -metadata: - name: nginx-chaos - namespace: litmus -spec: - # It can be delete/retain - jobCleanUpPolicy: 'retain' - # It can be active/stop - engineState: 'active' - chaosServiceAccount: litmus-sa - experiments: - - name: node-memory-hog - spec: - components: - env: - # set chaos duration (in sec) as desired - - name: TOTAL_CHAOS_DURATION - value: '10' - - ## Specify the size as percent of total node capacity Ex: '30' - ## Note: For consuming memory in mebibytes change the variable to MEMORY_CONSUMPTION_MEBIBYTES - - name: MEMORY_CONSUMPTION_PERCENTAGE - value: '30' - - # ENTER THE COMMA SEPARATED TARGET NODES NAME - - name: TARGET_NODES - value: diff --git a/CI/tests/test_cpu_hog.sh b/CI/tests/test_cpu_hog.sh deleted file mode 100755 index 0ab06c71..00000000 --- a/CI/tests/test_cpu_hog.sh +++ /dev/null @@ -1,20 +0,0 @@ -set -xeEo pipefail - -source CI/tests/common.sh - -trap error ERR -trap finish EXIT - - -function functional_test_litmus_cpu { - - export scenario_type="litmus_scenarios" - export scenario_file="- scenarios/templates/litmus-rbac.yaml" - export post_config="- CI/scenarios/node_cpu_hog_engine_node.yaml" - envsubst < CI/config/common_test_config.yaml > CI/config/litmus_config.yaml - envsubst < CI/scenarios/node_cpu_hog_engine.yaml > CI/scenarios/node_cpu_hog_engine_node.yaml - python3 -m coverage run -a run_kraken.py -c CI/config/litmus_config.yaml - echo "Litmus scenario test: Success" -} - -functional_test_litmus_cpu diff --git a/CI/tests/test_cpu_hog_gh.sh b/CI/tests/test_cpu_hog_gh.sh deleted file mode 100755 index 53019485..00000000 --- a/CI/tests/test_cpu_hog_gh.sh +++ /dev/null @@ -1,20 +0,0 @@ -set -xeEo pipefail - -source CI/tests/common.sh - -trap error ERR -trap finish EXIT - - -function functional_test_litmus_cpu { - [ -z $NODE_NAME ] && echo "[ERR] NODE_NAME variable not set, failing." && exit 1 - yq -i ' .spec.experiments = [{"name": "node-cpu-hog", "spec":{"components":{"env":[{"name":"TOTAL_CHAOS_DURATION","value":"10"},{"name":"NODE_CPU_CORE","value":"1"},{"name":"NODES_AFFECTED_PERC","value":"30"},{"name":"TARGET_NODES","value":"'$NODE_NAME'"}]}}}]' CI/scenarios/node_cpu_hog_engine_node.yaml - - cp CI/config/common_test_config.yaml CI/config/litmus_config.yaml - yq '.kraken.chaos_scenarios = [{"litmus_scenarios":[["scenarios/openshift/templates/litmus-rbac.yaml","CI/scenarios/node_cpu_hog_engine_node.yaml"]]}]' -i CI/config/litmus_config.yaml - - python3 -m coverage run -a run_kraken.py -c CI/config/litmus_config.yaml - echo "Litmus scenario test: Success" -} - -functional_test_litmus_cpu diff --git a/CI/tests/test_io_hog.sh b/CI/tests/test_io_hog.sh deleted file mode 100755 index d4ce24e8..00000000 --- a/CI/tests/test_io_hog.sh +++ /dev/null @@ -1,20 +0,0 @@ -set -xeEo pipefail - -source CI/tests/common.sh - -trap error ERR -trap finish EXIT - - -function functional_test_litmus_io { - - export scenario_type="litmus_scenarios" - export scenario_file="- scenarios/templates/litmus-rbac.yaml" - export post_config="- CI/scenarios/node_io_engine_node.yaml" - envsubst < CI/config/common_test_config.yaml > CI/config/litmus_config.yaml - envsubst < CI/scenarios/node_io_engine.yaml > CI/scenarios/node_io_engine_node.yaml - python3 -m coverage run -a run_kraken.py -c CI/config/litmus_config.yaml - echo "Litmus scenario test: Success" -} - -functional_test_litmus_io diff --git a/CI/tests/test_io_hog_gh.sh b/CI/tests/test_io_hog_gh.sh deleted file mode 100755 index 8fd2b0e1..00000000 --- a/CI/tests/test_io_hog_gh.sh +++ /dev/null @@ -1,19 +0,0 @@ -set -xeEo pipefail - -source CI/tests/common.sh - -trap error ERR -trap finish EXIT - - -function functional_test_litmus_io { - [ -z $NODE_NAME ] && echo "[ERR] NODE_NAME variable not set, failing." && exit 1 - yq -i ' .spec.experiments = [{"name": "node-io-stress", "spec":{"components":{"env":[{"name":"TOTAL_CHAOS_DURATION","value":"10"},{"name":"FILESYSTEM_UTILIZATION_PERCENTAGE","value":"100"},{"name":"CPU","value":"1"},{"name":"NUMBER_OF_WORKERS","value":"3"},{"name":"TARGET_NODES","value":"'$NODE_NAME'"}]}}}]' CI/scenarios/node_io_engine_node.yaml - cp CI/config/common_test_config.yaml CI/config/litmus_config.yaml - yq '.kraken.chaos_scenarios = [{"litmus_scenarios":[["scenarios/openshift/templates/litmus-rbac.yaml","CI/scenarios/node_io_engine_node.yaml"]]}]' -i CI/config/litmus_config.yaml - - python3 -m coverage run -a run_kraken.py -c CI/config/litmus_config.yaml - echo "Litmus scenario test: Success" -} - -functional_test_litmus_io diff --git a/CI/tests/test_mem_hog.sh b/CI/tests/test_mem_hog.sh deleted file mode 100755 index 98832cf0..00000000 --- a/CI/tests/test_mem_hog.sh +++ /dev/null @@ -1,20 +0,0 @@ -set -xeEo pipefail - -source CI/tests/common.sh - -trap error ERR -trap finish EXIT - - -function functional_test_litmus_mem { - - export scenario_type="litmus_scenarios" - export scenario_file="- scenarios/templates/litmus-rbac.yaml" - export post_config="- CI/scenarios/node_mem_engine_node.yaml" - envsubst < CI/config/common_test_config.yaml > CI/config/litmus_config.yaml - envsubst < CI/scenarios/node_mem_engine.yaml > CI/scenarios/node_mem_engine_node.yaml - python3 -m coverage run -a run_kraken.py -c CI/config/litmus_config.yaml - echo "Litmus scenario $1 test: Success" -} - -functional_test_litmus_mem "- CI/scenarios/node_mem_engine.yaml" diff --git a/CI/tests/test_mem_hog_gh.sh b/CI/tests/test_mem_hog_gh.sh deleted file mode 100755 index c4693139..00000000 --- a/CI/tests/test_mem_hog_gh.sh +++ /dev/null @@ -1,19 +0,0 @@ -set -xeEo pipefail - -source CI/tests/common.sh - -trap error ERR -trap finish EXIT - - -function functional_test_litmus_mem { - [ -z $NODE_NAME ] && echo "[ERR] NODE_NAME variable not set, failing." && exit 1 - yq -i ' .spec.experiments = [{"name": "node-io-stress", "spec":{"components":{"env":[{"name":"TOTAL_CHAOS_DURATION","value":"10"},{"name":"CPU","value":"1"},{"name":"TARGET_NODES","value":"'$NODE_NAME'"}]}}}]' CI/scenarios/node_mem_engine_node.yaml - cp CI/config/common_test_config.yaml CI/config/litmus_config.yaml - yq '.kraken.chaos_scenarios = [{"litmus_scenarios":[["scenarios/openshift/templates/litmus-rbac.yaml","CI/scenarios/node_mem_engine_node.yaml"]]}]' -i CI/config/litmus_config.yaml - - python3 -m coverage run -a run_kraken.py -c CI/config/litmus_config.yaml - echo "Litmus scenario test: Success" -} - -functional_test_litmus_mem diff --git a/config/config_kind.yaml b/config/config_kind.yaml index 8ecf3373..88645dc5 100644 --- a/config/config_kind.yaml +++ b/config/config_kind.yaml @@ -6,11 +6,7 @@ kraken: publish_kraken_status: True # Can be accessed at http://0.0.0.0:8081 signal_state: RUN # Will wait for the RUN signal when set to PAUSE before running the scenarios, refer docs/signal.md for more details signal_address: 0.0.0.0 # Signal listening address - litmus_install: True # Installs specified version, set to False if it's already setup - litmus_version: v1.13.6 # Litmus version to install - litmus_uninstall: False # If you want to uninstall litmus if failure - litmus_uninstall_before_run: True # If you want to uninstall litmus before a new run starts - chaos_scenarios: # List of policies/chaos scenarios to load + chaos_scenarios: # List of policies/chaos scenarios to load - plugin_scenarios: - scenarios/kind/scheduler.yml - node_scenarios: diff --git a/config/config_kubernetes.yaml b/config/config_kubernetes.yaml index 524c48f5..efb1d72e 100644 --- a/config/config_kubernetes.yaml +++ b/config/config_kubernetes.yaml @@ -5,10 +5,6 @@ kraken: port: 8081 publish_kraken_status: True # Can be accessed at http://0.0.0.0:8081 signal_state: RUN # Will wait for the RUN signal when set to PAUSE before running the scenarios, refer docs/signal.md for more details - litmus_install: True # Installs specified version, set to False if it's already setup - litmus_version: v1.13.6 # Litmus version to install - litmus_uninstall: False # If you want to uninstall litmus if failure - litmus_uninstall_before_run: True # If you want to uninstall litmus before a new run starts chaos_scenarios: # List of policies/chaos scenarios to load - container_scenarios: # List of chaos pod scenarios to load - - scenarios/kube/container_dns.yml diff --git a/config/config_performance.yaml b/config/config_performance.yaml index 9cd07f03..5143a3ea 100644 --- a/config/config_performance.yaml +++ b/config/config_performance.yaml @@ -6,9 +6,6 @@ kraken: signal_state: RUN # Will wait for the RUN signal when set to PAUSE before running the scenarios, refer docs/signal.md for more details signal_address: 0.0.0.0 # Signal listening address port: 8081 # Signal port - litmus_version: v1.13.6 # Litmus version to install - litmus_uninstall: False # If you want to uninstall litmus if failure - litmus_uninstall_before_run: True # If you want to uninstall litmus before a new run starts chaos_scenarios: # List of policies/chaos scenarios to load - plugin_scenarios: # List of chaos pod scenarios to load - scenarios/openshift/etcd.yml diff --git a/scenarios/openshift/node_cpu_hog_engine.yaml b/scenarios/openshift/node_cpu_hog_engine.yaml deleted file mode 100644 index 45e4ff00..00000000 --- a/scenarios/openshift/node_cpu_hog_engine.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: litmuschaos.io/v1alpha1 -kind: ChaosEngine -metadata: - name: nginx-chaos - namespace: litmus -spec: - # It can be true/false - annotationCheck: 'false' - # It can be active/stop - engineState: 'active' - chaosServiceAccount: litmus-sa - monitoring: false - # It can be delete/retain - jobCleanUpPolicy: 'delete' - experiments: - - name: node-cpu-hog - spec: - components: - env: - # set chaos duration (in sec) as desired - - name: TOTAL_CHAOS_DURATION - value: '60' - - # Number of cores of node CPU to be consumed - - name: NODE_CPU_CORE - value: '1' - - # percentage of total nodes to target - - name: NODES_AFFECTED_PERC - value: '' - - # ENTER THE COMMA SEPARATED TARGET NODES NAME - - name: TARGET_NODES - value: '' diff --git a/scenarios/openshift/node_io_engine.yaml b/scenarios/openshift/node_io_engine.yaml deleted file mode 100644 index 7586f999..00000000 --- a/scenarios/openshift/node_io_engine.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: litmuschaos.io/v1alpha1 -kind: ChaosEngine -metadata: - name: nginx-chaos - namespace: litmus -spec: - # It can be delete/retain - jobCleanUpPolicy: 'retain' - # It can be active/stop - engineState: 'active' - chaosServiceAccount: litmus-sa - experiments: - - name: node-io-stress - spec: - components: - env: - # set chaos duration (in sec) as desired - - name: TOTAL_CHAOS_DURATION - value: '40' - - ## specify the size as percentage of free space on the file system - - name: FILESYSTEM_UTILIZATION_PERCENTAGE - value: '100' - - ## Number of core of CPU - - name: CPU - value: '1' - - ## Total number of workers default value is 4 - - name: NUMBER_OF_WORKERS - value: '3' - - ## enter the comma separated target nodes name - - name: TARGET_NODES - value: '' diff --git a/scenarios/openshift/node_mem_engine.yaml b/scenarios/openshift/node_mem_engine.yaml deleted file mode 100644 index 48f807cb..00000000 --- a/scenarios/openshift/node_mem_engine.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: litmuschaos.io/v1alpha1 -kind: ChaosEngine -metadata: - name: nginx-chaos - namespace: litmus -spec: - # It can be delete/retain - jobCleanUpPolicy: 'retain' - # It can be active/stop - engineState: 'active' - chaosServiceAccount: litmus-sa - experiments: - - name: node-memory-hog - spec: - components: - env: - # set chaos duration (in sec) as desired - - name: TOTAL_CHAOS_DURATION - value: '30' - - ## Specify the size as percent of total node capacity Ex: '30' - ## Note: For consuming memory in mebibytes change the variable to MEMORY_CONSUMPTION_MEBIBYTES - - name: MEMORY_CONSUMPTION_PERCENTAGE - value: '30' - - # ENTER THE COMMA SEPARATED TARGET NODES NAME - - name: TARGET_NODES - value: ''