Giter VIP home page Giter VIP logo

chaosmonkey's People

Contributors

abirdcfly avatar adamdmharvey avatar anotherchrisberry avatar aplsek avatar branislav1993 avatar d6o avatar dbakshiyev avatar haleyw avatar imsamuel avatar khurramjalil avatar lorin avatar mlafeldt avatar mrvivacious avatar olivertappin avatar oremj avatar pmacey avatar prytoegrian avatar robzienert avatar sbasgall avatar sghill avatar shawnps avatar shazy792 avatar ttomsu avatar vintagesucks avatar xordspar0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chaosmonkey's Issues

unable to install chaos monkey

ATH017733:~ gneha$ go get github.com/netflix/chaosmonkey/cmd/chaosmonkey
ATH017733:~ gneha$ chaosmonkey migrate
-bash: chaosmonkey: command not found

can you please let me know what im missing on

Suggestion: Continuous Fuzzing

Hi, I'm Yevgeny Pats Founder of Fuzzit - Continuous fuzzing as a service platform.

We have a free plan for OSS and I would be happy to contribute a PR if that's interesting.
The PR will include the following

  • go-fuzz fuzzers (This is generic step not-connected to fuzzit)
  • Continuous Fuzzing of master branch which will generate new corpus and look for new crashes
  • Regression on every PR that will run the fuzzers through all the generated corpus and fixed crashes from previous step. This will prevent new or old bugs from crippling into master.

You can see our basic example fuzzitdev/example-go and you can see an example of "in the wild" integration google/syzkaller.

Let me know if this is something worth working on.

Cheers,
Yevgeny

Vulnerability of dependency "golang.org/x/text"

Hello, we are a team researching the dependency management mechanism of Golang. During our analysis, we came across your project and noticed that it contains a vulnerability (CVE-2022-32149). In your project, the golang.org/x/text package is being used at version golang.org/x/text v0.0.0-20160922232553-a7c023693a94, but the patched version is v0.3.8. To fix the vulnerability, we recommend modifying the go.mod file to update the version to v0.3.8 or higher. Thank you for your attention to this matter.

chaosmonkey supports only instance termination?

Chaos monkey latest version supports only instance termination?

How do I need to check failures at all levels like CPU, Memory, Harddisk, Network, Load etc.

How do I can install chaos monkey older version that supports all of the above features? Is there any documentation?

chaosmonkey can not kill kubernetes v2 resource in spinnaker

when we use Kubernetes Provider V2 (Manifest Based), chaosmonkey can not find resource to kill, Name 'ingress service-xxx' does not have any labeled or unlabeled matches.
No eligible instances in group, nothing to terminate

some issue in here: spinnaker/spinnaker#3929

example msg:

chaosmonkey config testclient
(*chaosmonkey.AppConfig)(0xc820332240)({
 Enabled: (bool) true,
 RegionsAreIndependent: (bool) true,
 MeanTimeBetweenKillsInWorkDays: (int) 2,
 MinTimeBetweenKillsInWorkDays: (int) 1,
 Grouping: (chaosmonkey.Group) cluster,
 Exceptions: ([]chaosmonkey.Exception) {
 },
 Whitelist: (*[]chaosmonkey.Exception)(<nil>)
})

error msg:

