This repository was archived by the owner on Apr 25, 2024. It is now read-only.
Chaos experiments are not failing #428
Closed
Description
Running the Chaos experiment on an EKS 1.9.x cluster shows the following output:
310-chaos-engineering $ chaos run experiments/experiment.json
[2018-04-24 18:34:38 INFO] Validating the experiment's syntax
[2018-04-24 18:34:39 INFO] Experiment looks valid
[2018-04-24 18:34:39 INFO] Running experiment: Terminating the greeting service should not impact users
[2018-04-24 18:34:39 INFO] Steady state hypothesis: Services are all available and healthy
[2018-04-24 18:34:39 INFO] Probe: application-should-be-alive-and-healthy
[2018-04-24 18:34:39 INFO] Probe: application-must-respond-normally
[2018-04-24 18:34:40 INFO] Steady state hypothesis is met!
[2018-04-24 18:34:40 INFO] Action: terminate-greeting-service
[2018-04-24 18:34:40 INFO] Probe: fetch-application-logs
[2018-04-24 18:34:41 INFO] Steady state hypothesis: Services are all available and healthy
[2018-04-24 18:34:41 INFO] Probe: application-should-be-alive-and-healthy
[2018-04-24 18:34:41 INFO] Probe: application-must-respond-normally
[2018-04-24 18:34:42 INFO] Steady state hypothesis is met!
[2018-04-24 18:34:42 INFO] Let's rollback...
[2018-04-24 18:34:42 INFO] No declared rollbacks, let's move on.
[2018-04-24 18:34:42 INFO] Experiment ended with status: completed
Here is the configuration:
Client Version: version.Info{Major:"1", Minor:"9+", GitVersion:"v1.9.2-eks.1", GitCommit:"e6c42d312ce5a80461ce10e6543e8fe0346bf065", GitTreeState:"clean", BuildDate:"2018-02-16T21:41:28Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"9+", GitVersion:"v1.9.2-eks.1", GitCommit:"e6c42d312ce5a80461ce10e6543e8fe0346bf065", GitTreeState:"clean", BuildDate:"2018-02-13T22:26:33Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
This shows that all the services are healthy which is not the expected output.
The behavior is correct on a kops-generated cluster. Here is the output:
310-chaos-engineering $ chaos run experiments/experiment.json
[2018-04-24 18:43:56 INFO] Validating the experiment's syntax
[2018-04-24 18:43:56 ERROR] Configuration makes reference to an environment key that does not exist: WEBAPP_URL
310-chaos-engineering $ export WEBAPP_URL="http://$(kubectl get svc/webapp-service -o jsonpath={.status.loadBalancer.ingress[0].hostname})/"
310-chaos-engineering $ chaos run experiments/experiment.json
[2018-04-24 18:44:40 INFO] Validating the experiment's syntax
[2018-04-24 18:44:40 INFO] Experiment looks valid
[2018-04-24 18:44:40 INFO] Running experiment: Terminating the greeting service should not impact users
[2018-04-24 18:44:40 INFO] Steady state hypothesis: Services are all available and healthy
[2018-04-24 18:44:40 INFO] Probe: application-should-be-alive-and-healthy
[2018-04-24 18:44:40 INFO] Probe: application-must-respond-normally
[2018-04-24 18:44:41 INFO] Steady state hypothesis is met!
[2018-04-24 18:44:41 INFO] Action: terminate-greeting-service
[2018-04-24 18:44:42 INFO] Probe: fetch-application-logs
[2018-04-24 18:44:42 INFO] Steady state hypothesis: Services are all available and healthy
[2018-04-24 18:44:42 INFO] Probe: application-should-be-alive-and-healthy
[2018-04-24 18:44:43 INFO] Probe: application-must-respond-normally
[2018-04-24 18:44:46 ERROR] => failed: activity took too long to complete
[2018-04-24 18:44:46 CRITICAL] Steady state probe 'application-must-respond-normally' is not in the given tolerance so failing this experiment
[2018-04-24 18:44:46 INFO] Let's rollback...
[2018-04-24 18:44:46 INFO] No declared rollbacks, let's move on.
[2018-04-24 18:44:46 INFO] Experiment ended with status: failed
Here is the configuration information:
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.6", GitCommit:"9f8ebd171479bec0ada837d7ee641dec2f8c6dd1", GitTreeState:"clean", BuildDate:"2018-03-21T20:49:26Z", GoVersion:"go1.9.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.7", GitCommit:"b30876a5539f09684ff9fde266fda10b37738c9c", GitTreeState:"clean", BuildDate:"2018-01-16T21:52:38Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
FYI @russmiles