It contains experiment status provided at status.experimentStatus inside chaosresult. It contains following fields:
failStep: Flag to show the failure step of the ChaosExperiment
phase: Flag to show the current phase of the experiment
probesuccesspercentage: Flag to show the probe success percentage
verdict: Flag to show the verdict of the experiment
View the experiment status
Field
.status.experimentStatus.failstep
Description
Flag to show the failure step of the ChaosExperiment
Range
n/a(type: string)
Notes
The .status.experimentStatus.failstep Show the step at which the experiment failed. It helps in faster debugging of failures in the experiment execution.
Field
.status.experimentStatus.phase
Description
Flag to show the current phase of the experiment
Range
Awaited,Running,Completed,Aborted (type: string)
Notes
The .status.experimentStatus.phase shows the current phase in which the experiment is. It gets updated as the experiment proceeds.If the experiment is aborted then the status will be Aborted.
Field
.status.experimentStatus.probesuccesspercentage
Description
Flag to show the probe success percentage
Range
1 to 100 (type: int)
Notes
The .status.experimentStatus.probesuccesspercentage shows the probe success percentage which is a ratio of successful checks v/s total probes.
Field
.status.experimentStatus.verdict
Description
Flag to show the verdict of the experiment.
Range
Awaited,Pass,Fail,Stopped (type: string)
Notes
The .status.experimentStatus.verdict shows the verdict of the experiment. It is Awaited when the experiment is in progress and ends up with Pass or Fail according to the experiment result.
view the sample example:
Name:engine-nginx-pod-deleteNamespace:defaultLabels:app.kubernetes.io/component=experiment-jobapp.kubernetes.io/part-of=litmusapp.kubernetes.io/version=1.13.8chaosUID=aa0a0084-f20f-4294-a879-d6df9aba6f9bcontroller-uid=6943c955-0154-4542-8745-de991eb47c61job-name=pod-delete-w4p5opname=engine-nginx-pod-deleteAnnotations:<none>API Version:litmuschaos.io/v1alpha1Kind:ChaosResultMetadata:Creation Timestamp:2021-09-29T13:28:59ZGeneration:6Resource Version:66788Self Link:/apis/litmuschaos.io/v1alpha1/namespaces/default/chaosresults/engine-nginx-pod-deleteUID:fe7f01c8-8118-4761-8ff9-0a87824d863fSpec:Engine:engine-nginxExperiment:pod-deleteStatus:Experiment Status:# step on which experiment failsFail Step:N/A# phase of the chaos resultPhase:Completed# Success Percentage of the litmus probesProbe Success Percentage:100# Verdict of the chaos resultVerdict:PassHistory:Failed Runs:1Passed Runs:1Stopped Runs:0Targets:Chaos Status:targetedKind:deploymentName:helloEvents:<none>
It contains history of experiment runs present at status.history. It contains following fields:
passedRuns: It contains cumulative passed run count
failedRuns: It contains cumulative failed run count
stoppedRuns: It contains cumulative stopped run count
targets.name: It contains name of target application
target.kind: It contains kinds of target application
target.chaosStatus: It contains chaos status
View the history details
Field
.status.history.passedRuns
Description
It contains cumulative passed run count
Range
ANY NON NEGATIVE INTEGER
Notes
The .status.history.passedRuns contains cumulative passed run counts for a specific ChaosResult.
Field
.status.history.failedRuns
Description
It contains cumulative failed run count
Range
ANY NON NEGATIVE INTEGER
Notes
The .status.history.failedRuns contains cumulative failed run counts for a specific ChaosResult.
Field
.status.history.stoppedRuns
Description
It contains cumulative stopped run count
Range
ANY NON NEGATIVE INTEGER
Notes
The .status.history.stoppedRuns contains cumulative stopped run counts for a specific ChaosResult.
Field
.status.history.targets.name
Description
It contains name of the target application
Range
string
Notes
The .status.history.targets.name contains name of the target application
Field
.status.history.targets.kind
Description
It contains kind of the target application
Range
string
Notes
The .status.history.targets.kind contains kind of the target application
Field
.status.history.targets.chaosStatus
Description
It contains status of the chaos
Range
targeted, injected, reverted
Notes
The .status.history.targets.chaosStatus contains status of the chaos
view the sample example:
Name:engine-nginx-pod-deleteNamespace:defaultLabels:app.kubernetes.io/component=experiment-jobapp.kubernetes.io/part-of=litmusapp.kubernetes.io/version=1.13.8chaosUID=aa0a0084-f20f-4294-a879-d6df9aba6f9bcontroller-uid=6943c955-0154-4542-8745-de991eb47c61job-name=pod-delete-w4p5opname=engine-nginx-pod-deleteAnnotations:<none>API Version:litmuschaos.io/v1alpha1Kind:ChaosResultMetadata:Creation Timestamp:2021-09-29T13:28:59ZGeneration:6Resource Version:66788Self Link:/apis/litmuschaos.io/v1alpha1/namespaces/default/chaosresults/engine-nginx-pod-deleteUID:fe7f01c8-8118-4761-8ff9-0a87824d863fSpec:Engine:engine-nginxExperiment:pod-deleteStatus:Experiment Status:Fail Step:N/APhase:CompletedProbe Success Percentage:100Verdict:PassHistory:# fail experiment run countFailed Runs:1# passed experiment run countPassed Runs:1# stopped experiment run countStopped Runs:0Targets:# status of the chaosChaos Status:targeted# kind of the applicationKind:deployment# name of the applicationName:helloEvents:<none>