Revision history [back]

click to hide/show revision 1
initial version

Failed to launch instance: No valid host was found ..DHCP error

Hi,

When I try to launch an instance, I get this error:

Unable to launch the instance. Please try again later. No valid host was found.

I have opened the screen for openstack by : screen -x stack

I can see error in neutron dhcp agent (q-dhcp) screen.

 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for 9e116c5f-04ba-437c-82c0-3feca0706ebd.

Please help me figure out the solution.

click to hide/show revision 2
No.2 Revision

Failed to launch instance: No valid host was found ..DHCP error

Hi,

When I try to launch an instance, I get this error:

Unable to launch the instance. Please try again later. No valid host was found.

I have opened the screen for openstack by : screen -x stack

I can see error in neutron dhcp agent (q-dhcp) agent (q-dhcp) screen.

 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for 9e116c5f-04ba-437c-82c0-3feca0706ebd.

Please help me figure out the solution.

Failed to launch instance: No valid host was found ..DHCP error

Hi,

When I try to launch an instance, I get this error:

Unable to launch the instance. Please try again later. No valid host was found.

I have opened the screen for openstack by : screen -x stack

I can see error in neutron dhcp agent (q-dhcp) screen.

 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for 9e116c5f-04ba-437c-82c0-3feca0706ebd.
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent Traceback (most recent call last):
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/dhcp_agent.py", line 129, in call_driver
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent     getattr(driver, action)(**action_kwargs)
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 175, in enable
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent     reuse_existing=True)
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/dhcp.py", line 883, in setup
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent     namespace=network.namespace)
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/interface.py", line 196, in plug
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent     namespace_obj.add_device_to_namespace(ns_dev)
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 157, in add_device_to_namespace
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent     device.link.set_netns(self.namespace)
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 243, in set_netns
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent     self._as_root('set', self.name, 'netns', namespace)
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 218, in _as_root
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent     kwargs.get('use_root_namespace', False))
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 71, in _as_root
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent     namespace)
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 82, in _execute
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent     root_helper=root_helper)
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent   File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 76, in execute
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent     raise RuntimeError(m)
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent RuntimeError:
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/local/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'set', 'tapd9dab467-5b', 'netns', 'qdhcp-9e116c5f-04ba-437c-82c0-3feca0706ebd']
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent Exit code: 2
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent Stdout: ''
2015-06-01 18:21:21.325 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: Invalid argument\n'

Please help me figure out the solution.