os_neutron ns-metadata-proxy cleanup error attempting to kill PID
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Undecided
|
Kevin Carter |
Bug Description
When running the ns-metadata-proxy cleanup tasks, we get the following error sometimes:
13:35:48 failed: [jrpcaioiad-
13:35:48 stderr: /bin/sh: 4: kill: No such process
13:35:48
13:35:48 /bin/sh: 4: kill: No such process
13:35:48 stdout: old metadata proxy pid found running clean up on 1337
13:35:48 old metadata proxy pid found running clean up on 2781
It appears that the PIDs found during the pgrep are sometimes lost before the kill. Either that or the filtering has some subtle bug resulting in an output that's not a valid PID or PIDs.
I suggest that we instead reverse the order of tasks in this handler, replacing the complex pgrep/grep/kill logic with a simple pkill of all the proxies, followed by the service restart. I'll submit a patch for consideration soon.
Changed in openstack-ansible: | |
assignee: | nobody → Jean-Philippe Evrard (jean-philippe-evrard) |
In which version does this happen? Latest mitaka I guess?
Could you confirm the process were running fine before the neutron playbook run?