Metadata proxy startup can fail when Daemon class doesn't properly match running processes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Brian Haley | ||
Grizzly |
Fix Released
|
High
|
Gary Kotton |
Bug Description
I came across a case where two metadata namespace proxy pid files had the same id in them, possibly due to a reboot of the network controller:
root@qu-
31857
/var/lib/
31857
/var/lib/
The pid in question was for a proxy for the namespace ending in d66e:
root@qu-
python/
Unfortunately, when quantum went to spawn the dhcp agent for the 4245 namespace, which will also spawn a namespace proxy, the code in Daemon class incorrectly matched this existing proxy and threw an exception.
From dhcp-agent.log:
2013-04-25 14:00:04 ERROR [quantum.
Traceback (most recent call last):
File "/usr/lib/
self.refresh_
File "/usr/lib/
return self.enable_
File "/usr/lib/
self.enable_
File "/usr/lib/
pm.enable(callback)
File "/usr/lib/
ip_wrapper.
File "/usr/lib/
check_exit_
File "/usr/lib/
raise RuntimeError(m)
RuntimeError:
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/
Looking further in dhcp-agent.log found the actual problem:
2013-04-25 14:00:04 DEBUG [quantum.
That's the right pid file, but cmdline for the other proxy process.
The Daemon class needs to use the uuid when looking at cmdline so that it doesn't match the wrong process. I have a patch that passes an additional argument at init time to do this and fixes the problem, I'll assign this to myself and send the change out.
Changed in quantum: | |
assignee: | nobody → Brian Haley (brian-haley) |
Changed in quantum: | |
importance: | Undecided → High |
tags: | added: grizzly-backport-potential l3-ipam-dhcp |
Changed in quantum: | |
milestone: | none → havana-1 |
tags: | removed: grizzly-backport-potential |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
tags: | removed: in-stable-grizzly |
Changed in neutron: | |
milestone: | havana-1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/28419
Review: https:/