Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a scenario to randomly kill pods based on a regexp #13

Closed
mffiedler opened this issue May 11, 2020 · 1 comment
Closed

Add a scenario to randomly kill pods based on a regexp #13

mffiedler opened this issue May 11, 2020 · 1 comment
Assignees

Comments

@mffiedler
Copy link
Collaborator

mffiedler commented May 11, 2020

Add a scenario to kill a random pod selected from pods matching a regexp. We have a simple, but effective shell script in OpenShift testing that randomly takes out infra pods. Combined with Cerberus (https://github.com/openshift-scale/cerberus) we can detect non-transient issues caused by such a scenario.

Example (in shell scripting):

#!/bin/bash
NUM=$1
SLEEP=$2
while true; do 
   echo "============"
   oc get pods --all-namespaces | grep openshift | grep Running| awk {'print $1" "$2'} | shuf -n $NUM | while read i; do oc delete pod -n $i --wait=false; done; sleep $SLEEP; 
done
@chaitanyaenr
Copy link
Collaborator

Fixed by #16. Thanks to @paigerube14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants