ProcessManager: honor run_as_root when stopping process
Without this commit, the run_as_root parameter is always True when
stopping a process, which leads to the usage of unnecessary sudo such as
in some functional tests, like the keepalived ones.
This commit fixes the aforemetioned problem by taking run_as_root into
account when stopping a process. However, run_as_root will still always
be True if the process is spawned in a netns.
Reviewed: https:/ /review. openstack. org/458923 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=a15c8495636 6456683cd7e5227 c5e244e15c3e6e
Committed: https:/
Submitter: Jenkins
Branch: master
commit a15c84956366456 683cd7e5227c5e2 44e15c3e6e
Author: Hunt Xu <email address hidden>
Date: Sat Apr 22 01:08:48 2017 +0800
ProcessManager: honor run_as_root when stopping process
Without this commit, the run_as_root parameter is always True when
stopping a process, which leads to the usage of unnecessary sudo such as
in some functional tests, like the keepalived ones.
This commit fixes the aforemetioned problem by taking run_as_root into
account when stopping a process. However, run_as_root will still always
be True if the process is spawned in a netns.
Closes-Bug: #1491581
Change-Id: Ib40e1e3357b9a3 8e760f4e552bf61 5cdfd54ee5a
Signed-off-by: Hunt Xu <email address hidden>