(feat)charts: Add chaos experiments for OpenEBS network loss and delay (#19)

Refactor charts 

Signed-off-by: rajdas98 raj.das@mayadata.io
This commit is contained in:
Raj Babu Das
2019-10-04 22:24:45 +05:30
committed by Karthik Satchitanand
parent f4963b71ad
commit 78d2c68b67
38 changed files with 700 additions and 257 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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: |

View File

@@ -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: |

View File

@@ -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

View File

@@ -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

View File

@@ -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: |

View File

@@ -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: |

View File

@@ -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

View File

@@ -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: ""

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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