VM instance is not able to get IP address
Hi All,
I know i might be repeating the same question again, but that's because i didn't find any solution for this problem.
I did setup of 9 physical server, where one server is acting as a controller node + networking node and rest 8 servers are compute node. All these servers are running Ubuntu 12.04 and has network namespace support. When i install all the open stack services i enabled namespace for these services (l3_agent + dhcp agent). Following is my controller node configuration :
Ifconfig :
root@management
br-eth1 Link encap:Ethernet HWaddr 00:11:25:8e:a8:2d
inet addr:10.10.3.1 Bcast:10.10.255.255 Mask:255.255.0.0
inet6 addr: fe80::211:
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:420146 errors:0 dropped:0 overruns:0 frame:0
TX packets:339580 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:174225852 (174.2 MB) TX bytes:238554794 (238.5 MB)
br-ex Link encap:Ethernet HWaddr 00:11:25:8e:a8:2c
inet addr:9.126.108.143 Bcast:9.126.108.255 Mask:255.255.255.0
inet6 addr: fe80::211:
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:435547 errors:0 dropped:16395 overruns:0 frame:0
TX packets:156208 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:46251450 (46.2 MB) TX bytes:135765850 (135.7 MB)
br-int Link encap:Ethernet HWaddr 2e:69:40:c7:d1:4b
inet6 addr: fe80::2c69:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5282 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:365517 (365.5 KB) TX bytes:468 (468.0 B)
eth0 Link encap:Ethernet HWaddr 00:11:25:8e:a8:2c
inet6 addr: fe80::211:
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:436071 errors:0 dropped:18 overruns:0 frame:0
TX packets:160434 errors:8 dropped:0 overruns:0 carrier:0
RX bytes:48038908 (48.0 MB) TX bytes:122612206 (122.6 MB)
eth1 Link encap:Ethernet HWaddr 00:11:25:8e:a8:2d
inet6 addr: fe80::211:
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:529317 errors:0 dropped:8 overruns:0 frame:0
TX packets:413050 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:183756993 (183.7 MB) TX bytes:245056300 (245.0 MB)
int-br-eth1 Link encap:Ethernet HWaddr f2:cb:af:74:21:d0
inet6 addr: fe80::f0cb:
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:18845 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:1322857 (1.3 MB) TX bytes:936 (936.0 B)
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:16436 Metric:1
RX packets:11428927 errors:0 dropped:0 overruns:0 frame:0
TX packets:11428927 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:2378537968 (2.3 GB) TX bytes:2378537968 (2.3 GB)
phy-br-eth1 Link encap:Ethernet HWaddr 0e:ca:4d:6d:8a:89
inet6 addr: fe80::cca:
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:18845 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:936 (936.0 B) TX bytes:1322857 (1.3 MB)
ifconfig -a: Same output as above
ovs-vsctl output:
root@management
64ee78f8-
Bridge br-ex
Port "eth0"
Port br-ex
Bridge br-int
Port br-int
Port "tap9fdb5c15-26"
tag: 1
Port "int-br-eth1"
Bridge "br-eth1"
Port "eth1"
Port "phy-br-eth1"
Port "br-eth1"
ovs_version: "1.4.0+build0"
ovs-dpctl output:
root@management
system@br-eth1:
lookups: hit:683982 missed:128186 lost:0
flows: 3
port 0: br-eth1 (internal)
port 1: eth1
port 2: phy-br-eth1
system@br-int:
lookups: hit:940 missed:67832 lost:0
flows: 0
port 0: br-int (internal)
Feb 07 17:32:40|
port 1: tap9fdb5c15-26 (internal)
port 2: int-br-eth1
system@br-ex:
lookups: hit:386505 missed:206232 lost:3
flows: 14
port 0: br-ex (internal)
port 1: eth0
root@management
bridge name bridge id STP enabled interfaces
br-eth1 0000.0011258ea82d no eth1
phy-br-eth1
br-ex 0000.0011258ea82c no eth0
br-int 0000.2e6940c7d14b no int-br-eth1
NOTE-1: I manually enabled br-int bridge interface.
NOTE-2: linux bridge module is not loaded
root@management
2013-02-07 17:54:37 DEBUG nova.utils [req-1108df8f-
Binary Host Zone Status State Updated_At
nova-cert management nova enabled :-) 2013-02-07 12:24:28
nova-consoleauth management nova enabled :-) 2013-02-07 12:24:33
nova-scheduler management nova enabled :-) 2013-02-07 12:24:33
nova-compute irldxph010 nova enabled :-) 2013-02-07 12:24:31
root@management
quantum-server start/running, process 8459
root@management
quantum-dhcp-agent start/running, process 8493
root@management
quantum-l3-agent start/running, process 10903
root@management
quantum-
I created one private network and created one subnet for that network 192.168.0.0/24. I am able to spawn VM instance and i can access the cirros console. But ifconfig shows that there is no IP assigned to the eth0 of the VM.
I googled - web and openstack archive to debug it further. This mailing list was really helped me a lot in debugging this issue further. Thanks! to all the members for your efforts.
So in my case i can see that DHCP request from the VM is coming to the controller node. But there is no response from the DHCP agent. DHCP agent looks fine to me :
root@management
4 S quantum 8493 1 0 80 0 - 20040 ep_pol 13:12 ? 00:00:00 python /usr/bin/
5 S nobody 8751 1 0 80 0 - 6886 poll_s 13:12 ? 00:00:00 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=
1 S root 8752 8751 0 80 0 - 6879 pipe_w 13:12 ? 00:00:00 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=
0 S root 14276 24653 0 80 0 - 2028 pipe_w 17:59 pts/1 00:00:00 grep --color=auto dhcp
Host File :
root@management
fa:16:3e:
fa:16:3e:
192.168.0.3 is actually assigned to my VM and i can see it in openstack dashboard. To further debug it, i restarted the VM and dumped the flows on br-int in controller node. I can see following rules in the switch
ovs-ofctl output:
root@management
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=
cookie=0x0, duration=
cookie=0x0, duration=
All the incoming DHCP packets are actually matching the first rule, and its action is DROP.
Ovs-dpctl shows following rule
in_port(
So looking at the src/dst port i believe this rule was installed for DHCP packet match, and here also you can see that its dropping the packet. So this seems to be the reason that DHCP agent is not getting the DHCP request packet and hence not able to offer any IP address.
Do anybody can point out what can be the possible reason br-int is dropping these packet? Or at first place whether its seems the root cause of this problem to you ? :).
Please let me know if you need any other details to understand my setup/configura
Thanks!
Anil
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- neutron Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: