Ask Your Question
0

dhcp agent issue when working with ovs vxlan

asked 2014-01-02 00:46:29 -0600

chen-li gravatar image

updated 2014-01-03 16:59:32 -0600

smaffulli gravatar image

Hi list,

I'm working under CentOS 6.4 + Havana.

I'm trying to enable vxlan.

I successfully started an instance, but the instance cant' get IP address from DHCP agent.

I get an error message in dhcp.log:

2014-01-02 14:38:33.150 17728 DEBUG neutron.agent.linux.utils [-] Running command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-1314f7bb-9b52-4db8-a677-a751e52aad0e', 'ip', '-o', 'link', 'show', 'ns-45bfc42b-93'] execute /usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py:43
2014-01-02 14:38:33.161 17728 DEBUG neutron.agent.linux.utils [-]
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-d250b6d9-0077-41ae-88e1-8736dfd0e165', 'ip', 'route', 'replace', 'default', 'via', '30.1.100.1', 'dev', 'ns-8d8fdae7-1f']
Exit code: 2
Stdout: ''
Stderr: 'RTNETLINK answers: No such process\n' execute /usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py:60
2014-01-02 14:38:33.161 17728 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp.
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent Traceback (most recent call last):
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/dhcp_agent.py", line 126, in call_driver
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent     getattr(driver, action)(**action_kwargs)
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/dhcp.py", line 167, in enable
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent     reuse_existing=True)
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/dhcp.py", line 724, in setup
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent     self._set_default_route(network)
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/dhcp.py", line 612, in _set_default_route
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent     device.route.add_gateway(subnet.gateway_ip)
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 359, in add_gateway
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent     self._as_root(*args)
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 208, in _as_root
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent     kwargs.get('use_root_namespace', False))
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 65, in _as_root
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent     namespace)
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 76, in _execute
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent     root_helper=root_helper)
2014-01-02 14:38:33.161 17728 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py", line 62, in execute
2014-01-02 14:38:33.161 17728 TRACE neutron ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-01-03 16:59:16 -0600

smaffulli gravatar image

There is a solution to a similar problem on https://ask.openstack.org/en/question/5406/instances-do-not-get-ips-by-dhcp/ . If that doesn't work for you, google finds https://bugs.launchpad.net/neutron/+bug/1219893 (may be a duplicate of https://bugs.launchpad.net/neutron/+bug/1265441 )

edit flag offensive delete link more

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-01-02 00:46:29 -0600

Seen: 740 times

Last updated: Jan 03 '14