quantum-dhcp-agent fails to start due to dnsmasq --version
Hello,
I'm using quantum-dhcp-agent 1:2013.1.3-0ubuntu1~cloud0 and its unable to start due to bad stdout when running dnsmasq --version. Which version of dnsmasq should I install that is compatible with quantum/neutron?
2013-10-22 13:25:05 INFO [quantum.common.config] Logging enabled! 2013-10-22 13:25:05 DEBUG [quantum.agent.linux.utils] Running command: ['dnsmasq', '--version'] 2013-10-22 13:25:05 DEBUG [quantum.agent.linux.utils] Command: ['dnsmasq', '--version'] Exit code: 0 Stdout: 'Dnsmasq version UNKNOWN Copyright (c) 2000-2012 Simon Kelley\nCompile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack\n\nThis software comes with ABSOLUTELY NO WARRANTY.\nDnsmasq is free software, and you are welcome to redistribute it\nunder the terms of the GNU General Public License, version 2 or 3.\n' Stderr: '' 2013-10-22 13:25:05 WARNING [quantum.agent.linux.dhcp] Unable to determine dnsmasq version. Please ensure that its version is 2.59 or above! 2013-10-22 13:25:05 CRITICAL [quantum] invalid literal for float(): 2000-2012 Traceback (most recent call last): File "/usr/bin/quantum-dhcp-agent", line 20, in <module> main() File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 741, in main manager='quantum.agent.dhcp_agent.DhcpAgentWithStateReport') File "/usr/lib/python2.7/dist-packages/quantum/service.py", line 198, in create periodic_fuzzy_delay=periodic_fuzzy_delay) File "/usr/lib/python2.7/dist-packages/quantum/service.py", line 132, in __init__ self.manager = manager_class(host=host, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 679, in __init__ super(DhcpAgentWithStateReport, self).__init__(host=host) File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 83, in __init__ self.dhcp_version = self.dhcp_driver_cls.check_version() File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/dhcp.py", line 249, in check_version return float(ver) ValueError: invalid literal for float(): 2000-2012 </module>
to add: using ubuntu 12.04.3 LTS; 3.2.0-55-generic kernel Thanks
The code checks that the dnsmasq version is >=2.59. But you are getting "UNKNOWN" for the version instead of a number. How did you install dnsmasq? What does 'dpkg -l dnsmasq\*' show?
I use chef to automate + using stackforge's cookbook. They compile dnsmasq from source and its unable to put an actual version during compile (see answer below)