chaosmonkey terminate  testclient infra-k8s-hk`

[ 7452] 2019/07/30 07:38:42 WARNING: eligible.Instances failed for InstanceGroup{app=testclient account=infra-k8s-hk region= stack= cluster=}: Name 'deployment nginx' does not have any labeled or unlabeled matches

[ 7452] 2019/07/30 07:38:42 No eligible instances in group, nothing to terminate: InstanceGroup{app=testclient account=infra-k8s-hk region= stack= cluster=}

image

Automate installation of cron

With database migration automated, the last remaining bit is the manual setup of the chaosmonkey cron. If that can be automated, it will pave the way to docker/rpm/deb or other types of packaging/distributions.

h3. Proposal

  • add new config params(say install.cron_expression) to read the chaosmonkey cron, default to 1 hour before start_hour on week days(1-5).
  • add a new command chaosmonkey install which will
    • generate the bash scripts(schedule and terminate) and crontab based on this new param.
    • run database migration.
    • should be idempotent, i.e. running install multiple times should not result in inconsistencies in the system or failure. In other words, it should do a clean install on every invocation.

chaosmonkey terminate appname account gives "No eligible instances in group, nothing to terminate" even though I have instances in the group.

Dear Team,
I am trying to use Chaosmonkey for our resiliency testing in GKE (Google Kuberenetes Engine),
when giving the below for terminating the instance it gives below error even though I have instances for the application. Can you please guide me fix this issue.

spinnaker@hal-123:~$ chaosmonkey terminate sireeapp1 spinnaker-service-account
[ 5083] 2019/01/11 11:53:01 WARNING: eligible.Instances failed for InstanceGroup{app=sireeapp1 account=spinnaker-service-account region= stack= cluster=}: retrieve cloud provider failed: json unmarshal failed: unexpected end of JSON input
[ 5083] 2019/01/11 11:53:01 No eligible instances in group, nothing to terminate: InstanceGroup{app=sireeapp1 account=spinnaker-service-account region= stack= cluster=}

Note: I can see two instances for the application as below in spinnaker UI.
image

Thank you
Sireesha

chaosmonkey eligible gives "json unmarshal failed: unexpected end of JSON input"

Dear Team,

I am trying to use Chaosmonkey for our resiliency testing in GKE (Google Kuberenetes Engine),
I have deployed spinnaker and followed the instructions from here (https://blog.spinnaker.io/running-chaos-monkey-on-spinnaker-google-compute-engine-gce-155dc52f20ef).
Now after having everything set, the command chaosmonkey config gives me the below output:

(chaosmonkey.AppConfig)(0xc4200529c0)({
Enabled: (bool) true,
RegionsAreIndependent: (bool) true,
MeanTimeBetweenKillsInWorkDays: (int) 2,
MinTimeBetweenKillsInWorkDays: (int) 1,
Grouping: (chaosmonkey.Group) cluster,
Exceptions: ([]chaosmonkey.Exception) {
},
Whitelist: (
[]chaosmonkey.Exception)()
})

But when trying to check for the eligible server groups it gives below error:
spinnaker@hal-123:~$ chaosmonkey eligible sireeapp1 spinnaker-service-account
retrieve cloud provider failed: json unmarshal failed: unexpected end of JSON input

Can you please let me know in which json file the error is being thrown and what should be the fix for it.

Thank you
Sireesha

Build instructions are incomplete

I wasn't able to build the package using the instructions from the wiki.

$ cat /etc/issue
Ubuntu 14.04 LTS
$ export GOPATH=$HOME/gocode
$ go version
go version go1.6 linux/amd64
$ go get github.com/Netflix/chaosmonkey/bin/chaosmonkey
package github.com/Netflix/chaosmonkey/bin/chaosmonkey: cannot find package "github.com/Netflix/chaosmonkey/bin/chaosmonkey" in any of:
        /usr/lib/go/src/github.com/Netflix/chaosmonkey/bin/chaosmonkey (from $GOROOT)
        /home/user/gocode/src/github.com/Netflix/chaosmonkey/bin/chaosmonkey (from $GOPATH)

A friend suggested go get github.com/Netflix/chaosmonkey... , which seems to have worked. Perhaps the build instructions should be changed? My experience with go is limited, so maybe this is common knowledge among gophers. I also noticed that the minimum supported go version is not documented anywhere, if it matters for the build.

chaosmonkey migrate not working

ERROR - couldn't apply database migration: database migration failed: Error 1067: Invalid default value for 'killed_at' handling 1.0.0_initial_schema.sql

Chaos monkey cannot get instances ids from Spinnaker application

Hello everybody,
I am trying to use chaos monkey but I have an issue that I cannot solve. I have deployed Spinnaker at EKS in AWS successfully and then created an application that deploys 3 pods in that kubernetes cluster. I am also successfully deploying chaos monkey in a standalone EC2 and I can connect it to the Spinnaker application and also retrieve some information. For example:
chaosmonkey regions spinnaker eks-spinnaker:
spinnaker
The problem is that I cannot retrieve the instances and of course not terminate it:
chaosmonkey eligible spinnaker eks-spinnaker:
unexpected response code (404) from http://10.176.14.154:31994/applications/spinnaker/clusters/eks-spinnaker/spinnaker/kubernetes/spinnaker/serverGroups/target/CURRENT?onlyEnabled=true
It looks like that chaos monkey requests an url that doesnt exist.
Is it anyone that could help me a bit with that?

Support OAuth authentication

Am unable to run chaosmonkey commands. Below is the error message am receiving.

ubuntu@ip-172-33-1-131:~$ chaosmonkey config my-aws-account
invalid character '<' looking for beginning of value
json unmarshal failed
github.com/Netflix/chaosmonkey/spinnaker.fromJSON
/home/ubuntu/chaos/src/github.com/Netflix/chaosmonkey/spinnaker/fromjson.go:99
github.com/Netflix/chaosmonkey/spinnaker.Spinnaker.Get
/home/ubuntu/chaos/src/github.com/Netflix/chaosmonkey/spinnaker/config.go:51
github.com/Netflix/chaosmonkey/spinnaker.(*Spinnaker).Get
:1
github.com/Netflix/chaosmonkey/command.DumpConfig
/home/ubuntu/chaos/src/github.com/Netflix/chaosmonkey/command/dumpconfig.go:27
github.com/Netflix/chaosmonkey/command.Execute
/home/ubuntu/chaos/src/github.com/Netflix/chaosmonkey/command/chaosmonkey.go:327
main.main
/home/ubuntu/chaos/src/github.com/netflix/chaosmonkey/cmd/chaosmonkey/main.go:35
runtime.main
/usr/lib/go-1.6/src/runtime/proc.go:188
runtime.goexit
/usr/lib/go-1.6/src/runtime/asm_amd64.s:1998

Here is my chaosmonkey.toml

ubuntu@ip-172-33-1-131:~$ cat /etc/chaosmonkey/chaosmonkey.toml
[chaosmonkey]
enabled = true
schedule_enabled = true
leashed = false
accounts = [ "my-aws-account", "my-azure-account", "my-gce-account", "my-k8s-v2-account", "k8s-v2-azure-account" ]

time_zone = "UTC"

[database]
host = "prl-mysql.exmps.com"
name = "chaosmonkey"
user = "chaosmonkey"
encrypted_password = "test@123"

[spinnaker]
endpoint = "http://spinnaker.exmps.com:8084"

here is my go version:

$ go version
go version go1.10.3 linux/amd64

Can someone please help?

invalid character '<' looking for beginning of value json unmarshal failed

hi everyone
While running on chaos monkey on spinnaker getting below things:

chaos monkey installed on the spinnaker aws instance
ubuntu@ip-172-31-27-137:/apps/chaosmonkey$ chaosmonkey config spinnaker
invalid character '<' looking for beginning of value
json unmarshal failed
github.com/Netflix/chaosmonkey/spinnaker.fromJSON
/home/ubuntu/go/src/github.com/Netflix/chaosmonkey/spinnaker/fromjson.go:99
github.com/Netflix/chaosmonkey/spinnaker.Spinnaker.Get
/home/ubuntu/go/src/github.com/Netflix/chaosmonkey/spinnaker/config.go:51
github.com/Netflix/chaosmonkey/spinnaker.(*Spinnaker).Get
:1
github.com/Netflix/chaosmonkey/command.DumpConfig
/home/ubuntu/go/src/github.com/Netflix/chaosmonkey/command/dumpconfig.go:27
github.com/Netflix/chaosmonkey/command.Execute
/home/ubuntu/go/src/github.com/Netflix/chaosmonkey/command/chaosmonkey.go:327
main.main
/home/ubuntu/go/src/github.com/netflix/chaosmonkey/cmd/chaosmonkey/main.go:35
runtime.main
/usr/local/go/src/runtime/proc.go:201

Error message is not meaningful when wrong account name used

If the user specifies the wrong account name, then the chaosmonkey eligible command yields the following error:

spinnaker@hal-123:~$ chaosmonkey eligible sireeapp1 spinnaker-service-account
retrieve cloud provider failed: json unmarshal failed: unexpected end of JSON input

This error message doesn't provide the user with information about what the problem and how to fix it. Chaos Monkey should provide a more meaningful error message in this scenario.

See #50 and #51.

Rename Metrics bean

The class de.codecentric.spring.boot.chaos.monkey.configuration.ChaosMonkeyConfiguration defines the metrics bean. The name metrics is generic and causes bean name conflict with other libraries. Can it be renamed to something more specific to chaos monkey?

Use database migration to automate database setup

First step in automating the installation/setup process would be to automate the database setup.
Using a db migration tool would be ideal in this case.

The proposal is instead of applying the database change manually, we just have to do the following at boot/init.d or at any convenient time to apply the database changes:

chaosmonkey migrate

Is this something you would be interested in ?

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.