sieve-project / sieve

Automatic Reliability Testing for Kubernetes Controllers and Operators
BSD 2-Clause "Simplified" License
327 stars 20 forks source link

Fix PermissionError hit while reproducing rabbitmq-cluster-operator-782 #116

Closed jerrinsg closed 1 year ago

jerrinsg commented 1 year ago

While trying to reproduce intermediate-state bug 1: rabbitmq-cluster-operator-782 with Sieve on my Mac machine, I hit the below error: File "/Users/jshajigeorge/work/sieve/sieve.py", line 550, in run_workload os.killpg(streaming.pid, signal.SIGTERM) PermissionError: [Errno 1] Operation not permitted

This is because Sieve is trying to kill the controller log streaming process which is already in a Zombie process. This is not permitted in Mac - zombie processes are reaped by its parent when the parent dies.

This change fixes this issue by ignoring the exception raised when this happens and adds a log statement to report this.

fixes #115