Skip to content

Commit

Permalink
[Cherry-Pick for 1.4.1] (#1535)
Browse files Browse the repository at this point in the history
* (chore)roadmap: update roadmap status (#1530)

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* update(helper-pod): Wait till the helper pod come into running state (#1533)

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>

Co-authored-by: Shubham Chaudhary <shubham.chaudhary@mayadata.io>
  • Loading branch information
Karthik Satchitanand and ispeakc0de committed Jun 3, 2020
1 parent af7ce00 commit 961c7fa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ This document captures only the high level roadmap items. For the detailed backl
- Documentation (user & developer guides, integration with other chaos tools)
- Gitlab e2e pipeline for chaos experiments
- Define community sync up schedule
- Integration with Argo project for Chaos workflows, support for scenario creation with experiments
- Support for scheduled (continuous/background) chaos

------

### In-Progress (Near-term)

- Off the shelf chaos-integrated grafana dashboards for OpenEBS, Kafka, Cassandra [#1280](https://github.com/litmuschaos/litmus/issues/1280)
- Support for scheduled (continuous/background) chaos with halt/resume [#1223](https://github.com/litmuschaos/litmus/issues/1223)
- Support for halt/resume capabilities with ChaosSchedule
- Support for OpenShift platform/resources [1406](https://github.com/litmuschaos/litmus/issues/1406)
- Support for complete chaos abort via pre-stop hooks [#1284](https://github.com/litmuschaos/litmus/issues/1284)
- Go, Python SDK for Litmus Experiments [1466](https://github.com/litmuschaos/litmus/issues/1466) [#1259](https://github.com/litmuschaos/litmus/issues/1259)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
set_fact: chaosCurrentTimeStamp="{{lookup('pipe','date \"+%Y-%m-%d %H:%M:%S\"')}}"

# chaosDiffTimeStamp contains the difference of current timestamp and start timestamp
# it will helpful to track the run duration of healper pod
# it will helpful to track the run duration of helper pod
- set_fact:
chaosDiffTimeStamp: "{{ ((chaosCurrentTimeStamp | to_datetime) - (chaosStartTimeStamp | to_datetime)).total_seconds() }}"

Expand Down
10 changes: 9 additions & 1 deletion chaoslib/litmus/pod_delete/pod_failure_by_litmus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@
executable: /bin/bash
register: helper_pod

- name: "[Status]: Checking the running status of the helper pod"
shell: >
kubectl get pods -l name=pod-delete-{{ run_id }} -n {{ c_ns }} -o custom-columns=:.status.phase --no-headers
register: pod_result
until: "((pod_result.stdout.split()|unique)|length) == 1 and 'Running' in pod_result.stdout"
delay: 2
retries: 90

- name: "[Status]: Checking whether helper pods is in completed state"
shell: kubectl get pods -n {{ c_ns }} -l name=pod-delete-{{ run_id }} -o custom-columns=:.status.phase --no-headers
register: result
Expand All @@ -72,7 +80,7 @@
set_fact: chaosCurrentTimeStamp="{{lookup('pipe','date \"+%Y-%m-%d %H:%M:%S\"')}}"

# chaosDiffTimeStamp contains the difference of current timestamp and start timestamp
# it will helpful to track the run duration of healper pod
# it will helpful to track the run duration of helper pod
- set_fact:
chaosDiffTimeStamp: "{{ ((chaosCurrentTimeStamp | to_datetime) - (chaosStartTimeStamp | to_datetime)).total_seconds() }}"

Expand Down

0 comments on commit 961c7fa

Please sign in to comment.