You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
This bit me a couple minutes ago with zookeeper. We were trying to pkill -f the zk rest server with run_as(x, 'root'), which tried to do a 'su root -c "pkill -f x"'.
This is no bueno because the sigterm from pkill will travel back up into the "su root" and cause the runner to return with errno 143. In my case, i simply replaced zk's run_as with a check_call, but it would be nice if we fixed it in the utils methods.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hooks run as root, so if we have places where we call run_[bg_]as(x, user=root), we should drop the ['su', user, '-c'] args to the runner:
https://github.com/juju-solutions/jujubigdata/blob/master/jujubigdata/utils.py#L361
This bit me a couple minutes ago with zookeeper. We were trying to pkill -f the zk rest server with run_as(x, 'root'), which tried to do a 'su root -c "pkill -f x"'.
This is no bueno because the sigterm from pkill will travel back up into the "su root" and cause the runner to return with errno 143. In my case, i simply replaced zk's run_as with a check_call, but it would be nice if we fixed it in the utils methods.
The text was updated successfully, but these errors were encountered: