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

Hitting PermissionError when trying to reproduce bug rabbitmq-cluster-operator-782 with Sieve #115

Closed
jerrinsg opened this issue Mar 7, 2023 · 0 comments · Fixed by #116

Comments

@jerrinsg
Copy link
Contributor

jerrinsg commented Mar 7, 2023

Hi,

Following the steps in reprod.md to reproduce intermediate-state bug 1 found in rabbitmq-operator (rabbitmq-cluster-operator-782), I am hitting a PermissionError:

$ python3 reproduce_bugs.py -c rabbitmq-operator -b intermediate-state-1
...

wait for final grace period 80 seconds
Traceback (most recent call last):
  File "/Users/jshajigeorge/work/sieve/sieve.py", line 657, in run_test
    run_workload(test_context)
  File "/Users/jshajigeorge/work/sieve/sieve.py", line 550, in run_workload
    os.killpg(streaming.pid, signal.SIGTERM)
PermissionError: [Errno 1] Operation not permitted

Total time: 254.97307181358337 seconds
Please refer to sieve_test_results/rabbitmq-operator-resize-pvc-rabbitmq-operator-intermediate-state-1.yaml.json for more detailed information

Full logs attached in sieve-rabbitmq-782-EPERM.txt

This was run on a Mac OS machine. Version details attached in sw_vers.txt.

jerrinsg added a commit to jerrinsg/sieve that referenced this issue Mar 8, 2023
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 sieve-project#115
marshtompsxd pushed a commit that referenced this issue Mar 8, 2023
…82 (#116)

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
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

Successfully merging a pull request may close this issue.

1 participant