GithubHelp home page GithubHelp logo

litmuschaos / litmus-ansible Goto Github PK

View Code? Open in Web Editor NEW
7.0 8.0 17.0 366 KB

Ansible-based chaos experiments

License: Apache License 2.0

Makefile 3.33% Shell 3.76% Python 54.67% Dockerfile 2.33% Jinja 35.92%
ansible chaosengineering litmuschaos hacktoberfest

litmus-ansible's People

Contributors

adarshkumar14 avatar ghoshankur1983 avatar gprasath avatar iassurewipro avatar ispeakc0de avatar tanmaypandey7 avatar uditgaurav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

litmus-ansible's Issues

LIB_IMAGE_PULL_POLICY imagePull Policy is not working in coreDNS pod delete chaos test case

What happened:
when we set LIB_IMAGE_PULL_POLICY policy to IfNotPresent, test case is always downloading the image.

What you expected to happen:
We want to skip the download part as image is available locally.

How to reproduce it (as minimally and precisely as possible):

  1. Download all images locally.
  2. Disable internet and then set LIB_IMAGE_PULL_POLICY to IfNotPresent
  3. Run core DNS pod delete chaos test

parametrize tc-image for network chaos experiments

Please parametrize path to tc-image.

The current implementation blocks normal use of network experiments on systems without internet access.
There is an ability to specify location of pumba image on a local repository but in the current state it will still try to download gaiadocker/iproute2 image from docker.io so that will cause an issue like following

kubectl logs pumba-netem-bmndgx -n test_ns
time="2020-07-20T11:11:42Z" level=error msg="failed to pull tc image" app=pumba error="Error response from daemon: Get https://registry-1.docker.io/v2/: read tcp x.x.x.x:x->x.x.x.x:x: read: connection reset by peer" function=github.com/sirupsen/logrus.WithError source="container/client.go:497"
time="2020-07-20T11:11:42Z" level=error msg="Error response from daemon: Get https://registry-1.docker.io/v2/: read tcp x.x.x.x:x->x.x.x.x:x: read: connection reset by peer" app=pumba function=github.com/alexei-led/pumba/pkg/container.dockerClient.NetemContainer source="container/client.go:240"
time="2020-07-20T11:11:42Z" level=error msg="failed to start netem for container" app=pumba error="Error response from daemon: Get https://registry-1.docker.io/v2/: read tcp x.x.x.x:x->x.x.x.x:x: read: connection reset by peer" function=github.com/sirupsen/logrus.WithError source="netem/netem.go:27"

Use Kubernetes Ansible modules instead of embedding it into the shell

Is this a BUG REPORT or FEATURE REQUEST?

FEATURE REQUEST

What happened:
Observed that current experiments are written with kubectl commands embedded in the shell commands. Recommend replacing it with Ansible modules for kubernetes. Eg: https://docs.ansible.com/ansible/latest/modules/k8s_module.html#synopsis
What you expected to happen:
If modules are embedded in the image, easier development process for new experiments as well as cleaner ansible code.
How to reproduce it (as minimally and precisely as possible):
Source Code analysis

Anything else we need to know?:
It is a recommendation. Would be happy to take up and convert the existing scripts to include modules and bake it into the image as well.

CoreDNS pod delete experiment fails with litmus 1.13.8

What happened:
CoreDNS pod delete experiment fails with litmus 1.13.8. I am using the litmuschaos/ansible-runner:1.13.8 image
image

What you expected to happen:
Experiment should run successfully.

How to reproduce it (as minimally and precisely as possible):
Use litmus 1.13.8 release and run CoreDNS pod delete experiment

Anything else we need to know?:
It fails because probeSuccessPercentage is not defined in the ansible_logic yaml file. Whereas, the generic pod delete experiment runs successfully as the variable is defined there.
Another thing is, community.kubernetes.k8 is depricated which is why it throws an error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.