From c0a1823b54cd0c87f291b3df931f33a5b24ceabc Mon Sep 17 00:00:00 2001 From: Shubham Chaudhary Date: Sun, 15 Mar 2020 15:58:35 +0530 Subject: [PATCH 1/9] refactor(events): Adding lastTimestamp in the event generation (#1324) Signed-off-by: shubhamchaudhary --- utils/common/generate-kubernetes-chaos-events.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/common/generate-kubernetes-chaos-events.yml b/utils/common/generate-kubernetes-chaos-events.yml index c7d41402373..fb8ef959a5f 100644 --- a/utils/common/generate-kubernetes-chaos-events.yml +++ b/utils/common/generate-kubernetes-chaos-events.yml @@ -24,6 +24,7 @@ type: Normal count: 1 firstTimestamp: "{{ ts }}" + lastTimestamp: "{{ ts }}" involvedObject: apiVersion: litmuschaos.io/v1alpha1 kind: ChaosEngine From f853f44e1d164ec2dddd9ce7feb0520b77fcc2e3 Mon Sep 17 00:00:00 2001 From: Shubham Chaudhary Date: Sun, 15 Mar 2020 16:35:43 +0530 Subject: [PATCH 2/9] feat(platform): Adding EKS platform in generic experiments (#1325) Signed-off-by: shubhamchaudhary --- experiments/generic/node_cpu_hog/chaosutil.j2 | 2 +- experiments/generic/node_cpu_hog/node_cpu_hog_k8s_job.yml | 3 ++- experiments/generic/node_memory_hog/chaosutil.j2 | 2 +- .../generic/node_memory_hog/node_memory_hog_k8s_job.yml | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/experiments/generic/node_cpu_hog/chaosutil.j2 b/experiments/generic/node_cpu_hog/chaosutil.j2 index ae81f2ab757..ea0f793f58a 100644 --- a/experiments/generic/node_cpu_hog/chaosutil.j2 +++ b/experiments/generic/node_cpu_hog/chaosutil.j2 @@ -1,3 +1,3 @@ -{% if a_platform is defined and a_platform == 'GKE' %} +{% if a_platform is defined and a_platform == 'GKE' or a_platform == 'EKS' %} c_util: /chaoslib/litmus/platform/gke/node_cpu_consumption.yml {% endif %} \ No newline at end of file diff --git a/experiments/generic/node_cpu_hog/node_cpu_hog_k8s_job.yml b/experiments/generic/node_cpu_hog/node_cpu_hog_k8s_job.yml index 63007513e97..d4ffeb41186 100644 --- a/experiments/generic/node_cpu_hog/node_cpu_hog_k8s_job.yml +++ b/experiments/generic/node_cpu_hog/node_cpu_hog_k8s_job.yml @@ -32,7 +32,8 @@ spec: - name: APP_KIND value: '' - ## PLATFORM SUPPORTED + ## It supports GKE and EKS platform + ## GKE is the default Platform - name: PLATFORM value: 'GKE' diff --git a/experiments/generic/node_memory_hog/chaosutil.j2 b/experiments/generic/node_memory_hog/chaosutil.j2 index 0f245b0dba0..6b13ff2de4e 100644 --- a/experiments/generic/node_memory_hog/chaosutil.j2 +++ b/experiments/generic/node_memory_hog/chaosutil.j2 @@ -1,3 +1,3 @@ -{% if a_platform is defined and a_platform == 'GKE' %} +{% if a_platform is defined and a_platform == 'GKE' or a_platform == 'EKS' %} c_util: /chaoslib/litmus/platform/gke/node_memory_consumption.yml {% endif %} \ No newline at end of file diff --git a/experiments/generic/node_memory_hog/node_memory_hog_k8s_job.yml b/experiments/generic/node_memory_hog/node_memory_hog_k8s_job.yml index 9c47b7b190d..ff97214ee3a 100644 --- a/experiments/generic/node_memory_hog/node_memory_hog_k8s_job.yml +++ b/experiments/generic/node_memory_hog/node_memory_hog_k8s_job.yml @@ -32,7 +32,8 @@ spec: - name: APP_KIND value: '' - ## PLATFORM SUPPORTED + ## It supports GKE and EKS platform + ## GKE is the default Platform - name: PLATFORM value: 'GKE' From 949a8944b81000bf7f54e80b0016251a5131e55d Mon Sep 17 00:00:00 2001 From: Karthik Satchitanand Date: Mon, 16 Mar 2020 11:41:27 +0530 Subject: [PATCH 3/9] (chore)release_guidelines: update release versions (#1327) Signed-off-by: ksatchit --- RELEASE_GUIDELINES.md | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/RELEASE_GUIDELINES.md b/RELEASE_GUIDELINES.md index 76bc7606ab3..269717db6a0 100644 --- a/RELEASE_GUIDELINES.md +++ b/RELEASE_GUIDELINES.md @@ -31,28 +31,18 @@ - Pre Release Version (Development) - - - + + +
0.8.0-RC-1DocumentationRelease Notes1.2.1TBDTBD
- Current version (Stable) - + - - -
0.7.01.2.0 DocumentationRelease Notes
- - - Past Versions - Here you can find previous versions of the documentation. - - - - - +
0.6.0DocumentationRelease NotesRelease Notes
From 838f5ea0d62df27e8e495f78e3472b25936bc828 Mon Sep 17 00:00:00 2001 From: Chandan Kumar Date: Mon, 16 Mar 2020 14:25:10 +0530 Subject: [PATCH 4/9] (stale-bot): Add template for stale bot (#1234) * (stale-bot): Add template for stale bot Signed-off-by: chandan kumar --- .github/stale.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 00000000000..b17c18a877b --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,17 @@ +# Number of days of inactivity before an issue becomes stale +daysUntilStale: 60 +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 7 +# Issues with these labels will never be considered stale +exemptLabels: + - pinned + - security +# Label to use when marking an issue as stale +staleLabel: wontfix +# Comment to post when marking an issue as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. +# Comment to post when closing a stale issue. Set to `false` to disable +closeComment: true \ No newline at end of file From eda5e17221273dee6d5ee20cac300e997033c4fd Mon Sep 17 00:00:00 2001 From: Johnny Jacob Date: Mon, 16 Mar 2020 15:26:23 +0530 Subject: [PATCH 5/9] Adding myself into Limus's Adopters list. (#1331) --- ADOPTERS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ADOPTERS.md b/ADOPTERS.md index 015b3ecde51..247cc9f4f50 100644 --- a/ADOPTERS.md +++ b/ADOPTERS.md @@ -11,3 +11,4 @@ Please send PRs to add or remove organizations/users. | User | Applications/Workloads | Success Story | | :--- | :--- | :--- | | [Laura Henning](https://github.com/LaumiH) | reasearch on how to do chaos engineering in minikube demo clusters like [these](https://github.com/LaumiH/k8sstuff) | [my story](https://github.com/litmuschaos/litmus/tree/master/adopters/Laura_Henning_Research_Project.md) | +| [Johnny Jacob](https://github.com/johnnyjacob) | Testing deployment designs for resiliency | Coming Soon! | From 25dcfa978c6f1f86538270da5cc620d1038155ca Mon Sep 17 00:00:00 2001 From: Shubham Chaudhary Date: Mon, 16 Mar 2020 18:02:22 +0530 Subject: [PATCH 6/9] refactor(disk-loss-exp): Making the cloud_platform uniform to GKE (#1330) Signed-off-by: shubhamchaudhary --- experiments/generic/disk_loss/chaosutil.j2 | 2 +- experiments/generic/disk_loss/disk_loss_k8s_job.yml | 4 ++-- experiments/kafka/kafka-broker-disk-failure/chaosutil.j2 | 2 +- .../kafka-broker-disk-failure-k8s-job.yml | 3 ++- experiments/openebs/openebs-pool-disk-loss/chaosutil.j2 | 2 +- .../openebs-pool-disk-loss/openebs_pool_disk_loss_k8s_job.yml | 4 ++-- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/experiments/generic/disk_loss/chaosutil.j2 b/experiments/generic/disk_loss/chaosutil.j2 index 1ed0ab35b51..2efe7d3c2c0 100644 --- a/experiments/generic/disk_loss/chaosutil.j2 +++ b/experiments/generic/disk_loss/chaosutil.j2 @@ -1,6 +1,6 @@ # All code here is not indented because j2 is space sensitive # checks if cloud_platform is set or not -{% if cloud_platform is defined and cloud_platform == 'GCP' %} +{% if cloud_platform is defined and cloud_platform == 'GKE' %} c_util: /chaoslib/litmus/platform/gke/disk_loss.yml {% elif cloud_platform is defined and cloud_platform == 'AWS' %} c_util: /chaoslib/litmus/platform/aws/disk_loss.yml diff --git a/experiments/generic/disk_loss/disk_loss_k8s_job.yml b/experiments/generic/disk_loss/disk_loss_k8s_job.yml index 9b4cd0dd9c6..cc3e1a8b3cc 100644 --- a/experiments/generic/disk_loss/disk_loss_k8s_job.yml +++ b/experiments/generic/disk_loss/disk_loss_k8s_job.yml @@ -38,9 +38,9 @@ spec: fieldRef: fieldPath: metadata.namespace - # Only GCP is supported + # GKE and AWS supported - name: CLOUD_PLATFORM - value: '' + value: 'GKE' # Enter the time duration after the disk is dettached - name: TOTAL_CHAOS_DURATION diff --git a/experiments/kafka/kafka-broker-disk-failure/chaosutil.j2 b/experiments/kafka/kafka-broker-disk-failure/chaosutil.j2 index 9274d4db9c7..6b761069ef0 100644 --- a/experiments/kafka/kafka-broker-disk-failure/chaosutil.j2 +++ b/experiments/kafka/kafka-broker-disk-failure/chaosutil.j2 @@ -1,5 +1,5 @@ # checks if cloud_platform is set or not -{% if cloud_platform is defined and cloud_platform == 'GCP' %} +{% if cloud_platform is defined and cloud_platform == 'GKE' %} c_util: /chaoslib/litmus/platform/gke/disk_loss.yml {% elif cloud_platform is defined and cloud_platform == 'AWS' %} c_util: /chaoslib/litmus/platform/aws/disk_loss.yml diff --git a/experiments/kafka/kafka-broker-disk-failure/kafka-broker-disk-failure-k8s-job.yml b/experiments/kafka/kafka-broker-disk-failure/kafka-broker-disk-failure-k8s-job.yml index 27eaf27df6c..b9a537b3630 100644 --- a/experiments/kafka/kafka-broker-disk-failure/kafka-broker-disk-failure-k8s-job.yml +++ b/experiments/kafka/kafka-broker-disk-failure/kafka-broker-disk-failure-k8s-job.yml @@ -38,8 +38,9 @@ spec: - name: TOTAL_CHAOS_DURATION value: '30' + # GKE and AWS supported - name: CLOUD_PLATFORM - value: 'GCP' + value: 'GKE' - name: PROJECT_ID value: '' diff --git a/experiments/openebs/openebs-pool-disk-loss/chaosutil.j2 b/experiments/openebs/openebs-pool-disk-loss/chaosutil.j2 index 91f0463ef73..6c6a252fab0 100644 --- a/experiments/openebs/openebs-pool-disk-loss/chaosutil.j2 +++ b/experiments/openebs/openebs-pool-disk-loss/chaosutil.j2 @@ -1,7 +1,7 @@ # All code here is not indented because j2 {% if stg_prov is defined and stg_prov == 'openebs.io/provisioner-iscsi' %} {% if stg_engine is defined and stg_engine == 'cstor' or stg_engine == 'jiva' %} -{% if cloud_platform is defined and cloud_platform == 'GCP' %} +{% if cloud_platform is defined and cloud_platform == 'GKE' %} c_util: /chaoslib/litmus/platform/gke/disk_loss.yml {% elif cloud_platform is defined and cloud_platform == 'AWS' %} c_util: /chaoslib/litmus/platform/aws/disk_loss.yml diff --git a/experiments/openebs/openebs-pool-disk-loss/openebs_pool_disk_loss_k8s_job.yml b/experiments/openebs/openebs-pool-disk-loss/openebs_pool_disk_loss_k8s_job.yml index 0190b59f445..07f2b3525fb 100644 --- a/experiments/openebs/openebs-pool-disk-loss/openebs_pool_disk_loss_k8s_job.yml +++ b/experiments/openebs/openebs-pool-disk-loss/openebs_pool_disk_loss_k8s_job.yml @@ -35,9 +35,9 @@ spec: fieldRef: fieldPath: metadata.namespace - # Only GCP and AWS is supported + # GKE and AWS supported - name: CLOUD_PLATFORM - value: 'GCP' + value: 'GKE' # Enter the time duration in sec after the disk is dettached - name: TOTAL_CHAOS_DURATION From c64908421eb771aded45c531b81310b6b7383760 Mon Sep 17 00:00:00 2001 From: Shubham Chaudhary Date: Mon, 16 Mar 2020 18:03:51 +0530 Subject: [PATCH 7/9] fix(kafka-experiments): Adding engine_ns for events generation (#1328) Signed-off-by: shubhamchaudhary --- .../kafka-broker-disk-failure-ansible-logic.yml | 1 + .../kafka-broker-network-latency-ansible-logic.yml | 1 + .../kafka-broker-network-loss-ansible-logic.yml | 1 + .../kafka-broker-pod-failure-ansible-logic.yml | 1 + .../kafka-broker-pod-failure-k8s-job.yml | 4 ++-- 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/experiments/kafka/kafka-broker-disk-failure/kafka-broker-disk-failure-ansible-logic.yml b/experiments/kafka/kafka-broker-disk-failure/kafka-broker-disk-failure-ansible-logic.yml index 5edde8b1c90..871ffa6770b 100644 --- a/experiments/kafka/kafka-broker-disk-failure/kafka-broker-disk-failure-ansible-logic.yml +++ b/experiments/kafka/kafka-broker-disk-failure/kafka-broker-disk-failure-ansible-logic.yml @@ -27,6 +27,7 @@ c_engine: "{{ lookup('env','CHAOSENGINE') }}" chaos_pod_name: "{{ lookup('env','POD_NAME') }}" chaos_uid: "{{ lookup('env','CHAOS_UID') }}" + a_ns: "{{ lookup('env','KAFKA_NAMESPACE') }}" tasks: - block: diff --git a/experiments/kafka/kafka-broker-network-latency/kafka-broker-network-latency-ansible-logic.yml b/experiments/kafka/kafka-broker-network-latency/kafka-broker-network-latency-ansible-logic.yml index 24e04650629..b39f1721e5d 100644 --- a/experiments/kafka/kafka-broker-network-latency/kafka-broker-network-latency-ansible-logic.yml +++ b/experiments/kafka/kafka-broker-network-latency/kafka-broker-network-latency-ansible-logic.yml @@ -28,6 +28,7 @@ chaos_uid: "{{ lookup('env','CHAOS_UID') }}" c_engine: "{{ lookup('env','CHAOSENGINE') }}" chaos_pod_name: "{{ lookup('env','POD_NAME') }}" + a_ns: "{{ lookup('env','KAFKA_NAMESPACE') }}" tasks: - block: diff --git a/experiments/kafka/kafka-broker-network-loss/kafka-broker-network-loss-ansible-logic.yml b/experiments/kafka/kafka-broker-network-loss/kafka-broker-network-loss-ansible-logic.yml index 209cb5cc68f..a0ac13f783b 100644 --- a/experiments/kafka/kafka-broker-network-loss/kafka-broker-network-loss-ansible-logic.yml +++ b/experiments/kafka/kafka-broker-network-loss/kafka-broker-network-loss-ansible-logic.yml @@ -28,6 +28,7 @@ chaos_uid: "{{ lookup('env','CHAOS_UID') }}" c_engine: "{{ lookup('env','CHAOSENGINE') }}" chaos_pod_name: "{{ lookup('env','POD_NAME') }}" + a_ns: "{{ lookup('env','KAFKA_NAMESPACE') }}" tasks: - block: diff --git a/experiments/kafka/kafka-broker-pod-failure/kafka-broker-pod-failure-ansible-logic.yml b/experiments/kafka/kafka-broker-pod-failure/kafka-broker-pod-failure-ansible-logic.yml index 1e25be9dedf..20028f067a3 100644 --- a/experiments/kafka/kafka-broker-pod-failure/kafka-broker-pod-failure-ansible-logic.yml +++ b/experiments/kafka/kafka-broker-pod-failure/kafka-broker-pod-failure-ansible-logic.yml @@ -29,6 +29,7 @@ chaos_uid: "{{ lookup('env','CHAOS_UID') }}" c_engine: "{{ lookup('env','CHAOSENGINE') }}" chaos_pod_name: "{{ lookup('env','POD_NAME') }}" + a_ns: "{{ lookup('env','KAFKA_NAMESPACE') }}" tasks: - block: diff --git a/experiments/kafka/kafka-broker-pod-failure/kafka-broker-pod-failure-k8s-job.yml b/experiments/kafka/kafka-broker-pod-failure/kafka-broker-pod-failure-k8s-job.yml index 33e76d0af69..cb188b1fdea 100644 --- a/experiments/kafka/kafka-broker-pod-failure/kafka-broker-pod-failure-k8s-job.yml +++ b/experiments/kafka/kafka-broker-pod-failure/kafka-broker-pod-failure-k8s-job.yml @@ -34,9 +34,9 @@ spec: - name: KAFKA_SASL_AUTH value: 'disabled' - # in milliseconds + # Recommended timeout for EKS platform: 60000 ms - name: KAFKA_CONSUMER_TIMEOUT - value: '30000' + value: '30000' # in milliseconds - name: TOTAL_CHAOS_DURATION value: '15' From b5c9b79ce49266bb92643c5420f277a41f4e4f49 Mon Sep 17 00:00:00 2001 From: Jayesh Kumar Date: Tue, 17 Mar 2020 03:20:49 +0530 Subject: [PATCH 8/9] Charting out my story of LitmusChaos journey Signed-off-by: Jayesh Kumar --- adopters/Jayesh_Kumar_CloudNative_Validation.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 adopters/Jayesh_Kumar_CloudNative_Validation.md diff --git a/adopters/Jayesh_Kumar_CloudNative_Validation.md b/adopters/Jayesh_Kumar_CloudNative_Validation.md new file mode 100644 index 00000000000..d0641932af6 --- /dev/null +++ b/adopters/Jayesh_Kumar_CloudNative_Validation.md @@ -0,0 +1,5 @@ +I started exploring the facinating world of Chaos Engineering while working on stitching together CloudNative Validation Suite. In persuit of finding the suitable candidate, I evaluated +couple of Chaos Engineering tool chains, both free as well commercial and finally settled on to LitmusChaos. I have my own reasons to do so, which includes super helpful developers and community supporting this project. +While evaluating LitmusChaos for my pipeline - I requested a new feature for Aborting the active experiment, which was accepted and is being actively worked on. +Another thing which sets LitmusChaos apart from many other players is it being fully CloudNative, ease of development in Ansible. ChaosHub is a central place for community to contribute their work and make it available for others. +In the past I have been contributing to Litmus-Docs project as maintainer and looking forward to contribute a couple of Chaos Experiments. Keeping my fingers crossed!! From 291d5e2212ba38594bb04e18df33cbbb3f00edcd Mon Sep 17 00:00:00 2001 From: Jayesh Kumar Date: Tue, 17 Mar 2020 03:30:56 +0530 Subject: [PATCH 9/9] As part of mystory of adoption, sending an update here Signed-off-by: Jayesh Kumar --- ADOPTERS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ADOPTERS.md b/ADOPTERS.md index 247cc9f4f50..a4d819c87b5 100644 --- a/ADOPTERS.md +++ b/ADOPTERS.md @@ -12,3 +12,4 @@ Please send PRs to add or remove organizations/users. | :--- | :--- | :--- | | [Laura Henning](https://github.com/LaumiH) | reasearch on how to do chaos engineering in minikube demo clusters like [these](https://github.com/LaumiH/k8sstuff) | [my story](https://github.com/litmuschaos/litmus/tree/master/adopters/Laura_Henning_Research_Project.md) | | [Johnny Jacob](https://github.com/johnnyjacob) | Testing deployment designs for resiliency | Coming Soon! | +| [Jayesh Kumar Tank](https://github.com/k8s-dev) | Create Cloud Native Validation Suite on [Demo Application](https://github.com/k8s-dev/microservices-demo)| [my story](https://github.com/litmuschaos/litmus/tree/master/adopters/Jayesh_Kumar_CloudNative_Validation.md)