custom kill scripts don't works after migration to privsep
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Slawek Kaplonski |
Bug Description
It seems that custom kill scripts aren't working properly if they are in the PATH which isn't in the standard PATH now.
When we were using rootwrap to run such scripts it was fine when scripts were e.g. in default path which is /etc/neutron/
But now we moved to privsep and we have errors like:
2021-04-09 12:01:19.348 176680 DEBUG oslo.privsep.daemon [-] privsep: Exception during request[
Traceback (most recent call last):
File "/usr/lib/
ret = func(*f_args, **f_kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
obj, cmd = _create_
File "/usr/lib/
stdout=
File "/usr/lib/
subprocess_
File "/usr/lib64/
restore_
File "/usr/lib64/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: 'dnsmasq-kill': 'dnsmasq-kill'
Even if dnsmasq-kill script is in the /etc/neutron/
We didn't spot it in our CI jobs as we don't run any job with those custom kill scripts. But it is used e.g. by Tripleo and they spot it in their jobs.
tags: | added: neutron-proactive-backport-potential |
tags: | removed: neutron-proactive-backport-potential |
Patch proposed https:/ /review. opendev. org/c/openstack /neutron/ +/785638