Releases: litmuschaos/litmus-go
Releases · litmuschaos/litmus-go
2.0.0-RC1
[Cherry Pick for v2.0.0-RC1] (#419) * Chore(Azure): Update and Shift Azure instance stop chaos to master (#377) * Chore(new_exp): Add Azure instance terminate chaos (#296) * Chore(new_exp): Add Azure instance terminate chaos Signed-off-by: udit <udit.gaurav@mayadata.io> * Added support for multiple instance id in azure instance terminate| Added abortwatcher code for azure instance terminate experiment Signed-off-by: Akash Shrivastava <akash@chaosnative.com> * Fix minor filename issue Signed-off-by: Akash Shrivastava <akash@chaosnative.com> * Removed vendors Signed-off-by: Akash Shrivastava <akash@chaosnative.com> * Made changes as per suggestion in PR Signed-off-by: Akash Shrivastava <akash@chaosnative.com> * Changed instance status display logic to not use loop * Reverted experiment.go values to default Signed-off-by: Akash Shrivastava <akash@chaosnative.com> * Improved logs Signed-off-by: Akash Shrivastava <akash@chaosnative.com> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com> * GCP VM Instance Stop Experiment (#388) * Bootstrap project created; GCP compute engine library, context library and option library added * VM instance status methods and VM instance operation methods added * Defined types.go; removed default template code for chaoslib>litmus>vm-instance-stop>lib>vm-instance-stop.go and experiments>gcp>vm-instance-stop>experiment>vm-instance-stop.go * updated function parameter names and varaible names in vm-instance-status.go * vm-instance-stop experiment chaoslib methods PrepareGCPTerminateByName, injectChaosInSerialMode, injectChaosInParallelMode, and abortWatcher added * AuxiliaryAppInfo field added in types.go and correspondingly in environment.go * Modified function PrepareGCPTerminateByName identifier to PrepareVMTerminateByName * Modified function PrepareVMTerminateByName to PrepareVMStop * VMInstanceStop experiment added * Added VMInstanceStop experiment to the main function * engine.yaml, experiment.yaml, and rbac.yaml charts updated * Corrected mount path in experiment.yaml * Functionality for fetching secret files from Kubernetes secret volume for the purpose of auth added * Updated engine.yaml chart * Initialized default value for TOTAL_CHAOS_DURATION, CHAOS_INTERVAL, and RAMP_TIME in experiment.yaml * Updated function VMInstanceStop GetENV and corresponding logs; Updated GetServiceAccountJSONFromSecret to return proper credentials * removed default comments from experiment.go * corrected yaml syntax in experiment.yaml * renamed ChaosEngine name to gcp-vm-chaos in engine.yaml * updated expirement description message in experiment.yaml * Replaced logo for GCP and VM Instance Delete experiment * terminate replaced to stop in a log in vm-instance-stop.go * Updated comments in vm-instance-stop.go * Updated comments in vm-instance-stop.go * Updated comments in vm-instance-stop.go * Removed attributes.yaml * removed the charts directory * comment added to VMInstanceStop function in vm-instance-stop.go * AbortWatcherWithoutExit function call removed as it was called twice in vm-instance-stop.go * Event generation of Result as Awaited shifted after SetResultUID function call in vm-instance-stop.go * post chaos vm instance status log moved outside the loop * test.yml updated * VM_INSTANCE_NAME and INSTANCE_ZONE replaced with their plurals * removed ActiveNodes from types.go * ManagedNodegroup replaced by AutoScalingGroup * added getFileContent function to get-credentials-json.go; implemented marshalling for creating json byte slice credentials * Modified log statement in vm-instance-status.go * Signing the commit for vm-instance-stop experiment * renamed the experiment to gcp-vm-instance-stop * Replaced the revert chaos status * Replaced PreChaosNodeStatusCheck, PostChaosActiveNodeCountCheck, and getActiveNodeCount functions to nodes.go; updated the gcp-vm-instance-stop experiment for the same. * Replaced PreChaosNodeStatusCheck, PostChaosActiveNodeCountCheck, and getActiveNodeCount functions to nodes.go; updated the ec2-terminate-by-id and ec2-terminate-by-tag.go experiments for the same. * Implemented the WaitForDuration method for waiting through the chaos interval in serial and parallel mode * Replaced Sequence with Zone in experiment log * Updated error statement * Removed redundant chaos setTarget * error message updated * Updated ramp time and chaos interval default values in environment.go * Added default ramp time of 0 in environment.go * cleaned unused dependencies * removed unused go dependencies Co-authored-by: Shubham Chaudhary <shubham.chaudhary@mayadata.io> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com> * resolve conflict Signed-off-by: udit <udit@chaosnative.com> * Chore(Azure): Azure Instance Stop experiment (support for: virtual machine scale sets) (#403) * Added support for virtual machine scale sets (for aks nodes) Signed-off-by: Akash Shrivastava <akash@chaosnative.com> * update branch on litmus-go Signed-off-by: udit <udit@chaosnative.com> Co-authored-by: Akash Shrivastava <akash@chaosnative.com> Co-authored-by: Neelanjan Manna <neelanjanmanna@gmail.com> Co-authored-by: Shubham Chaudhary <shubham.chaudhary@mayadata.io>
1.13.8
Cherry-Pick for 1.13.8 (#402) * Chore(New_Exp): Add AWS SSM Chaos Experiment (#376) * Chore(New_Exp): Add aws ssm chaos experiment Signed-off-by: uditgaurav <udit@chaosnative.com> * Chore(New_Exp): Add AWS SSM Chaos Experiment Signed-off-by: udit <udit@chaosnative.com> * Add minor fix Signed-off-by: udit <udit@chaosnative.com> * update ENV name for cpu and default docs path Signed-off-by: udit <udit@chaosnative.com> * Chore(New_Exp): Add stress chaos experiments and split out the exec stress experiments (#368) * Rename pod-cpu-hog and pod-memory-hog experiment with pod-cpu-hog-exec and pod-memory-hog-exec respectively Signed-off-by: uditgaurav <udit@chaosnative.com> * Add stress chaos without execing into the target container Signed-off-by: uditgaurav <udit@chaosnative.com> * add helper logs Signed-off-by: uditgaurav <udit@chaosnative.com> * update the abort logic Signed-off-by: udit <udit@chaosnative.com> * refactor and update the code Signed-off-by: udit <udit@chaosnative.com> * update Dockerfile Signed-off-by: udit <udit@chaosnative.com> Co-authored-by: Shubham Chaudhary <shubham.chaudhary@mayadata.io> * Chore(stress-chaos): Remove extra previlages and update io stressors and timeout (#391) * Chore(stress-chaos): Remove extra privileges and update io stressors and timeout Signed-off-by: udit <udit@chaosnative.com> Co-authored-by: Shubham Chaudhary <shubham.chaudhary@mayadata.io> * Add option to change default container registry for image build (#390) * Add option to change default container registry during image build Signed-off-by: Jakub Stejskal <xstejs24@gmail.com> * fix(ec2): removing the duplicate function calls (#393) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * github actions(resolved conflicts) Signed-off-by: shubham chaudhary <shubham@chaosnative.com> * chore(nonchaos-pods): filter all the nonchaos-pods for target pod selection (#401) Signed-off-by: shubham chaudhary <shubham@chaosnative.com> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com> * fix(stress-chaos): fixing the stress chaos for abort cases and target details (#399) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com> Co-authored-by: Jakub Stejskal <stejskinek@gmail.com>
1.13.7
[Cherrypick for 1.13.7] (#392) * fix(log): fixed the comparator logs (#384) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * Fix: Populate total chaos duration to helper in dns experiments (#389) Signed-off-by: udit <udit@chaosnative.com> * feat(annotation): skipping parent resources listing, if annotationCheck is false (#387) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com>
1.13.6
[Cherrypick for 1.13.6] (#381) * chore(dns): adding spoofmap env in helper pod (#363) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * Fix sequence env in kafka broker pod experiment (#369) * Fix sequence env in kafka broker pod experiment Signed-off-by: uditgaurav <udit@chaosnative.com> * add pod affected percentage env Signed-off-by: uditgaurav <udit@chaosnative.com> * chore(contribution): Adding contribution guide, bch check, issue & PR templates (#367) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * fix: vendor/golang.org/x/net/http2/Dockerfile to reduce vulnerabilities (#361) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-UBUNTU1404-OPENSSL-1049144 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-1065770 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-406981 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-473059 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-546522 Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io> * fix: vendor/golang.org/x/net/http2/Dockerfile to reduce vulnerabilities (#364) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-UBUNTU1404-OPENSSL-1049144 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-1065770 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-406981 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-473059 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-546522 Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io> * chore(env): : updated the env setter function (#365) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * rm(vendor): removing the vendor directory from litmus-go (#366) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(image): reduce the go-runner image size (#371) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * Chore(e2e): Update e2e workflows and add more node level tests (#372) * Chore(e2e): Update e2e workflows and add more node level tests Signed-off-by: uditgaurav <udit@chaosnative.com> * add kind config Signed-off-by: uditgaurav <udit@chaosnative.com> * chore(probe): adding probe abort (#370) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(helper): Adding statusCheckTimeouts for the helper status check (#373) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(chaosresult): updating verdict and status in chaosengine and chaosresult (#375) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(sdk): updating sdk (#378) * chore(sdk): updating sdk Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(pod-delete): Adding target details inside chaosresult (#336) * chore(pod-delete): Adding target details inside chaosresult Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(pod-delete): Adding target details inside chaosresult for pod-autoscaler Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(experiment): Adding target details inside chaosresult for the experiments which contains helper pod (#342) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(experiment): Adding target details inside chaosresult for the experiments which doesn't contain helper pod (#341) * chore(experiment): Adding target details inside chaosresult for the experiments which doesn't contain helper pod Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(experiment): Adding target details inside chaosresult for the pumba helper Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * Added docker-service-kill experiment implementation in litmus-go. (#379) * Added docker-svc-kill implementation in litmus-go. Signed-off-by: Jonsy13 <vedant.shrotria@chaosnative.com> * Chore(Dockerfile): Update Dockerfile to take binaries from test-tool release build (#380) Signed-off-by: udit <udit@chaosnative.com> * chore(1.13.x): updating branch to 1.13.x in github actions Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com> Co-authored-by: Snyk bot <github+bot@snyk.io> Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io> Co-authored-by: VEDANT SHROTRIA <40681425+Jonsy13@users.noreply.github.com>
1.13.5
[Cherrypick for 1.13.5] (#362) * chore(helper): updating the helper pod status check (#355) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * Chore(EC2-checks): Update the ec2 terminate with tags experiment to target only running instances (#350) Signed-off-by: uditgaurav <udit@chaosnative.com> * rm(README): Removed the outdated readme (#358) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * Updated DNS chaos (#357) * added dns spoof chaos Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com> * Chore(New_exp): Add EBS Loss experiment using Tags (#354) * Chore(New_exp): Add EBS Loss experiment using Tags Signed-off-by: uditgaurav <udit@chaosnative.com> * Chore(abort): Add abort chaos support for kube-aws experiments (#347) * Chore(abort): Add abort chaos support for kube-aws experiments Signed-off-by: uditgaurav <udit@chaosnative.com> * Add abort signals Signed-off-by: uditgaurav <udit@chaosnative.com> * Update abort logic and also include WaitForDown before the actual recovery Signed-off-by: uditgaurav <udit@chaosnative.com> * Resolve conflict Signed-off-by: uditgaurav <udit@chaosnative.com> * Update ec2-terminate-by-id.go * Resolve Conflict Signed-off-by: uditgaurav <udit@chaosnative.com> * Resolve Conflict Signed-off-by: uditgaurav <udit@chaosnative.com> * Make common abort for ebs Signed-off-by: uditgaurav <udit@chaosnative.com> Co-authored-by: Shubham Chaudhary <shubham.chaudhary@mayadata.io> * refactor(chaoslibs): Refactored generic node experiments (#351) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * refactor(chaoslibs): Refactored pumba chaoslibs and utils (#352) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * refactor(chaoslibs): Refactored all the chaoslibs (#349) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * refactor(chaoslibs): Refactored aws & vmware experiments (#353) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * refactor(chaoslibs): Refactored aws & vmware experiments (#353) (#359) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com> Co-authored-by: Soumya Ghosh Dastidar <44349253+gdsoumya@users.noreply.github.com>
1.13.4
[ Cherrypick for 1.13.4] (#348) * chore(node-restart): updating the node-restart experiment (#335) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(disk-fill): Adding Block size as tunable in disk-fill (#344) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(exec): execing inside target pod only if it is in ready state (#343) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * Core(New_exp): Adding VMWare VMPowerOff Experiment (#346) * Core(New_exp): Adding VMWare VMPowerOff Experiment Signed-off-by: DelphineJoyneer <golkonda.joyneer@wipro.com> * Adding events for chaosinjection Signed-off-by: DelphineJoyneer <golkonda.joyneer@wipro.com> * Added abort and some minor fixes Signed-off-by: DelphineJoyneer <golkonda.joyneer@wipro.com> * Added a note for VSphere Version Signed-off-by: DelphineJoyneer <golkonda.joyneer@wipro.com> Co-authored-by: DelphineJoyneer <golkonda.joyneer@wipro.com> * Chore(update): Enhance pod-autoscaler logs and update helper pod name (#337) * Chore(update): Enhance pod-autoscaler logs and update helper pod name Signed-off-by: uditgaurav <udit@chaosnative.com> * chore(node-label): Adding ability to filter target node by label (#345) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(stress): fixing 137 error in cpu & memory chaos (#339) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> Co-authored-by: iassurewipro <81607462+iassurewipro@users.noreply.github.com> Co-authored-by: DelphineJoyneer <golkonda.joyneer@wipro.com> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com>
1.13.3
[Cherry Pick for 1.13.3] (#332) * chore(applabels): Erroring out if applabel is not provided and annotationCheck is false (#319) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * feat(randomness): Adding randomness interval inside pod-delete experiment (#321) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * rm(network-latency): Removed duplicate network-latency experiment (#322) * rm(network-letency): Removed duplicate network-latency experiment Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * Chore(actions): Update GitHub Chaos Actions (#320) Signed-off-by: udit <udit@chaosnative.com> * chore(probe): stop failing of other probes of same phase if one probe fails (#324) * chore(probe): stop failing of other probes of same phase if one probe fails Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * updating the chaos-operator vendors Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * Chore(stress): Add stress envs for stress supported experiments (#325) * Chore(stress): Add stress envs for stress supported experiments Signed-off-by: udit <udit@chaosnative.com> * Correct lint failure Signed-off-by: udit <udit@chaosnative.com> * Update environment.go Co-authored-by: udit <udit@chaosnative.com> * chore(helper): fixing waitForCompletion function to handle failed helpers in case of multiple targets (#326) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io> * feat(revert): Adding chaos revert steps on experiment abortion (#318) * feat(revert): Adding chaos revert steps for experiment abortion Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(revert): Adding revert logic inside pod-cpu-hog experiment Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com> * Added Pod DNS Chaos (#328) * Added DNS Chaos Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com> * Added termination grace period env Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com> * Updated abort watcher Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com> * added change requests Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com> * update(sdk): updating the sdk scaffold (#329) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * fix(logging): modifying the Fatal to Error (#330) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com> * (enhancement)stress-image: add env for stress-image used in pumba lib (#331) Signed-off-by: ksatchit <karthik.s@mayadata.io> * Chore(new_experiment): Split EC2 terminate experiment to select multiple instance using tags or list in different sequence modes (#327) * Chore(ec2): Enhanc EC2 terminate experiment to select multiple instance using tags or list in different sequence modes Signed-off-by: udit <udit@chaosnative.com> * Add seperate experiments for ec2 terminate by id and by tags Signed-off-by: uditgaurav <udit@chaosnative.com> * update test.yml Signed-off-by: uditgaurav <udit@chaosnative.com> * update service account name in test.yml Signed-off-by: uditgaurav <udit@chaosnative.com> Co-authored-by: Shubham Chaudhary <shubham.chaudhary@mayadata.io> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com> Co-authored-by: udit <udit@chaosnative.com> Co-authored-by: Soumya Ghosh Dastidar <44349253+gdsoumya@users.noreply.github.com>
1.13.2
[cherrypick for 1.13.2] (#317) * chore(aut-check): skip autStatus check if appinfo not provided (#304) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(n/w-chaos): Handling the unknown hosts (#302) Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io> * chore(signal): Adding signal for the crio/containerd runtime (#306) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(disk-fill): Addding option to specify ephemeral storage(Mibi) explictly via env (#313) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * refactor(kafka-broker-pod-failure): Refactor the kafka broker pod failure (#309) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * Remove init container for changing permission of the container runtime socket (#315) * Removed init container from container-kill and network-chaos experiments Signed-off-by: Radu Domnu <rdomnu@redhat.com> * Running crictl/docker commands with sudo Signed-off-by: Radu Domnu <rdomnu@redhat.com> * Removed init container for network experiments Signed-off-by: Radu Domnu <rdomnu@redhat.com> * chore(k8sProbe): Updating the k8s probe schema (#308) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * api response time updated for http probe (#307) Signed-off-by: oumkale <oum.kale@mayadata.io> * chore(container-status): checking only target container status (#303) Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * enhance(aws-ec2): Add support for terminating node of a cluster with self-managed nodegroup (#298) * enhanc(aws-ec2): Add support for terminating node of a cluster with self-managed nodegroup Signed-off-by: udit <udit@chaosnative.com> Co-authored-by: Radu Domnu <39598837+radudd@users.noreply.github.com> Co-authored-by: OUM NIVRATHI KALE <oum.kale@mayadata.io> Co-authored-by: Udit Gaurav <35391335+uditgaurav@users.noreply.github.com>