KillFilter is unable to kill a process if the underlying file has been deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.rootwrap |
Fix Released
|
Undecided
|
Pádraig Brady |
Bug Description
I was seeing the following error from neutron's dhcp-agent:
2015-08-06 13:20:06.507 16186 DEBUG neutron.
2015-08-06 13:20:06.778 16186 ERROR neutron.
[...]
2015-08-06 13:20:06.778 16186 TRACE neutron.
2015-08-06 13:20:06.778 16186 TRACE neutron.
That pid (23224) does refer to an active dnsmasq process:
# ps -p 23224 -f|cat
UID PID PPID C STIME TTY TIME CMD
nobody 23224 1 0 09:31 ? 00:00:00 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces ...
But the "dnsmasq" package had been updated after that process started,
so /proc/23224/exe is:
lrwxrwxrwx. 1 root root 0 Aug 6 09:31 /proc/23224/exe -> /usr/sbin/
KillFilter should probably be able to deal with this situation.
Changed in oslo.rootwrap: | |
assignee: | nobody → Pádraig Brady (p-draigbrady) |
Changed in oslo.rootwrap: | |
milestone: | none → 2.3.0 |
status: | Fix Committed → Fix Released |
Okay, so the problem here isn't just a *deleted* file; it's one that is first *renamed*, then deleted.