Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(status): Checking status of annotated applications only, if annotationCheck is true #293

Merged
merged 2 commits into from
Feb 22, 2021

Conversation

ispeakc0de
Copy link
Member

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

  • If the annotationCheck is true, It will check the status of the annotated pod only in pre and post chaos checks.
  • If the annotationCheck is false. It will check the status of all the pods with matching labels

NOTE: Created a separate category for annotation to avoid the import cycle

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
@ispeakc0de
Copy link
Member Author

time="2021-02-20T17:59:31Z" level=info msg="Experiment Name: pod-delete"
time="2021-02-20T17:59:31Z" level=info msg="[PreReq]: Getting the ENV for the  experiment"
time="2021-02-20T17:59:31Z" level=info msg="[PreReq]: Updating the chaos result of pod-delete experiment (SOT)"
time="2021-02-20T17:59:31Z" level=info msg="The application information is as follows" Namespace=shubham Label="run=nginx" Ramp Time=0
time="2021-02-20T17:59:31Z" level=info msg="[Status]: Verify that the AUT (Application Under Test) is running (pre-chaos)"
time="2021-02-20T17:59:31Z" level=info msg="[Info]: chaos candidate of kind: deployment, name: nginx, namespace: shubham"
time="2021-02-20T17:59:31Z" level=info msg="[Status]: The Container status are as follows" container=nginx Pod=nginx-78cb94bbd5-tzdzg Readiness=true
time="2021-02-20T17:59:31Z" level=info msg="[Status]: The status of Pods are as follows" Pod=nginx-78cb94bbd5-tzdzg Status=Running
time="2021-02-20T17:59:31Z" level=info msg="[Info]: chaos candidate of kind: deployment, name: nginx1, namespace: shubham"
time="2021-02-20T17:59:31Z" level=info msg="[Status]: The Container status are as follows" Pod=nginx1-78cb94bbd5-sdtxm Readiness=true container=nginx
time="2021-02-20T17:59:31Z" level=info msg="[Status]: The status of Pods are as follows" Pod=nginx1-78cb94bbd5-sdtxm Status=Running
time="2021-02-20T17:59:33Z" level=info msg="[Info]: chaos candidate of kind: deployment, name: nginx, namespace: shubham"
time="2021-02-20T17:59:33Z" level=info msg="[Info]: chaos candidate of kind: deployment, name: nginx1, namespace: shubham"
time="2021-02-20T17:59:33Z" level=info msg="[Chaos]:Number of pods targeted: 2"
time="2021-02-20T17:59:33Z" level=info msg="Target pods list for chaos, [nginx1-78cb94bbd5-sdtxm nginx-78cb94bbd5-tzdzg]"
time="2021-02-20T17:59:33Z" level=info msg="[Info]: Killing the following pods" PodName=nginx1-78cb94bbd5-sdtxm
time="2021-02-20T17:59:33Z" level=info msg="[Info]: Killing the following pods" PodName=nginx-78cb94bbd5-tzdzg
time="2021-02-20T17:59:33Z" level=info msg="[Wait]: Wait for the chaos interval 10s"
time="2021-02-20T17:59:43Z" level=info msg="[Status]: Verification for the recreation of application pod"
time="2021-02-20T17:59:43Z" level=info msg="[Status]: Checking whether application containers are in ready state"
time="2021-02-20T17:59:43Z" level=info msg="[Status]: The Container status are as follows" container=nginx Pod=nginx-78cb94bbd5-clbcf Readiness=true
time="2021-02-20T17:59:43Z" level=info msg="[Status]: The Container status are as follows" Readiness=true container=nginx Pod=nginx1-78cb94bbd5-b5kt4
time="2021-02-20T17:59:45Z" level=info msg="[Status]: Checking whether application pods are in running state"
time="2021-02-20T17:59:45Z" level=info msg="[Status]: The status of Pods are as follows" Pod=nginx-78cb94bbd5-clbcf Status=Running
time="2021-02-20T17:59:45Z" level=info msg="[Status]: The status of Pods are as follows" Pod=nginx1-78cb94bbd5-b5kt4 Status=Running
time="2021-02-20T17:59:47Z" level=info msg="[Info]: chaos candidate of kind: deployment, name: nginx, namespace: shubham"
time="2021-02-20T17:59:47Z" level=info msg="[Info]: chaos candidate of kind: deployment, name: nginx1, namespace: shubham"
time="2021-02-20T17:59:47Z" level=info msg="[Chaos]:Number of pods targeted: 2"
time="2021-02-20T17:59:47Z" level=info msg="Target pods list for chaos, [nginx-78cb94bbd5-clbcf nginx1-78cb94bbd5-b5kt4]"
time="2021-02-20T17:59:47Z" level=info msg="[Info]: Killing the following pods" PodName=nginx-78cb94bbd5-clbcf
time="2021-02-20T17:59:47Z" level=info msg="[Info]: Killing the following pods" PodName=nginx1-78cb94bbd5-b5kt4
time="2021-02-20T17:59:47Z" level=info msg="[Wait]: Wait for the chaos interval 10s"
time="2021-02-20T17:59:57Z" level=info msg="[Status]: Verification for the recreation of application pod"
time="2021-02-20T17:59:57Z" level=info msg="[Status]: Checking whether application containers are in ready state"
time="2021-02-20T17:59:57Z" level=info msg="[Status]: The Container status are as follows" container=nginx Pod=nginx-78cb94bbd5-b6flm Readiness=true
time="2021-02-20T17:59:57Z" level=info msg="[Status]: The Container status are as follows" Readiness=true container=nginx Pod=nginx1-78cb94bbd5-7v9cv
time="2021-02-20T17:59:59Z" level=info msg="[Status]: Checking whether application pods are in running state"
time="2021-02-20T17:59:59Z" level=info msg="[Status]: The status of Pods are as follows" Pod=nginx-78cb94bbd5-b6flm Status=Running
time="2021-02-20T17:59:59Z" level=info msg="[Status]: The status of Pods are as follows" Pod=nginx1-78cb94bbd5-7v9cv Status=Running
time="2021-02-20T18:00:01Z" level=info msg="[Info]: chaos candidate of kind: deployment, name: nginx, namespace: shubham"
time="2021-02-20T18:00:01Z" level=info msg="[Info]: chaos candidate of kind: deployment, name: nginx1, namespace: shubham"
time="2021-02-20T18:00:01Z" level=info msg="[Chaos]:Number of pods targeted: 2"
time="2021-02-20T18:00:01Z" level=info msg="Target pods list for chaos, [nginx1-78cb94bbd5-7v9cv nginx-78cb94bbd5-b6flm]"
time="2021-02-20T18:00:01Z" level=info msg="[Info]: Killing the following pods" PodName=nginx1-78cb94bbd5-7v9cv
time="2021-02-20T18:00:01Z" level=info msg="[Info]: Killing the following pods" PodName=nginx-78cb94bbd5-b6flm
time="2021-02-20T18:00:01Z" level=info msg="[Wait]: Wait for the chaos interval 10s"
time="2021-02-20T18:00:11Z" level=info msg="[Status]: Verification for the recreation of application pod"
time="2021-02-20T18:00:11Z" level=info msg="[Status]: Checking whether application containers are in ready state"
time="2021-02-20T18:00:11Z" level=info msg="[Status]: The Container status are as follows" container=nginx Pod=nginx-78cb94bbd5-tmpj2 Readiness=true
time="2021-02-20T18:00:11Z" level=info msg="[Status]: The Container status are as follows" Pod=nginx1-78cb94bbd5-9wwz9 Readiness=true container=nginx
time="2021-02-20T18:00:13Z" level=info msg="[Status]: Checking whether application pods are in running state"
time="2021-02-20T18:00:13Z" level=info msg="[Status]: The status of Pods are as follows" Status=Running Pod=nginx-78cb94bbd5-tmpj2
time="2021-02-20T18:00:13Z" level=info msg="[Status]: The status of Pods are as follows" Pod=nginx1-78cb94bbd5-9wwz9 Status=Running
time="2021-02-20T18:00:15Z" level=info msg="[Chaos]: Time is up for experiment: pod-delete"
time="2021-02-20T18:00:15Z" level=info msg="[Completion]: pod-delete chaos is done"
time="2021-02-20T18:00:15Z" level=info msg="[Confirmation]: The application pod has been deleted successfully"
time="2021-02-20T18:00:15Z" level=info msg="[Status]: Verify that the AUT (Application Under Test) is running (post-chaos)"
time="2021-02-20T18:00:15Z" level=info msg="[Info]: chaos candidate of kind: deployment, name: nginx, namespace: shubham"
time="2021-02-20T18:00:15Z" level=info msg="[Status]: The Container status are as follows" container=nginx Pod=nginx-78cb94bbd5-tmpj2 Readiness=true
time="2021-02-20T18:00:15Z" level=info msg="[Status]: The status of Pods are as follows" Pod=nginx-78cb94bbd5-tmpj2 Status=Running
time="2021-02-20T18:00:15Z" level=info msg="[Info]: chaos candidate of kind: deployment, name: nginx1, namespace: shubham"
time="2021-02-20T18:00:15Z" level=info msg="[Status]: The Container status are as follows" Readiness=true container=nginx Pod=nginx1-78cb94bbd5-9wwz9
time="2021-02-20T18:00:15Z" level=info msg="[Status]: The status of Pods are as follows" Pod=nginx1-78cb94bbd5-9wwz9 Status=Running
time="2021-02-20T18:00:17Z" level=info msg="[The End]: Updating the chaos result of pod-delete experiment (EOT)"

@ksatchit ksatchit merged commit 2b384d7 into litmuschaos:master Feb 22, 2021
ispeakc0de added a commit to ispeakc0de/litmus-go that referenced this pull request Feb 24, 2021
…haos#293)

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
ksatchit pushed a commit that referenced this pull request Feb 24, 2021
* Fix docker buildx command in CI (#291)

Signed-off-by: udit <udit.gaurav@mayadata.io>

* chore(abort): updating termination grace period (#290)

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

* feat(imagePullSecrets): Passing imagePullSecrets into helper pod (#295)

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

* feat(probe): Adding onchaos mode in all experiments (#292)

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

* feat(status): Checking status of annotated applications only (#293)

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

* refactor(comparator): refactor the comparator and added oneof operator (#283)

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

* feat(abort): Adding chaos revert inside network-chaos (#297)

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

Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants