instance can't get the dhcp ip (neutron , opensuse)

asked 2015-03-02 08:32:33 -0500

bibin gravatar image

Hi,

I have deploy openstack by following the guide "openstack juno installation on opensuse". Now I am facing an issue, when I laungh an instance it's not receiving any dhcp ip.

Getting following errors at looking the console log.

Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending discover...
Sending discover...
Usage: /sbin/cirros-dhcpc <up|down>
No lease, failing
WARN: /etc/rc3.d/S40-network failed
cirros-ds 'net' up at 184.30
checking http://169.254.169.254/2009-04-04/instance-id
failed 1/20: up 184.40. request failed
failed 2/20: up 186.57. request failed
failed 3/20: up 188.64. request failed
failed 4/20: up 190.76. request failed
failed 5/20: up 192.83. request failed
failed 6/20: up 194.89. request failed
failed 7/20: up 196.96. request failed
failed 8/20: up 199.02. request failed
failed 9/20: up 201.09. request failed
failed 10/20: up 203.16. request failed
failed 11/20: up 205.22. request failed
failed 12/20: up 207.29. request failed
failed 13/20: up 209.35. request failed
failed 14/20: up 211.42. request failed
failed 15/20: up 213.49. request failed
failed 16/20: up 215.55. request failed

Dhcp namespaces

controller:~ # ip netns
qdhcp-d047fd8c-8c8c-42c1-9f0d-61e9239fed42



controller:~ # ip netns exec qdhcp-d047fd8c-8c8c-42c1-9f0d-61e9239fed42 ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2752 (2.6 Kb)  TX bytes:2752 (2.6 Kb)

tap1385cc Link encap:Ethernet  HWaddr FA:16:3E:33:07:9F  
          inet addr:10.0.16.11  Bcast:10.0.16.255  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fe33:79f/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:882 (882.0 b)

Tcpdump traffic

controller:~ # ip netns exec qdhcp-d047fd8c-8c8c-42c1-9f0d-61e9239fed42 tcpdump -ln -i tap1385cc9d-82
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tap1385cc9d-82, link-type EN10MB (Ethernet), capture size 262144 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel

Dnsmasq output

controller:~ # ps -Af | grep dnsmasq
dnsmasq  12156     1  0 16:04 ?        00:00:00 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=tap1385cc9d-82 --except-interface=lo --pid-file=/var/lib/neutron/dhcp/d047fd8c-8c8c-42c1-9f0d-61e9239fed42/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/d047fd8c-8c8c-42c1-9f0d-61e9239fed42/host --addn-hosts=/var/lib/neutron/dhcp/d047fd8c-8c8c-42c1-9f0d-61e9239fed42/addn_hosts --dhcp-optsfile=/var/lib/neutron/dhcp/d047fd8c-8c8c-42c1-9f0d-61e9239fed42/opts --leasefile-ro --dhcp-range=set:tag0,10.0.16.0,static,86400s --dhcp-lease-max=256 --conf-file=/etc/neutron/dnsmasq-neutron.conf --server=8.8.8.8 --domain=openstacklocal
root     12398  1678  0 19:58 ...
(more)
edit retag flag offensive close merge delete