Ask Your Question
0

Neutron - DHCP Agent is unable to enable dhcp

asked 2014-02-05 01:50:56 -0500

kausum-kumar gravatar image

I am not able to login to the VM that I am have created. I am using a CentOS 6.4 + Havana on 3 node installation. On the network node, I see message in the dhcp-agent.log file - unable to enable dhcp. Any idea why?

2014-02-04 17:40:00.172 10487 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp. 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/dhcp_agent.py", line 126, in call_driver 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent getattr(driver, action)(**action_kwargs) 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/dhcp.py", line 167, in enable 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent reuse_existing=True) 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/dhcp.py", line 705, in setup 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent namespace=network.namespace) 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/interface.py", line 174, in plug 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent namespace2=namespace) 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 126, in add_veth 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent self.ensure_namespace(namespace2) 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 136, in ensure_namespace 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent ip = self.netns.add(name) 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 447, in add 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent self._as_root('add', name, use_root_namespace=True) 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 217, in _as_root 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent kwargs.get('use_root_namespace', False)) 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 70, in _as_root 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent namespace) 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent root_helper=root_helper) 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py", line 62, in execute 2014-02-04 17:40:00.172 10487 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2014-02-04 17:40:00.172 10487 TRACE ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2014-02-08 15:18:27 -0500

gongysh gravatar image

I think you have to use namespace enabled kernel and iproute package from RDO, otherwise you have to disable namespace.

edit flag offensive delete link more
0

answered 2014-02-13 19:35:57 -0500

alfredcs gravatar image

Besides the suggested namespace, you might also want to double check your neutron conf to make sure agents can communicate with qpid on controller.

edit flag offensive delete link more

Comments

1

Thanks. I had the iproute package that supports namespace, but my kernel was not updated. I realized that the order of repositories was incorrect. This did not allow the namespace supported kernel.

kausum-kumar gravatar imagekausum-kumar ( 2014-02-18 23:59:56 -0500 )edit
-1

answered 2015-08-07 04:26:37 -0500

Hi All,

does any one faced this type of issue while launching an instance unable to get the DHCP

2015-08-07 14:43:23.207 2506 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for f6b0474c-842f-4f2a-9570-7a147926a1a9. 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent Traceback (most recent call last): 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/dhcp_agent.py", line 129, in call_driver 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent getattr(driver, action)(**action_kwargs) 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/dhcp.py", line 181, in enable 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent self.spawn_process() 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/dhcp.py", line 385, in spawn_process 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent ip_wrapper.netns.execute(cmd, addl_env=env) 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 467, in execute 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent check_exit_code=check_exit_code) 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py", line 76, in execute 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent raise RuntimeError(m) 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent RuntimeError: 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-f6b0474c-842f-4f2a-9570-7a147926a1a9', 'env', 'NEUTRON_NETWORK_ID=f6b0474c-842f-4f2a-9570-7a147926a1a9', 'dnsmasq', '--no-hosts', '--no-resolv', '--strict-order', '--bind-interfaces', '--interface=ns-9aa76982-a6', '--except-interface=lo', '--pid-file=/var/lib/neutron/dhcp/f6b0474c-842f-4f2a-9570-7a147926a1a9/pid', '--dhcp-hostsfile=/var/lib/neutron/dhcp/f6b0474c-842f-4f2a-9570-7a147926a1a9/host', '--addn-hosts=/var/lib/neutron/dhcp/f6b0474c-842f-4f2a-9570-7a147926a1a9/addn_hosts', '--dhcp-optsfile=/var/lib/neutron/dhcp/f6b0474c-842f-4f2a-9570-7a147926a1a9/opts', '--dhcp-leasefile=/var/lib/neutron/dhcp/f6b0474c-842f-4f2a-9570-7a147926a1a9/leases', '--dhcp-range=tag0,172.16.1.0,static,86400s', '--dhcp-lease-max=256', '--conf-file=/etc/neutron/dnsmasq-neutron.conf', '--domain=openstacklocal'] 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent Exit code: 2 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent Stdout: '' 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent Stderr: '\ndnsmasq: failed to set SO_REUSE{ADDR|PORT} on DHCP socket: Protocol not available\n' 2015-08-07 14:43:23.207 2506 TRACE neutron.agent.dhcp_agent 2015-08-07 14:43:23.209 2506 INFO neutron.agent.dhcp_agent [-] Synchronizing state complete

edit flag offensive delete link more

Comments

this is not an answer, is it? Learn how to use this site https://ask.openstack.org/faq

smaffulli gravatar imagesmaffulli ( 2015-08-07 10:29:34 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-02-05 01:50:56 -0500

Seen: 1,169 times

Last updated: Feb 18 '14