Devstack vm on compute node does not get dhcp

asked 2014-05-02 17:24:23 -0500

fredhsu gravatar image

I have a two node devstack setup. The first has all the control stuff and compute. The second is only compute. When I launch VMs that start on the first node, they come up fine and receive a dhcp address. When I launch them and they start on the 2nd node, the dashboard shows an IP address, but the VM never gets a response from the dhcp server. If I use virt-manager, and assign an IP address statically, I can then ping both the first VM and the DHCP server. I am also using Neutron. What steps could I take to further troubleshoot?

Here are some logs from the dhcp agent: Stdout: 'default via 1.1.1.1 \n1.1.1.0/24 proto kernel scope link src 1.1.1.4 \n' Stderr: '' from (pid=29898) execute /opt/stack/neutron/neutron/agent/linux/utils.py:74 2014-05-02 14:29:08.360 DEBUG neutron.openstack.common.lockutils [req-550a027b-8c7f-4741-ab67-ff40eae228bd neutron b500697d24fa4f12992059547cad298f] Semaphore / lock rele ased "port_update_end" from (pid=29898) inner /opt/stack/neutron/neutron/openstack/common/lockutils.py:252 2014-05-02 14:29:08.360 DEBUG neutron.openstack.common.lockutils [req-550a027b-8c7f-4741-ab67-ff40eae228bd neutron b500697d24fa4f12992059547cad298f] Got semaphore "dhcp-a gent" from (pid=29898) lock /opt/stack/neutron/neutron/openstack/common/lockutils.py:168 2014-05-02 14:29:08.361 DEBUG neutron.openstack.common.lockutils [req-550a027b-8c7f-4741-ab67-ff40eae228bd neutron b500697d24fa4f12992059547cad298f] Got semaphore / lock "port_update_end" from (pid=29898) inner /opt/stack/neutron/neutron/openstack/common/lockutils.py:248 2014-05-02 14:29:08.361 DEBUG neutron.agent.dhcp_agent [req-550a027b-8c7f-4741-ab67-ff40eae228bd neutron b500697d24fa4f12992059547cad298f] Calling driver for network: 0dc 6c06f-ddc1-4178-a744-183b205ae65c action: reload_allocations from (pid=29898) call_driver /opt/stack/neutron/neutron/agent/dhcp_agent.py:118 2014-05-02 14:29:08.362 DEBUG neutron.agent.linux.dhcp [req-550a027b-8c7f-4741-ab67-ff40eae228bd neutron b500697d24fa4f12992059547cad298f] Building host file: /opt/stack/ data/neutron/dhcp/0dc6c06f-ddc1-4178-a744-183b205ae65c/host from (pid=29898) _output_hosts_file /opt/stack/neutron/neutron/agent/linux/dhcp.py:439 2014-05-02 14:29:08.363 DEBUG neutron.agent.linux.dhcp [req-550a027b-8c7f-4741-ab67-ff40eae228bd neutron b500697d24fa4f12992059547cad298f] Adding fa:16:3e:25:5f:8f : host -1-1-1-2.openstacklocal : 1.1.1.2 from (pid=29898) _output_hosts_file /opt/stack/neutron/neutron/agent/linux/dhcp.py:451 2014-05-02 14:29:08.363 DEBUG neutron.agent.linux.dhcp [req-550a027b-8c7f-4741-ab67-ff40eae228bd neutron b500697d24fa4f12992059547cad298f] Adding fa:16:3e:10:31:cd : host -1-1-1-3.openstacklocal : 1.1.1.3 from (pid=29898) _output_hosts_file /opt/stack/neutron/neutron/agent/linux/dhcp.py:451 2014-05-02 14:29:08.364 DEBUG neutron.agent.linux.dhcp [req-550a027b-8c7f-4741-ab67-ff40eae228bd neutron b500697d24fa4f12992059547cad298f] Done building host file /opt/stack/data/neutron/dhcp/0dc6c06f-ddc1-4178-a744-183b205ae65c/host from (pid=29898) _output_hosts_file /opt/stack/neutron/neutron/agent/linux/dhcp.py:465 2014-05-02 14:29:08.367 DEBUG neutron.agent.linux.utils [req-550a027b-8c7f-4741-ab67-ff40eae228bd neutron b500697d24fa4f12992059547cad298f] Running command: ['sudo', '/usr/local/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'kill', '-HUP', '4376'] from (pid=29898) create_process /opt/stack/neutron/neutron/agent/linux/utils.py:48 2014-05-02 14:29:08.511 DEBUG neutron.agent.linux.utils [req-550a027b-8c7f-4741-ab67-ff40eae228bd neutron b500697d24fa4f12992059547cad298f] Command: ['sudo', '/usr/local/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'kill', '-HUP', '4376'] Exit code: 0

Thanks!

edit retag flag offensive close merge delete

Comments

I'd take a look at the ovs-agent log on the compute node. I'd guess there's errors there.

Assaf Muller gravatar imageAssaf Muller ( 2014-05-04 02:28:09 -0500 )edit