Liberty - Neutron router have no ip
Hi,
I'm trying to install an Openstack test environment with 3 nodes. I installed the controller, the network and the compute server. When I create my network, my router and a Cirros VM, the instance get an IP address, but can't ping the default gateway (but can ping the dns server).
### ifconfig -a eth0 Link encap:Ethernet HWaddr FA:16:3E:7E:05:89 inet addr:10.0.0.3 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: fe80::f816:3eff:fe7e:589/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:27 errors:0 dropped:0 overruns:0 frame:0 TX packets:77 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2735 (2.6 KiB) TX bytes:4257 (4.1 KiB) 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:42 errors:0 dropped:0 overruns:0 frame:0 TX packets:42 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3720 (3.6 KiB) TX bytes:3720 (3.6 KiB) ### route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 ### cat /etc/resolv.conf search openstacklocal nameserver 10.0.0.2 ### ping -c 5 10.0.0.1 PING 10.0.0.1 (10.0.0.1): 56 data bytes --- 10.0.0.1 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss ### pinging nameservers #### ping -c 5 10.0.0.2 PING 10.0.0.2 (10.0.0.2): 56 data bytes 64 bytes from 10.0.0.2: seq=0 ttl=64 time=1.128 ms 64 bytes from 10.0.0.2: seq=1 ttl=64 time=0.364 ms 64 bytes from 10.0.0.2: seq=2 ttl=64 time=0.361 ms 64 bytes from 10.0.0.2: seq=3 ttl=64 time=0.352 ms 64 bytes from 10.0.0.2: seq=4 ttl=64 time=0.373 ms
When I check the network configurations inside my two namespaces (dhcp and router), I see that the router have no ip.
root@neumann:/etc/neutron# ip netns exec qrouter-283061e5-4b60-451f-b7cf-1862bb85f1f2 ip a 1: lo: <loopback,up,lower_up> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever
But I can see the good iptables rules inside the same namespace
root@neumann:/etc/neutron# ip netns exec qrouter-283061e5-4b60-451f-b7cf-1862bb85f1f2 iptables-save # Generated by iptables-save v1 ...