From 78d2c68b677bca88e826aabb91114b426356a5aa Mon Sep 17 00:00:00 2001 From: Raj Babu Das Date: Fri, 4 Oct 2019 22:24:45 +0530 Subject: [PATCH] (feat)charts: Add chaos experiments for OpenEBS network loss and delay (#19) Refactor charts Signed-off-by: rajdas98 raj.das@mayadata.io --- ...kill.chartserviceversion.basetemplate.yaml | 14 +- .../container_kill.chartserviceversion.yaml | 14 +- .../experiment.basetemplate.yaml | 13 +- charts/generic/container_kill/experiment.yaml | 13 +- charts/generic/experiments.yaml | 84 ++++++++++- ...eric.chartserviceversion.basetemplate.yaml | 12 +- .../generic/generic.chartserviceversion.yaml | 12 +- charts/generic/generic.package.yaml | 8 +- .../pod_delete/experiment.basetemplate.yaml | 8 +- charts/generic/pod_delete/experiment.yaml | 10 +- ...lete.chartserviceversion.basetemplate.yaml | 15 +- .../pod_delete.chartserviceversion.yaml | 15 +- .../experiment.basetemplate.yaml | 10 +- .../generic/pod_network_delay/experiment.yaml | 10 +- ...elay.chartserviceversion.basetemplate.yaml | 9 +- ...pod_network_delay.chartserviceversion.yaml | 11 +- charts/openebs/experiments.yaml | 136 ++++++++++++++++++ .../experiment.basetemplate.yaml | 19 +-- .../openebs-pool-failure/experiment.yaml | 34 +++++ ...ure.chartserviceversion.basetemplate.yaml} | 8 +- ...ebs_pool_failure.chartserviceversion.yaml} | 23 ++- .../experiment.basetemplate.yaml | 27 +--- .../openebs-target-failure/experiment.yaml | 38 +++++ ...lure.chartserviceversion.basetemplate.yaml | 8 +- ...bs_target_failure.chartserviceversion.yaml | 34 +++++ .../experiment.basetemplate.yaml | 31 ++++ .../experiment.yaml | 31 ++++ ...lay.chartserviceversion.basetemplate.yaml} | 37 +++-- ...get_network_delay.chartserviceversion.yaml | 34 +++++ .../experiment.basetemplate.yaml | 31 ++++ .../experiment.yaml | 31 ++++ ...loss.chartserviceversion.basetemplate.yaml | 34 +++++ ...rget_network_loss.chartserviceversion.yaml | 34 +++++ ...nebs.chartserviceversion.basetemplate.yaml | 17 +-- .../openebs/openebs.chartserviceversion.yaml | 19 +-- charts/openebs/openebs.package.yaml | 15 +- .../pod_delete/experiment.basetemplate.yaml | 29 ---- charts/openebs/pod_delete/experiment.yaml | 29 ---- 38 files changed, 700 insertions(+), 257 deletions(-) create mode 100644 charts/openebs/experiments.yaml create mode 100644 charts/openebs/openebs-pool-failure/experiment.yaml rename charts/openebs/openebs-pool-failure/{openebs_target_failure.chartserviceversion.basetemplate.yaml => openebs_pool_failure.chartserviceversion.basetemplate.yaml} (91%) rename charts/openebs/{pod_delete/pod_delete.chartserviceversion.yaml => openebs-pool-failure/openebs_pool_failure.chartserviceversion.yaml} (51%) create mode 100644 charts/openebs/openebs-target-failure/experiment.yaml create mode 100644 charts/openebs/openebs-target-failure/openebs_target_failure.chartserviceversion.yaml create mode 100644 charts/openebs/openebs-target-network-delay/experiment.basetemplate.yaml create mode 100644 charts/openebs/openebs-target-network-delay/experiment.yaml rename charts/openebs/{pod_delete/pod_delete.chartserviceversion.basetemplate.yaml => openebs-target-network-delay/openebs_target_network_delay.chartserviceversion.basetemplate.yaml} (52%) create mode 100644 charts/openebs/openebs-target-network-delay/openebs_target_network_delay.chartserviceversion.yaml create mode 100644 charts/openebs/openebs-target-network-loss/experiment.basetemplate.yaml create mode 100644 charts/openebs/openebs-target-network-loss/experiment.yaml create mode 100644 charts/openebs/openebs-target-network-loss/openebs_target_network_loss.chartserviceversion.basetemplate.yaml create mode 100644 charts/openebs/openebs-target-network-loss/openebs_target_network_loss.chartserviceversion.yaml delete mode 100644 charts/openebs/pod_delete/experiment.basetemplate.yaml delete mode 100644 charts/openebs/pod_delete/experiment.yaml diff --git a/charts/generic/container_kill/container_kill.chartserviceversion.basetemplate.yaml b/charts/generic/container_kill/container_kill.chartserviceversion.basetemplate.yaml index 583327a..76874c6 100644 --- a/charts/generic/container_kill/container_kill.chartserviceversion.basetemplate.yaml +++ b/charts/generic/container_kill/container_kill.chartserviceversion.basetemplate.yaml @@ -1,21 +1,20 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: - name: Container-kill + name: container-kill + version: {{ VERSION }} annotations: categories: "Kubernetes" vendor: "CNCF" - createdAt: 2019-08-12T10:28:08Z - repository: https://github.com/litmuschaos/community-charts - support: https://slack.kubernetes.io/ + repository: https://github.com/litmuschaos/chaos-charts + support: https://slack.openebs.io/ spec: - displayName: Container-kill + displayName: container-kill description: > Container kill contains chaos to disrupt state of kubernetes resources. Experiments can inject random container delete failures against specified application. keywords: - Kubernetes - Container - version: {{ VERSION }} maturity: alpha maintainers: - name: ksatchit @@ -31,7 +30,4 @@ spec: icon: - url: mediatype: "" - experiments: - - container-kill-exp.yaml - - pod-delete-exp.yaml chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/container_kill/experiment.yaml diff --git a/charts/generic/container_kill/container_kill.chartserviceversion.yaml b/charts/generic/container_kill/container_kill.chartserviceversion.yaml index 8c35020..b49f0c0 100644 --- a/charts/generic/container_kill/container_kill.chartserviceversion.yaml +++ b/charts/generic/container_kill/container_kill.chartserviceversion.yaml @@ -1,21 +1,20 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: - name: Container-kill-v.0.1.0 + name: container-kill + version: 0.1.0 annotations: categories: "Kubernetes" vendor: "CNCF" - createdAt: 2019-08-12T10:28:08Z - repository: https://github.com/litmuschaos/community-charts - support: https://slack.kubernetes.io/ + repository: https://github.com/litmuschaos/chaos-charts + support: https://slack.openebs.io/ spec: - displayName: Container-kill + displayName: container-kill description: > Container kill contains chaos to disrupt state of kubernetes resources. Experiments can inject random container delete failures against specified application. keywords: - Kubernetes - Container - version: {{ VERSION }} maturity: alpha maintainers: - name: ksatchit @@ -31,7 +30,4 @@ spec: icon: - url: mediatype: "" - experiments: - - container-kill-exp.yaml - - pod-delete-exp.yaml chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/container_kill/experiment.yaml diff --git a/charts/generic/container_kill/experiment.basetemplate.yaml b/charts/generic/container_kill/experiment.basetemplate.yaml index e517601..0e46800 100644 --- a/charts/generic/container_kill/experiment.basetemplate.yaml +++ b/charts/generic/container_kill/experiment.basetemplate.yaml @@ -3,27 +3,24 @@ description: message: "Kills a container belonging to an application pod \n" kind: ChaosExperiment metadata: - name: kubernetes-state-container-kill + name: container-kill version: {{ VERSION }} spec: definition: + image: "litmuschaos/ansible-runner:ci" args: - -c - - ansible-playbook ./experiments/chaos/kubernetes/container_kill/test.yml -i /etc/ansible/hosts - -vv; exit 0 + - ansible-playbook ./experiments/generic/container_kill/container_kill_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 command: - /bin/bash env: - name: ANSIBLE_STDOUT_CALLBACK value: default - name: TARGET_CONTAINER - #value: nginx - value: front-end + value: "" - name: KILL_MODE value: "" - name: LIB value: "" - image: "" labels: - name: container-kill - litmusbook: /experiments/chaos/kubernetes/container_kill/run_litmus_test.yml + name: container-kill \ No newline at end of file diff --git a/charts/generic/container_kill/experiment.yaml b/charts/generic/container_kill/experiment.yaml index 02324fa..f6f1302 100644 --- a/charts/generic/container_kill/experiment.yaml +++ b/charts/generic/container_kill/experiment.yaml @@ -3,27 +3,24 @@ description: message: "Kills a container belonging to an application pod \n" kind: ChaosExperiment metadata: - name: kubernetes-state-container-kill-v0.1.0 + name: container-kill version: 0.1.0 spec: definition: + image: "litmuschaos/ansible-runner:ci" args: - -c - - ansible-playbook ./experiments/chaos/kubernetes/container_kill/test.yml -i /etc/ansible/hosts - -vv; exit 0 + - ansible-playbook ./experiments/generic/container_kill/container_kill_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 command: - /bin/bash env: - name: ANSIBLE_STDOUT_CALLBACK value: default - name: TARGET_CONTAINER - #value: nginx - value: front-end + value: "" - name: KILL_MODE value: "" - name: LIB value: "" - image: "" labels: - name: container-kill - litmusbook: /experiments/chaos/kubernetes/container_kill/run_litmus_test.yml + name: container-kill \ No newline at end of file diff --git a/charts/generic/experiments.yaml b/charts/generic/experiments.yaml index 9f37227..a91e3e4 100644 --- a/charts/generic/experiments.yaml +++ b/charts/generic/experiments.yaml @@ -1 +1,83 @@ -TO be generated by CI +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: "Kills a container belonging to an application pod \n" +kind: ChaosExperiment +metadata: + name: container-kill + version: 0.1.0 +spec: + definition: + image: "litmuschaos/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/generic/container_kill/container_kill_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: default + - name: TARGET_CONTAINER + value: "" + - name: KILL_MODE + value: "" + - name: LIB + value: "" + labels: + name: container-kill +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Deletes a pod belonging to a deployment/statefulset/daemonset +kind: ChaosExperiment +metadata: + name: pod-delete + version: 0.1.0 +spec: + definition: + image: "litmuschaos/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: default + - name: TOTAL_CHAOS_DURATION + value: 15 + - name: CHAOS_INTERVAL + value: 5 + - name: LIB + value: "" + labels: + name: pod-delete +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Deletes a pod belonging to a deployment/statefulset/daemonset +kind: ChaosExperiment +metadata: + name: pod-network-delay + version: 0.1.0 +spec: + definition: + image: "litmuschaos/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/generic/pod_network_delay/pod_network_delay_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: default + - name: TOTAL_CHAOS_DURATION + value: 15 + - name: CHAOS_INTERVAL + value: 5 + - name: LIB + value: "" + labels: + name: pod-network-delay \ No newline at end of file diff --git a/charts/generic/generic.chartserviceversion.basetemplate.yaml b/charts/generic/generic.chartserviceversion.basetemplate.yaml index b7ea9cf..8b202d3 100644 --- a/charts/generic/generic.chartserviceversion.basetemplate.yaml +++ b/charts/generic/generic.chartserviceversion.basetemplate.yaml @@ -1,9 +1,10 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: - name: generic-v0.1.0 + name: generic + version: {{ VERSION }} annotations: - categories: "Kubernetes" + categories: Kubernetes chartDescription: Injects generic kubernetes chaos spec: displayName: Generic Chaos @@ -11,14 +12,13 @@ spec: Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. It groups containers that make up an application into logical units for easy management and discovery. Install will all the experiments which can be used to inject chaos into containerized appications. experiments: - - pod-nw-delay - - pod-delete-exp + - pod-network-delay + - pod-delete - container-kill keywords: - Kubernetes - Container - version: {{ VERSION }} maturity: alpha maintainers: - name: ksatchit @@ -38,4 +38,4 @@ spec: icon: - url: mediatype: image/png - chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/community-charts/master/charts/kubernetes/experiments/k8s_all_exp_crd.yaml + chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/experiments/experiments.yaml diff --git a/charts/generic/generic.chartserviceversion.yaml b/charts/generic/generic.chartserviceversion.yaml index c9ff210..e455fe7 100644 --- a/charts/generic/generic.chartserviceversion.yaml +++ b/charts/generic/generic.chartserviceversion.yaml @@ -1,9 +1,10 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: - name: generic-v0.1.0 + name: generic + version: 0.1.0 annotations: - categories: "Kubernetes" + categories: Kubernetes chartDescription: Injects generic kubernetes chaos spec: displayName: Generic Chaos @@ -11,14 +12,13 @@ spec: Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. It groups containers that make up an application into logical units for easy management and discovery. Install will all the experiments which can be used to inject chaos into containerized appications. experiments: - - pod-nw-delay - - pod-delete-exp + - pod-network-delay + - pod-delete - container-kill keywords: - Kubernetes - Container - version: 0.1.0 maturity: alpha maintainers: - name: ksatchit @@ -38,4 +38,4 @@ spec: icon: - url: mediatype: image/png - chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/community-charts/master/charts/kubernetes/experiments/k8s_all_exp_crd.yaml + chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/experiments/experiments.yaml diff --git a/charts/generic/generic.package.yaml b/charts/generic/generic.package.yaml index b854cc5..d7f8813 100644 --- a/charts/generic/generic.package.yaml +++ b/charts/generic/generic.package.yaml @@ -1,11 +1,11 @@ packageName: kubernetes experiments: - - name: Pod-delete + - name: pod-delete CSV: pod_delete.chartserviceversion.yaml - desc: "Pod delete" - - name: Container-kill + desc: "pod delete" + - name: container-kill CSV: container_kill.chartserviceversion.yaml desc: "container kill" - - name: Pod-network-delay + - name: pod-network-delay CSV: pod_network_delay.chartserviceversion.yaml desc: "Pod network delay" diff --git a/charts/generic/pod_delete/experiment.basetemplate.yaml b/charts/generic/pod_delete/experiment.basetemplate.yaml index 58568dd..8420e9c 100644 --- a/charts/generic/pod_delete/experiment.basetemplate.yaml +++ b/charts/generic/pod_delete/experiment.basetemplate.yaml @@ -4,14 +4,14 @@ description: Deletes a pod belonging to a deployment/statefulset/daemonset kind: ChaosExperiment metadata: - name: kubernetes-state-pod-delete + name: pod-delete version: {{ VERSION }} spec: definition: + image: "litmuschaos/ansible-runner:ci" args: - -c - - ansible-playbook ./experiments/chaos/kubernetes/pod_delete/test.yml -i /etc/ansible/hosts - -vv; exit 0 + - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 command: - /bin/bash env: @@ -23,7 +23,5 @@ spec: value: 5 - name: LIB value: "" - image: "" labels: name: pod-delete - litmusbook: /experiments/chaos/kubernetes/pod_delete/run_litmus_test.yml diff --git a/charts/generic/pod_delete/experiment.yaml b/charts/generic/pod_delete/experiment.yaml index 23257b3..448fabd 100644 --- a/charts/generic/pod_delete/experiment.yaml +++ b/charts/generic/pod_delete/experiment.yaml @@ -4,14 +4,14 @@ description: Deletes a pod belonging to a deployment/statefulset/daemonset kind: ChaosExperiment metadata: - name: kubernetes-state-pod-delete-v0.1.0 + name: pod-delete version: 0.1.0 spec: definition: + image: "litmuschaos/ansible-runner:ci" args: - -c - - ansible-playbook ./experiments/chaos/kubernetes/pod_delete/test.yml -i /etc/ansible/hosts - -vv; exit 0 + - ansible-playbook ./experiments/generic/pod_delete/pod_delete_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 command: - /bin/bash env: @@ -23,7 +23,5 @@ spec: value: 5 - name: LIB value: "" - image: "" labels: - name: pod-delete - litmusbook: /experiments/chaos/kubernetes/pod_delete/run_litmus_test.yml + name: pod-delete \ No newline at end of file diff --git a/charts/generic/pod_delete/pod_delete.chartserviceversion.basetemplate.yaml b/charts/generic/pod_delete/pod_delete.chartserviceversion.basetemplate.yaml index 17f3d6e..4a11564 100644 --- a/charts/generic/pod_delete/pod_delete.chartserviceversion.basetemplate.yaml +++ b/charts/generic/pod_delete/pod_delete.chartserviceversion.basetemplate.yaml @@ -1,21 +1,21 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: - name: Pod-delete + name: pod-delete + version: {{ VERSION }} annotations: - categories: "Kubernetes" - vendor: "CNCF" + categories: Kubernetes + vendor: CNCF createdAt: 2019-08-12T10:28:08Z - repository: https://github.com/litmuschaos/community-charts + repository: https://github.com/litmuschaos/chaos-charts support: https://slack.kubernetes.io/ spec: - displayName: Pod_delete + displayName: pod-delete description: > Pod delete contains chaos to disrupt state of kubernetes resources. Experiments can inject random pod delete failures against specified application. keywords: - Kubernetes - State - version: {{ VERSION }} maturity: alpha maintainers: - name: ksatchit @@ -31,7 +31,4 @@ spec: icon: - url: mediatype: "" - experiments: - - container-kill-exp.yaml - - pod-delete-exp.yaml chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/pod_delete/experiment.yaml diff --git a/charts/generic/pod_delete/pod_delete.chartserviceversion.yaml b/charts/generic/pod_delete/pod_delete.chartserviceversion.yaml index 1807c68..1c353fe 100644 --- a/charts/generic/pod_delete/pod_delete.chartserviceversion.yaml +++ b/charts/generic/pod_delete/pod_delete.chartserviceversion.yaml @@ -1,21 +1,21 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: - name: Pod-delete-v.0.1.0 + name: pod-delete + version: 0.1.0 annotations: - categories: "Kubernetes" - vendor: "CNCF" + categories: Kubernetes + vendor: CNCF createdAt: 2019-08-12T10:28:08Z - repository: https://github.com/litmuschaos/community-charts + repository: https://github.com/litmuschaos/chaos-charts support: https://slack.kubernetes.io/ spec: - displayName: Pod_delete + displayName: pod-delete description: > Pod delete contains chaos to disrupt state of kubernetes resources. Experiments can inject random pod delete failures against specified application. keywords: - Kubernetes - State - version: 0.1.0 maturity: alpha maintainers: - name: ksatchit @@ -31,7 +31,4 @@ spec: icon: - url: mediatype: "" - experiments: - - container-kill-exp.yaml - - pod-delete-exp.yaml chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/pod_delete/experiment.yaml diff --git a/charts/generic/pod_network_delay/experiment.basetemplate.yaml b/charts/generic/pod_network_delay/experiment.basetemplate.yaml index 1d0fc16..512f143 100644 --- a/charts/generic/pod_network_delay/experiment.basetemplate.yaml +++ b/charts/generic/pod_network_delay/experiment.basetemplate.yaml @@ -4,14 +4,14 @@ description: Deletes a pod belonging to a deployment/statefulset/daemonset kind: ChaosExperiment metadata: - name: kubernetes-network-pod-nw-delay + name: pod-network-delay version: {{ VERSION }} spec: definition: + image: "litmuschaos/ansible-runner:ci" args: - -c - - ansible-playbook ./experiments/chaos/kubernetes/pod_nw_delay/test.yml -i /etc/ansible/hosts - -vv; exit 0 + - ansible-playbook ./experiments/generic/pod_network_delay/pod_network_delay_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 command: - /bin/bash env: @@ -23,7 +23,5 @@ spec: value: 5 - name: LIB value: "" - image: "" labels: - name: pod-nw-delay - litmusbook: /experiments/chaos/kubernetes/pod_nw_delay/run_litmus_test.yml + name: pod-network-delay \ No newline at end of file diff --git a/charts/generic/pod_network_delay/experiment.yaml b/charts/generic/pod_network_delay/experiment.yaml index 3ceabb9..3bc0284 100644 --- a/charts/generic/pod_network_delay/experiment.yaml +++ b/charts/generic/pod_network_delay/experiment.yaml @@ -4,14 +4,14 @@ description: Deletes a pod belonging to a deployment/statefulset/daemonset kind: ChaosExperiment metadata: - name: kubernetes-network-pod-nw-delay-v0.1.0 + name: pod-network-delay version: 0.1.0 spec: definition: + image: "litmuschaos/ansible-runner:ci" args: - -c - - ansible-playbook ./experiments/chaos/kubernetes/pod_nw_delay/test.yml -i /etc/ansible/hosts - -vv; exit 0 + - ansible-playbook ./experiments/generic/pod_network_delay/pod_network_delay_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 command: - /bin/bash env: @@ -23,7 +23,5 @@ spec: value: 5 - name: LIB value: "" - image: "" labels: - name: pod-nw-delay - litmusbook: /experiments/chaos/kubernetes/pod_nw_delay/run_litmus_test.yml + name: pod-network-delay \ No newline at end of file diff --git a/charts/generic/pod_network_delay/pod_network_delay.chartserviceversion.basetemplate.yaml b/charts/generic/pod_network_delay/pod_network_delay.chartserviceversion.basetemplate.yaml index db62ee4..8fb1814 100644 --- a/charts/generic/pod_network_delay/pod_network_delay.chartserviceversion.basetemplate.yaml +++ b/charts/generic/pod_network_delay/pod_network_delay.chartserviceversion.basetemplate.yaml @@ -2,11 +2,11 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: name: pod-network-delay + version: {{ VERSION }} annotations: - categories: "Kubernetes" - vendor: "CNCF" - createdAt: 2019-08-12T10:28:08Z - repository: https://github.com/litmuschaos/community-charts + categories: Kubernetes + vendor: CNCF + repository: https://github.com/litmuschaos/chaos-charts support: https://slack.kubernetes.io/ spec: displayName: pod-network-delay @@ -15,7 +15,6 @@ spec: keywords: - Kubernetes - Network - version: {{ VERSION }} maturity: alpha maintainers: - name: ksatchit diff --git a/charts/generic/pod_network_delay/pod_network_delay.chartserviceversion.yaml b/charts/generic/pod_network_delay/pod_network_delay.chartserviceversion.yaml index cb796d6..96b7efd 100644 --- a/charts/generic/pod_network_delay/pod_network_delay.chartserviceversion.yaml +++ b/charts/generic/pod_network_delay/pod_network_delay.chartserviceversion.yaml @@ -1,12 +1,12 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: - name: pod-network-delay-v0.1.0 + name: pod-network-delay + version: 0.1.0 annotations: - categories: "Kubernetes" - vendor: "CNCF" - createdAt: 2019-08-12T10:28:08Z - repository: https://github.com/litmuschaos/community-charts + categories: Kubernetes + vendor: CNCF + repository: https://github.com/litmuschaos/chaos-charts support: https://slack.kubernetes.io/ spec: displayName: pod-network-delay @@ -15,7 +15,6 @@ spec: keywords: - Kubernetes - Network - version: 0.1.0 maturity: alpha maintainers: - name: ksatchit diff --git a/charts/openebs/experiments.yaml b/charts/openebs/experiments.yaml new file mode 100644 index 0000000..80320ff --- /dev/null +++ b/charts/openebs/experiments.yaml @@ -0,0 +1,136 @@ +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Kill the pool pod and check if gets scheduled again +kind: ChaosExperiment +metadata: + labels: + litmuschaos.io/name: openebs + name: openebs-pool-failure + version: 0.1.0 +spec: + definition: + image: "openebs/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/chaos/openebs_pool_failure/test.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: default + - name: DATA_PERSISTENCE + value: "" + - name: CHAOS_TYPE + value: "pool-kill" + - name: CHAOS_ITERATIONS + value: "2" + labels: + name: openebs-pool-failure + configmaps: + - name: pool-failure + data: + parameters.yml: | +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Kill the cstor target/Jiva controller container and check if gets created again +kind: ChaosExperiment +metadata: + labels: + litmuschaos.io/name: openebs + name: openebs-target-failure + version: 0.1.0 +spec: + definition: + image: "openebs/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/chaos/openebs_target_failure/test.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: default + - name: TARGET_NAMESPACE + value: "openebs" + - name: DATA_PERSISTENCE + value: "" + - name: CHAOS_TYPE + value: "target-zrepl-kill" + - name: TARGET_CONTAINER + value: "cstor-volume-mgmt" + - name: DEPLOY_TYPE + value: "deployment" + labels: + name: openebs-target-failure + configmaps: + - name: target-failure + data: + parameters.yml: | +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Network delay to target pod belonging to a deployment/statefulset/daemonset +kind: ChaosExperiment +metadata: + labels: + litmuschaos.io/name: openebs + name: openebs-target-network-delay + version: 0.1.0 +spec: + definition: + image: "openebs/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/chaos/experiments/chaos/openebs_target_network_delay/test.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: "default" + - name: OPERATOR_NAMESPACE + value: "openebs" + - name: NETWORK_DELAY + value: "60" # in milliseconds (Mandatory) + - name: CHAOS_DURATION + value: "60" # in milliseconds (Mandatory) + - name: DATA_PERSISTENCY + value: "" + labels: + name: openebs-target-network-delay +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Network loss to target pod belonging to a OpenEBS PVC +kind: ChaosExperiment +metadata: + labels: + litmuschaos.io/name: openebs + name: openebs-target-network-loss + version: 0.1.0 +spec: + definition: + image: "openebs/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/chaos/experiments/chaos/openebs_target_network_loss/test.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: "default" + - name: OPERATOR_NAMESPACE + value: "openebs" + - name: NETWORK_DELAY + value: "60" # in milliseconds (Mandatory) + - name: CHAOS_DURATION + value: "60" # in milliseconds (Mandatory) + - name: DATA_PERSISTENCY + value: "" + labels: + name: openebs-target-network-loss \ No newline at end of file diff --git a/charts/openebs/openebs-pool-failure/experiment.basetemplate.yaml b/charts/openebs/openebs-pool-failure/experiment.basetemplate.yaml index 2317d54..a342836 100644 --- a/charts/openebs/openebs-pool-failure/experiment.basetemplate.yaml +++ b/charts/openebs/openebs-pool-failure/experiment.basetemplate.yaml @@ -11,25 +11,15 @@ metadata: version: {{ VERSION }} spec: definition: + image: "openebs/ansible-runner:ci" args: - -c - - ansible-playbook ./experiments/chaos/openebs_pool_failure/test.yml -i /etc/ansible/hosts - -vv; exit 0 + - ansible-playbook ./experiments/chaos/openebs_pool_failure/test.yml -i /etc/ansible/hosts -vv; exit 0 command: - /bin/bash env: - name: ANSIBLE_STDOUT_CALLBACK value: default - - name: APP_NAMESPACE - value: "" - - name: APP_LABEL - value: "" - - name: APP_PVC - value: #mendatory field - - name: LIVENESS_APP_LABEL - value: "" - - name: LIVENESS_APP_NAMESPACE - value: "" - name: DATA_PERSISTENCE value: "" - name: CHAOS_TYPE @@ -41,7 +31,4 @@ spec: configmaps: - name: pool-failure data: - parameters.yml: | - litmusbook: /experiments/chaos/openebs_pool_failure/run_litmus_test.yml - - + parameters.yml: | \ No newline at end of file diff --git a/charts/openebs/openebs-pool-failure/experiment.yaml b/charts/openebs/openebs-pool-failure/experiment.yaml new file mode 100644 index 0000000..824e9ca --- /dev/null +++ b/charts/openebs/openebs-pool-failure/experiment.yaml @@ -0,0 +1,34 @@ +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Kill the pool pod and check if gets scheduled again +kind: ChaosExperiment +metadata: + labels: + litmuschaos.io/name: openebs + name: openebs-pool-failure + version: 0.1.0 +spec: + definition: + image: "openebs/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/chaos/openebs_pool_failure/test.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: default + - name: DATA_PERSISTENCE + value: "" + - name: CHAOS_TYPE + value: "pool-kill" + - name: CHAOS_ITERATIONS + value: "2" + labels: + name: openebs-pool-failure + configmaps: + - name: pool-failure + data: + parameters.yml: | \ No newline at end of file diff --git a/charts/openebs/openebs-pool-failure/openebs_target_failure.chartserviceversion.basetemplate.yaml b/charts/openebs/openebs-pool-failure/openebs_pool_failure.chartserviceversion.basetemplate.yaml similarity index 91% rename from charts/openebs/openebs-pool-failure/openebs_target_failure.chartserviceversion.basetemplate.yaml rename to charts/openebs/openebs-pool-failure/openebs_pool_failure.chartserviceversion.basetemplate.yaml index 76fb77f..787b76d 100644 --- a/charts/openebs/openebs-pool-failure/openebs_target_failure.chartserviceversion.basetemplate.yaml +++ b/charts/openebs/openebs-pool-failure/openebs_pool_failure.chartserviceversion.basetemplate.yaml @@ -2,20 +2,20 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: name: openebs-pool-failure + version: {{ VERSION }} annotations: - categories: "OpenEBS" - vendor: "CNCF" + categories: OpenEBS + vendor: CNCF repository: https://github.com/litmuschaos/chaos-charts support: https://slack.openebs.io/ spec: - displayName: Openebs-Pool-Failure + displayName: openebs-pool-failure description: > Kill the pool pod and check if gets scheduled again. keywords: - Kubernetes - Storage Pool - OpenEBS - version: {{ VERSION }} maturity: alpha maintainers: - name: shubham chaudhary diff --git a/charts/openebs/pod_delete/pod_delete.chartserviceversion.yaml b/charts/openebs/openebs-pool-failure/openebs_pool_failure.chartserviceversion.yaml similarity index 51% rename from charts/openebs/pod_delete/pod_delete.chartserviceversion.yaml rename to charts/openebs/openebs-pool-failure/openebs_pool_failure.chartserviceversion.yaml index 7f6aabf..ffc21b5 100644 --- a/charts/openebs/pod_delete/pod_delete.chartserviceversion.yaml +++ b/charts/openebs/openebs-pool-failure/openebs_pool_failure.chartserviceversion.yaml @@ -1,30 +1,29 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: - name: pod-delete-v0.1.0 + name: openebs-pool-failure + version: 0.1.0 annotations: - categories: "OpenEBS" - vendor: "CNCF" - createdAt: 2019-08-12T10:28:08Z - repository: https://github.com/litmuschaos/community-charts + categories: OpenEBS + vendor: CNCF + repository: https://github.com/litmuschaos/chaos-charts support: https://slack.openebs.io/ spec: - displayName: Pod-Delete + displayName: openebs-pool-failure description: > - Pod delete contains chaos to disrupt state of openebs control-plane and data-plane resources. Experiments can inject random pod delete against specified openebs replicas. - + Kill the pool pod and check if gets scheduled again. keywords: - Kubernetes - - Pod + - Storage Pool - OpenEBS - version: 0.1.0 maturity: alpha maintainers: - - name: ksatchit - email: karthik.s@mayadata.io + - name: shubham chaudhary + email: shubham.chaudhary@mayadata.io minKubeVersion: 1.12.0 provider: name: Mayadata + readme: "https://github.com/mayadata-io/litmus/blob/master/experiments/chaos/openebs_pool_failure/README.md" links: - name: OpenEBS Website url: https://openebs.io diff --git a/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml b/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml index 7d6b643..6b6514d 100644 --- a/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml +++ b/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml @@ -1,4 +1,4 @@ --- +--- apiVersion: litmuschaos.io/v1alpha1 description: message: | @@ -11,27 +11,17 @@ metadata: version: {{ VERSION }} spec: definition: + image: "openebs/ansible-runner:ci" args: - -c - - ansible-playbook ./experiments/chaos/openebs_target_failure/test.yml -i /etc/ansible/hosts - -vv; exit 0 + - ansible-playbook ./experiments/chaos/openebs_target_failure/test.yml -i /etc/ansible/hosts -vv; exit 0 command: - /bin/bash env: - name: ANSIBLE_STDOUT_CALLBACK value: default - name: TARGET_NAMESPACE - value: openebs - - name: APP_NAMESPACE - value: "" - - name: APP_LABEL - value: "" - - name: APP_PVC - value: #mendatory field - - name: LIVENESS_APP_LABEL - value: "" - - name: LIVENESS_APP_NAMESPACE - value: "" + value: "openebs" - name: DATA_PERSISTENCE value: "" - name: CHAOS_TYPE @@ -39,15 +29,10 @@ spec: - name: TARGET_CONTAINER value: "cstor-volume-mgmt" - name: DEPLOY_TYPE - value: deployment + value: "deployment" labels: name: openebs-target-failure configmaps: - name: target-failure data: - parameters.yml: | - litmusbook: /experiments/chaos/openebs_target_failure/run_litmus_test.yml - - - - + parameters.yml: | \ No newline at end of file diff --git a/charts/openebs/openebs-target-failure/experiment.yaml b/charts/openebs/openebs-target-failure/experiment.yaml new file mode 100644 index 0000000..4d1fb42 --- /dev/null +++ b/charts/openebs/openebs-target-failure/experiment.yaml @@ -0,0 +1,38 @@ +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Kill the cstor target/Jiva controller container and check if gets created again +kind: ChaosExperiment +metadata: + labels: + litmuschaos.io/name: openebs + name: openebs-target-failure + version: 0.1.0 +spec: + definition: + image: "openebs/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/chaos/openebs_target_failure/test.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: default + - name: TARGET_NAMESPACE + value: "openebs" + - name: DATA_PERSISTENCE + value: "" + - name: CHAOS_TYPE + value: "target-zrepl-kill" + - name: TARGET_CONTAINER + value: "cstor-volume-mgmt" + - name: DEPLOY_TYPE + value: "deployment" + labels: + name: openebs-target-failure + configmaps: + - name: target-failure + data: + parameters.yml: | \ No newline at end of file diff --git a/charts/openebs/openebs-target-failure/openebs_target_failure.chartserviceversion.basetemplate.yaml b/charts/openebs/openebs-target-failure/openebs_target_failure.chartserviceversion.basetemplate.yaml index 3e64bd2..1c5e739 100644 --- a/charts/openebs/openebs-target-failure/openebs_target_failure.chartserviceversion.basetemplate.yaml +++ b/charts/openebs/openebs-target-failure/openebs_target_failure.chartserviceversion.basetemplate.yaml @@ -2,20 +2,20 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: name: openebs-target-failure + version: {{ VERSION }} annotations: - categories: "OpenEBS" - vendor: "CNCF" + categories: OpenEBS + vendor: CNCF repository: https://github.com/litmuschaos/chaos-charts support: https://slack.openebs.io/ spec: - displayName: Openebs-Target-Failure + displayName: openebs-target-failure description: > Kill the cstor target/Jiva controller container and check if gets created again keywords: - Kubernetes - Storage Controller - OpenEBS - version: {{ VERSION }} maturity: alpha maintainers: - name: shubham chaudhary diff --git a/charts/openebs/openebs-target-failure/openebs_target_failure.chartserviceversion.yaml b/charts/openebs/openebs-target-failure/openebs_target_failure.chartserviceversion.yaml new file mode 100644 index 0000000..b92f16c --- /dev/null +++ b/charts/openebs/openebs-target-failure/openebs_target_failure.chartserviceversion.yaml @@ -0,0 +1,34 @@ +apiVersion: litmuchaos.io/v1alpha1 +kind: ChartServiceVersion +metadata: + name: openebs-target-failure + version: 0.1.0 + annotations: + categories: OpenEBS + vendor: CNCF + repository: https://github.com/litmuschaos/chaos-charts + support: https://slack.openebs.io/ +spec: + displayName: openebs-target-failure + description: > + Kill the cstor target/Jiva controller container and check if gets created again + keywords: + - Kubernetes + - Storage Controller + - OpenEBS + maturity: alpha + maintainers: + - name: shubham chaudhary + email: shubham.chaudhary@mayadata.io + minKubeVersion: 1.12.0 + provider: + name: Mayadata + readme: "https://github.com/mayadata-io/litmus/blob/master/experiments/chaos/openebs_target_failure/README.md" + links: + - name: OpenEBS Website + url: https://openebs.io + - name: Source Code + url: https://github.com/openebs/openebs + icon: + - url: "" + mediatype: "" diff --git a/charts/openebs/openebs-target-network-delay/experiment.basetemplate.yaml b/charts/openebs/openebs-target-network-delay/experiment.basetemplate.yaml new file mode 100644 index 0000000..1f3a28b --- /dev/null +++ b/charts/openebs/openebs-target-network-delay/experiment.basetemplate.yaml @@ -0,0 +1,31 @@ +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Network delay to target pod belonging to a deployment/statefulset/daemonset +kind: ChaosExperiment +metadata: + labels: + litmuschaos.io/name: openebs + name: openebs-target-network-delay + version: {{ VERSION }} +spec: + definition: + image: "openebs/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/chaos/experiments/chaos/openebs_target_network_delay/test.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: "default" + - name: OPERATOR_NAMESPACE + value: "openebs" + - name: NETWORK_DELAY + value: "60" # in milliseconds (Mandatory) + - name: CHAOS_DURATION + value: "60" # in milliseconds (Mandatory) + - name: DATA_PERSISTENCY + value: "" + labels: + name: openebs-target-network-delay \ No newline at end of file diff --git a/charts/openebs/openebs-target-network-delay/experiment.yaml b/charts/openebs/openebs-target-network-delay/experiment.yaml new file mode 100644 index 0000000..acf1c53 --- /dev/null +++ b/charts/openebs/openebs-target-network-delay/experiment.yaml @@ -0,0 +1,31 @@ +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Network delay to target pod belonging to a deployment/statefulset/daemonset +kind: ChaosExperiment +metadata: + labels: + litmuschaos.io/name: openebs + name: openebs-target-network-delay + version: 0.1.0 +spec: + definition: + image: "openebs/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/chaos/experiments/chaos/openebs_target_network_delay/test.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: "default" + - name: OPERATOR_NAMESPACE + value: "openebs" + - name: NETWORK_DELAY + value: "60" # in milliseconds (Mandatory) + - name: CHAOS_DURATION + value: "60" # in milliseconds (Mandatory) + - name: DATA_PERSISTENCY + value: "" + labels: + name: openebs-target-network-delay \ No newline at end of file diff --git a/charts/openebs/pod_delete/pod_delete.chartserviceversion.basetemplate.yaml b/charts/openebs/openebs-target-network-delay/openebs_target_network_delay.chartserviceversion.basetemplate.yaml similarity index 52% rename from charts/openebs/pod_delete/pod_delete.chartserviceversion.basetemplate.yaml rename to charts/openebs/openebs-target-network-delay/openebs_target_network_delay.chartserviceversion.basetemplate.yaml index d84afc7..5934463 100644 --- a/charts/openebs/pod_delete/pod_delete.chartserviceversion.basetemplate.yaml +++ b/charts/openebs/openebs-target-network-delay/openebs_target_network_delay.chartserviceversion.basetemplate.yaml @@ -1,27 +1,25 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: - name: pod-delete - annotations: - categories: "OpenEBS" - vendor: "CNCF" - createdAt: 2019-08-12T10:28:08Z - repository: https://github.com/litmuschaos/community-charts - support: https://slack.openebs.io/ -spec: - displayName: Pod-Delete - description: > - Pod delete contains chaos to disrupt state of openebs control-plane and data-plane resources. Experiments can inject random pod delete against specified openebs replicas. - - keywords: - - Kubernetes - - Pod - - OpenEBS + name: openebs-target-network-delay version: {{ VERSION }} + annotations: + categories: Kubernetes + vendor: CNCF + repository: https://github.com/litmuschaos/community-charts + support: https://slack.kubernetes.io/ +spec: + displayName: openebs_target_network_delay + description: > + Network delay to Pod belonging to a OpenEBS PVC + keywords: + - OpenEBS + - Kubernetes + - Network Delay maturity: alpha maintainers: - - name: ksatchit - email: karthik.s@mayadata.io + - name: giri + email: giridhara.prasad@mayadata.io minKubeVersion: 1.12.0 provider: name: Mayadata @@ -31,5 +29,6 @@ spec: - name: Source Code url: https://github.com/openebs/openebs icon: - - url: "" + - url: mediatype: "" + chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-target-network-delay/experiment.yaml diff --git a/charts/openebs/openebs-target-network-delay/openebs_target_network_delay.chartserviceversion.yaml b/charts/openebs/openebs-target-network-delay/openebs_target_network_delay.chartserviceversion.yaml new file mode 100644 index 0000000..ffdf96c --- /dev/null +++ b/charts/openebs/openebs-target-network-delay/openebs_target_network_delay.chartserviceversion.yaml @@ -0,0 +1,34 @@ +apiVersion: litmuchaos.io/v1alpha1 +kind: ChartServiceVersion +metadata: + name: openebs-target-network-delay + version: 0.1.0 + annotations: + categories: Kubernetes + vendor: CNCF + repository: https://github.com/litmuschaos/community-charts + support: https://slack.kubernetes.io/ +spec: + displayName: openebs_target_network_delay + description: > + Network delay to Pod belonging to a OpenEBS PVC + keywords: + - OpenEBS + - Kubernetes + - Network Delay + maturity: alpha + maintainers: + - name: giri + email: giridhara.prasad@mayadata.io + minKubeVersion: 1.12.0 + provider: + name: Mayadata + links: + - name: OpenEBS Website + url: https://openebs.io + - name: Source Code + url: https://github.com/openebs/openebs + icon: + - url: + mediatype: "" + chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-target-network-delay/experiment.yaml diff --git a/charts/openebs/openebs-target-network-loss/experiment.basetemplate.yaml b/charts/openebs/openebs-target-network-loss/experiment.basetemplate.yaml new file mode 100644 index 0000000..59b5db0 --- /dev/null +++ b/charts/openebs/openebs-target-network-loss/experiment.basetemplate.yaml @@ -0,0 +1,31 @@ +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Network loss to target pod belonging to a OpenEBS PVC +kind: ChaosExperiment +metadata: + labels: + litmuschaos.io/name: openebs + name: openebs-target-network-loss + version: {{ VERSION }} +spec: + definition: + image: "openebs/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/chaos/experiments/chaos/openebs_target_network_loss/test.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: "default" + - name: OPERATOR_NAMESPACE + value: "openebs" + - name: NETWORK_DELAY + value: "60" # in milliseconds (Mandatory) + - name: CHAOS_DURATION + value: "60" # in milliseconds (Mandatory) + - name: DATA_PERSISTENCY + value: "" + labels: + name: openebs-target-network-loss \ No newline at end of file diff --git a/charts/openebs/openebs-target-network-loss/experiment.yaml b/charts/openebs/openebs-target-network-loss/experiment.yaml new file mode 100644 index 0000000..3d70df5 --- /dev/null +++ b/charts/openebs/openebs-target-network-loss/experiment.yaml @@ -0,0 +1,31 @@ +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Network loss to target pod belonging to a OpenEBS PVC +kind: ChaosExperiment +metadata: + labels: + litmuschaos.io/name: openebs + name: openebs-target-network-loss + version: 0.1.0 +spec: + definition: + image: "openebs/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/chaos/experiments/chaos/openebs_target_network_loss/test.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: "default" + - name: OPERATOR_NAMESPACE + value: "openebs" + - name: NETWORK_DELAY + value: "60" # in milliseconds (Mandatory) + - name: CHAOS_DURATION + value: "60" # in milliseconds (Mandatory) + - name: DATA_PERSISTENCY + value: "" + labels: + name: openebs-target-network-loss \ No newline at end of file diff --git a/charts/openebs/openebs-target-network-loss/openebs_target_network_loss.chartserviceversion.basetemplate.yaml b/charts/openebs/openebs-target-network-loss/openebs_target_network_loss.chartserviceversion.basetemplate.yaml new file mode 100644 index 0000000..b7aab0f --- /dev/null +++ b/charts/openebs/openebs-target-network-loss/openebs_target_network_loss.chartserviceversion.basetemplate.yaml @@ -0,0 +1,34 @@ +apiVersion: litmuchaos.io/v1alpha1 +kind: ChartServiceVersion +metadata: + name: openebs-target-network-loss + version: {{ VERSION }} + annotations: + categories: Kubernetes + vendor: CNCF + repository: https://github.com/litmuschaos/chaos-charts + support: https://slack.kubernetes.io/ +spec: + displayName: openebs-target-network-loss + description: > + Network loss to the target pod belonging to an OpenEBS PVC + keywords: + - Kubernetes + - OpenEBS + - Network Loss + maturity: alpha + maintainers: + - name: giri + email: giridhara.prasad@mayadata.io + minKubeVersion: 1.12.0 + provider: + name: Mayadata + links: + - name: Kubernetes Website + url: https://openebs.io + - name: Source Code + url: https://github.com/openebes/openebs + icon: + - url: "" + mediatype: "" + chaosexpcrdlink: "https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-target-network-loss/experiment.yaml" diff --git a/charts/openebs/openebs-target-network-loss/openebs_target_network_loss.chartserviceversion.yaml b/charts/openebs/openebs-target-network-loss/openebs_target_network_loss.chartserviceversion.yaml new file mode 100644 index 0000000..06e6ba2 --- /dev/null +++ b/charts/openebs/openebs-target-network-loss/openebs_target_network_loss.chartserviceversion.yaml @@ -0,0 +1,34 @@ +apiVersion: litmuchaos.io/v1alpha1 +kind: ChartServiceVersion +metadata: + name: openebs-target-network-loss + version: 0.1.0 + annotations: + categories: Kubernetes + vendor: CNCF + repository: https://github.com/litmuschaos/chaos-charts + support: https://slack.kubernetes.io/ +spec: + displayName: openebs-target-network-loss + description: > + Network loss to the target pod belonging to an OpenEBS PVC + keywords: + - Kubernetes + - OpenEBS + - Network Loss + maturity: alpha + maintainers: + - name: giri + email: giridhara.prasad@mayadata.io + minKubeVersion: 1.12.0 + provider: + name: Mayadata + links: + - name: Kubernetes Website + url: https://openebs.io + - name: Source Code + url: https://github.com/openebes/openebs + icon: + - url: "" + mediatype: "" + chaosexpcrdlink: "https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-target-network-loss/experiment.yaml" diff --git a/charts/openebs/openebs.chartserviceversion.basetemplate.yaml b/charts/openebs/openebs.chartserviceversion.basetemplate.yaml index 317dc53..93578a2 100644 --- a/charts/openebs/openebs.chartserviceversion.basetemplate.yaml +++ b/charts/openebs/openebs.chartserviceversion.basetemplate.yaml @@ -2,11 +2,11 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: name: openebs + version: {{ VERSION }} annotations: - categories: "OpenEBS" - vendor: "MayaData" - createdAt: 2019-08-12T10:28:08Z - repository: https://github.com/litmuschaos/community-charts + categories: OpenEBS + vendor: MayaData + repository: https://github.com/litmuschaos/chaos-charts support: https://slack.openebs.io/ description: Injects generic openebs chaos spec: @@ -15,13 +15,14 @@ spec: OpenEBS is the most active Container Attached Storage project. OpenEBS enables your DevOps teams to have their own storage policies for every workload and it is truly Kubernetes native and 100% in userspace. experiments: - - Pod-delete - + - openebs-pool-failure + - openebs-target-failure + - openebs-target-network-delay + - openebs-target-network-loss keywords: - OpenEBS - CAS - Storage - version: {{ VERSION }} maturity: alpha maintainers: - name: ksatchit @@ -37,4 +38,4 @@ spec: icon: - url: mediatype: image/png - chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/community-charts/master/charts/openebs/experiments/openebs_all_exp_crd.yaml + chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/experiments.yaml diff --git a/charts/openebs/openebs.chartserviceversion.yaml b/charts/openebs/openebs.chartserviceversion.yaml index 5b4b2fa..8ef8577 100644 --- a/charts/openebs/openebs.chartserviceversion.yaml +++ b/charts/openebs/openebs.chartserviceversion.yaml @@ -1,12 +1,12 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: - name: openebs-v0.1.0 + name: openebs + version: 0.1.0 annotations: - categories: "OpenEBS" - vendor: "MayaData" - createdAt: 2019-08-12T10:28:08Z - repository: https://github.com/litmuschaos/community-charts + categories: OpenEBS + vendor: MayaData + repository: https://github.com/litmuschaos/chaos-charts support: https://slack.openebs.io/ description: Injects generic openebs chaos spec: @@ -15,13 +15,14 @@ spec: OpenEBS is the most active Container Attached Storage project. OpenEBS enables your DevOps teams to have their own storage policies for every workload and it is truly Kubernetes native and 100% in userspace. experiments: - - Pod-delete - + - openebs-pool-failure + - openebs-target-failure + - openebs-target-network-delay + - openebs-target-network-loss keywords: - OpenEBS - CAS - Storage - version: 0.1.0 maturity: alpha maintainers: - name: ksatchit @@ -37,4 +38,4 @@ spec: icon: - url: mediatype: image/png - chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/community-charts/master/charts/openebs/experiments/openebs_all_exp_crd.yaml + chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/experiments.yaml diff --git a/charts/openebs/openebs.package.yaml b/charts/openebs/openebs.package.yaml index d29bb3a..759868a 100644 --- a/charts/openebs/openebs.package.yaml +++ b/charts/openebs/openebs.package.yaml @@ -1,5 +1,14 @@ packageName: openebs subcharts: - - name: Pod-delete - CSV: pod_delete.chartserviceversion.yaml - desc: "Pod-delete" + - name: openebs-pool-failure + CSV: openebs_pool_failure.chartserviceversion.yaml + desc: "openebs-pool-failure" + - name: openebs-target-failure + CSV: openebs_target_failure.chartserviceversion.yaml + desc: "openebs-target-failure" + - name: openebs-target-network-delay + CSV: openebs_target_network_delay.chartserviceversion.yaml + desc: "openebs-target-network-delay" + - name: openebs-target-network-loss + CSV: openebs_target-network-loss.chartserviceversion.yaml + desc: "openebs-target-network-loss" diff --git a/charts/openebs/pod_delete/experiment.basetemplate.yaml b/charts/openebs/pod_delete/experiment.basetemplate.yaml deleted file mode 100644 index 58568dd..0000000 --- a/charts/openebs/pod_delete/experiment.basetemplate.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: litmuschaos.io/v1alpha1 -description: - message: | - Deletes a pod belonging to a deployment/statefulset/daemonset -kind: ChaosExperiment -metadata: - name: kubernetes-state-pod-delete - version: {{ VERSION }} -spec: - definition: - args: - - -c - - ansible-playbook ./experiments/chaos/kubernetes/pod_delete/test.yml -i /etc/ansible/hosts - -vv; exit 0 - command: - - /bin/bash - env: - - name: ANSIBLE_STDOUT_CALLBACK - value: default - - name: TOTAL_CHAOS_DURATION - value: 15 - - name: CHAOS_INTERVAL - value: 5 - - name: LIB - value: "" - image: "" - labels: - name: pod-delete - litmusbook: /experiments/chaos/kubernetes/pod_delete/run_litmus_test.yml diff --git a/charts/openebs/pod_delete/experiment.yaml b/charts/openebs/pod_delete/experiment.yaml deleted file mode 100644 index 23257b3..0000000 --- a/charts/openebs/pod_delete/experiment.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: litmuschaos.io/v1alpha1 -description: - message: | - Deletes a pod belonging to a deployment/statefulset/daemonset -kind: ChaosExperiment -metadata: - name: kubernetes-state-pod-delete-v0.1.0 - version: 0.1.0 -spec: - definition: - args: - - -c - - ansible-playbook ./experiments/chaos/kubernetes/pod_delete/test.yml -i /etc/ansible/hosts - -vv; exit 0 - command: - - /bin/bash - env: - - name: ANSIBLE_STDOUT_CALLBACK - value: default - - name: TOTAL_CHAOS_DURATION - value: 15 - - name: CHAOS_INTERVAL - value: 5 - - name: LIB - value: "" - image: "" - labels: - name: pod-delete - litmusbook: /experiments/chaos/kubernetes/pod_delete/run_litmus_test.yml