From 75e3eebc07f77fc8d4e66892a146a8fa95795a7e Mon Sep 17 00:00:00 2001 From: shubhamchaudhary Date: Tue, 1 Oct 2019 02:57:35 +0530 Subject: [PATCH 1/7] added openebs-target-failure CR Signed-off-by: shubhamchaudhary --- .../openebs-target-failure/experiment_cr.yml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 charts/openebs/openebs-target-failure/experiment_cr.yml diff --git a/charts/openebs/openebs-target-failure/experiment_cr.yml b/charts/openebs/openebs-target-failure/experiment_cr.yml new file mode 100644 index 0000000..2ada932 --- /dev/null +++ b/charts/openebs/openebs-target-failure/experiment_cr.yml @@ -0,0 +1,53 @@ +-- +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: kubernetes + name: openebs-target-failure + namespace: shubham +spec: + definition: + 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: APP_NAMESPACE + value: shubham + - name: APP_LABEL + value: "name=percona" + - name: APP_PVC + value: percona-mysql-claim + - name: LIVENESS_APP_LABEL + value: "" + - name: LIVENESS_APP_NAMESPACE + value: "" + - 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: + litmusbook: /experiments/chaos/openebs_target_failure/run_litmus_test.yml + + + + From 2214685503d41bf96c398425a17e637b4ae5039e Mon Sep 17 00:00:00 2001 From: shubhamchaudhary Date: Tue, 1 Oct 2019 03:03:40 +0530 Subject: [PATCH 2/7] added openebs-target-failure CR Signed-off-by: shubhamchaudhary --- charts/openebs/openebs-target-failure/experiment_cr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/openebs/openebs-target-failure/experiment_cr.yml b/charts/openebs/openebs-target-failure/experiment_cr.yml index 2ada932..a043531 100644 --- a/charts/openebs/openebs-target-failure/experiment_cr.yml +++ b/charts/openebs/openebs-target-failure/experiment_cr.yml @@ -8,7 +8,7 @@ metadata: labels: litmuschaos.io/name: kubernetes name: openebs-target-failure - namespace: shubham + namespace: litmus spec: definition: args: @@ -23,7 +23,7 @@ spec: - name: TARGET_NAMESPACE value: openebs - name: APP_NAMESPACE - value: shubham + value: app-percona-ns - name: APP_LABEL value: "name=percona" - name: APP_PVC From fe6d2fa8111e06f421cecd06814167de88425bb6 Mon Sep 17 00:00:00 2001 From: shubhamchaudhary Date: Tue, 1 Oct 2019 14:01:51 +0530 Subject: [PATCH 3/7] Added Openebs-Pool-Failure Experiment CR Signed-off-by: shubhamchaudhary --- .../openebs-pool-failure/experiment_cr.yml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 charts/openebs/openebs-pool-failure/experiment_cr.yml diff --git a/charts/openebs/openebs-pool-failure/experiment_cr.yml b/charts/openebs/openebs-pool-failure/experiment_cr.yml new file mode 100644 index 0000000..5110717 --- /dev/null +++ b/charts/openebs/openebs-pool-failure/experiment_cr.yml @@ -0,0 +1,46 @@ +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Kill the pool pod and check if gets scheduled again +kind: ChaosExperiment +metadata: + labels: + litmuschaos.io/name: kubernetes + name: openebs-pool-failure + namespace: litmus +spec: + definition: + 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: APP_NAMESPACE + value: app-percona-ns + - name: APP_LABEL + value: "name=percona" + - name: APP_PVC + value: percona-mysql-claim + - name: LIVENESS_APP_LABEL + value: "" + - name: LIVENESS_APP_NAMESPACE + value: "" + - 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: + litmusbook: /experiments/chaos/openebs_pool_failure/run_litmus_test.yml + From a8f85efc9c0ca72fd24c4ce66d3260a7f31f435c Mon Sep 17 00:00:00 2001 From: shubhamchaudhary Date: Thu, 3 Oct 2019 12:01:36 +0530 Subject: [PATCH 4/7] Add chart[Openebs]: openebs-target-failure Signed-off-by: shubhamchaudhary --- ...nt_cr.yml => experiment.basetemplate.yaml} | 1 + ...lure.chartserviceversion.basetemplate.yaml | 34 +++++++++++++++++++ 2 files changed, 35 insertions(+) rename charts/openebs/openebs-target-failure/{experiment_cr.yml => experiment.basetemplate.yaml} (98%) create mode 100644 charts/openebs/openebs-target-failure/openebs_target_failure.chartserviceversion.basetemplate.yaml diff --git a/charts/openebs/openebs-target-failure/experiment_cr.yml b/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml similarity index 98% rename from charts/openebs/openebs-target-failure/experiment_cr.yml rename to charts/openebs/openebs-target-failure/experiment.basetemplate.yaml index a043531..da5c71e 100644 --- a/charts/openebs/openebs-target-failure/experiment_cr.yml +++ b/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml @@ -9,6 +9,7 @@ metadata: litmuschaos.io/name: kubernetes name: openebs-target-failure namespace: litmus + version: {{ VERSION }} spec: definition: args: 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 new file mode 100644 index 0000000..bd28697 --- /dev/null +++ b/charts/openebs/openebs-target-failure/openebs_target_failure.chartserviceversion.basetemplate.yaml @@ -0,0 +1,34 @@ +apiVersion: litmuchaos.io/v1alpha1 +kind: ChartServiceVersion +metadata: + name: openebs-target-failure + annotations: + categories: "OpenEBS" + vendor: "CNCF" + createdAt: 2019-10-03T10:28:08Z + repository: https://github.com/litmuschaos/community-charts + support: https://slack.openebs.io/ +spec: + displayName: Openebs-Target-Failure + description: > + openebs target failure contains chaos to disrupt state of openebs control-plane and data-plane resources. Experiments can inject container kill against openebs target pod. + keywords: + - Kubernetes + - TargetPod + - OpenEBS + version: {{ VERSION }} + maturity: alpha + maintainers: + - name: shubham chaudhary + email: shubham.chaudhary@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: "" From 43e0493a9cfb9aea450b78a3ad768c55b429e684 Mon Sep 17 00:00:00 2001 From: shubhamchaudhary Date: Thu, 3 Oct 2019 12:07:22 +0530 Subject: [PATCH 5/7] Add chart[Openebs]: openebs-target-failure Signed-off-by: shubhamchaudhary --- .../openebs/openebs-target-failure/experiment.basetemplate.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml b/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml index da5c71e..dfbd1b3 100644 --- a/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml +++ b/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml @@ -6,7 +6,7 @@ description: kind: ChaosExperiment metadata: labels: - litmuschaos.io/name: kubernetes + litmuschaos.io/name: openebs name: openebs-target-failure namespace: litmus version: {{ VERSION }} From d05bb446deec8fc2e1b1fe007ae01df1a115dbeb Mon Sep 17 00:00:00 2001 From: shubhamchaudhary Date: Thu, 3 Oct 2019 12:12:42 +0530 Subject: [PATCH 6/7] Add chart[Openebs]: openebs-target-failure Signed-off-by: shubhamchaudhary --- .../openebs-pool-failure/experiment_cr.yml | 46 ------------------- .../experiment.basetemplate.yaml | 2 +- 2 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 charts/openebs/openebs-pool-failure/experiment_cr.yml diff --git a/charts/openebs/openebs-pool-failure/experiment_cr.yml b/charts/openebs/openebs-pool-failure/experiment_cr.yml deleted file mode 100644 index 5110717..0000000 --- a/charts/openebs/openebs-pool-failure/experiment_cr.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -apiVersion: litmuschaos.io/v1alpha1 -description: - message: | - Kill the pool pod and check if gets scheduled again -kind: ChaosExperiment -metadata: - labels: - litmuschaos.io/name: kubernetes - name: openebs-pool-failure - namespace: litmus -spec: - definition: - 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: APP_NAMESPACE - value: app-percona-ns - - name: APP_LABEL - value: "name=percona" - - name: APP_PVC - value: percona-mysql-claim - - name: LIVENESS_APP_LABEL - value: "" - - name: LIVENESS_APP_NAMESPACE - value: "" - - 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: - litmusbook: /experiments/chaos/openebs_pool_failure/run_litmus_test.yml - diff --git a/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml b/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml index dfbd1b3..15c0966 100644 --- a/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml +++ b/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml @@ -46,7 +46,7 @@ spec: configmaps: - name: target-failure data: - parameters.yml: + parameters.yml: | litmusbook: /experiments/chaos/openebs_target_failure/run_litmus_test.yml From 37f623f6a8bc2e1437b57eace786dfe32c6e1cd1 Mon Sep 17 00:00:00 2001 From: shubhamchaudhary Date: Thu, 3 Oct 2019 21:56:07 +0530 Subject: [PATCH 7/7] Added Openebs-Target-Failure Experiment CR Signed-off-by: shubhamchaudhary --- .../openebs-target-failure/experiment.basetemplate.yaml | 7 +++---- ...s_target_failure.chartserviceversion.basetemplate.yaml | 8 ++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml b/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml index 15c0966..7d6b643 100644 --- a/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml +++ b/charts/openebs/openebs-target-failure/experiment.basetemplate.yaml @@ -8,7 +8,6 @@ metadata: labels: litmuschaos.io/name: openebs name: openebs-target-failure - namespace: litmus version: {{ VERSION }} spec: definition: @@ -24,11 +23,11 @@ spec: - name: TARGET_NAMESPACE value: openebs - name: APP_NAMESPACE - value: app-percona-ns + value: "" - name: APP_LABEL - value: "name=percona" + value: "" - name: APP_PVC - value: percona-mysql-claim + value: #mendatory field - name: LIVENESS_APP_LABEL value: "" - name: LIVENESS_APP_NAMESPACE 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 bd28697..3e64bd2 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 @@ -5,16 +5,15 @@ metadata: annotations: categories: "OpenEBS" vendor: "CNCF" - createdAt: 2019-10-03T10:28:08Z - repository: https://github.com/litmuschaos/community-charts + repository: https://github.com/litmuschaos/chaos-charts support: https://slack.openebs.io/ spec: displayName: Openebs-Target-Failure description: > - openebs target failure contains chaos to disrupt state of openebs control-plane and data-plane resources. Experiments can inject container kill against openebs target pod. + Kill the cstor target/Jiva controller container and check if gets created again keywords: - Kubernetes - - TargetPod + - Storage Controller - OpenEBS version: {{ VERSION }} maturity: alpha @@ -24,6 +23,7 @@ spec: 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