openstack创建实例无法获取ip地址问题

pozi 发布于 2015/04/17 12:57
阅读 4K+
收藏 0
我用的是三个节点的,创建的centos实例启动后无法获取到ip地址


在网络节点上面的报错日志不停的刷:[root@Network ~]# tail -fn 200 /var/log/neutron/dhcp-agent.log


2015-04-17 11:46:23.838 2273 INFO neutron.agent.dhcp_agent [-] Synchronizing state complete
2015-04-17 11:46:28.840 2273 INFO neutron.agent.dhcp_agent [-] Synchronizing state
2015-04-17 11:46:29.094 2273 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for ad87b294-cb7f-4a2a-92a6-40c27d3669da.
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent Traceback (most recent call last):
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/dhcp_agent.py", line 129, in call_driver
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent     getattr(driver, action)(**action_kwargs)
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/dhcp.py", line 180, in enable
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent     self.spawn_process()
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/dhcp.py", line 382, in spawn_process
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent     ip_wrapper.netns.execute(cmd, addl_env=env)
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 468, in execute
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent     check_exit_code=check_exit_code, extra_ok_codes=extra_ok_codes)
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py", line 82, in execute
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent     raise RuntimeError(m)
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent RuntimeError: 
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-ad87b294-cb7f-4a2a-92a6-40c27d3669da', 'env', 'NEUTRON_NETWORK_ID=ad87b294-cb7f-4a2a-92a6-40c27d3669da', 'dnsmasq', '--no-hosts', '--no-resolv', '--strict-order', '--bind-interfaces', '--interface=tapf1139260-6a', '--except-interface=lo', '--pid-file=/var/lib/neutron/dhcp/ad87b294-cb7f-4a2a-92a6-40c27d3669da/pid', '--dhcp-hostsfile=/var/lib/neutron/dhcp/ad87b294-cb7f-4a2a-92a6-40c27d3669da/host', '--addn-hosts=/var/lib/neutron/dhcp/ad87b294-cb7f-4a2a-92a6-40c27d3669da/addn_hosts', '--dhcp-optsfile=/var/lib/neutron/dhcp/ad87b294-cb7f-4a2a-92a6-40c27d3669da/opts', '--leasefile-ro', '--dhcp-range=tag0,172.16.177.0,static,86400s', '--dhcp-lease-max=256', '--conf-file=/etc/neutron/dnsmasq-neutron.conf', '--domain=openstacklocal']
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent Exit code: 2
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent Stdout: ''
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent Stderr: '\ndnsmasq: failed to set SO_REUSE{ADDR|PORT} on DHCP socket: Protocol not available\n'
2015-04-17 11:46:29.094 2273 TRACE neutron.agent.dhcp_agent 
2015-04-17 11:46:29.095 2273 INFO neutron.agent.dhcp_agent [-] Synchronizing state complete


不知道问题在哪里,求高手帮看看,谢谢啦
 

加载中
0
p
pozi

dnsmasq: failed to set SO_REUSE{ADDR|PORT} on DHCP socket: Protocol not available



0
p
pozi
问题已经解决,是dnsmasq版本的问题
返回顶部
顶部