can't ping floating ip

Asked by cai qi shen

I have installed Openstack folsom and quantum,it looks like that everything works well except the floating ip.
when i associate a floating ip to a port, i can only ping it int that namespace.10.10.9.0/24 is the fixed ip pool and 10.107.219.140/30 is the floating ip pool. I assigned 10.107.219.185 on br-ex as the management ip.
 It looks like the following:
 root@ubuntu-control:~/Desktop# ping 10.107.219.142
PING 10.107.219.142 (10.107.219.142) 56(84) bytes of data.
From 10.107.219.185 icmp_seq=1 Destination Host Unreachable
From 10.107.219.185 icmp_seq=2 Destination Host Unreachable
From 10.107.219.185 icmp_seq=3 Destination Host Unreachable
^Z
[5]+ Stopped ping 10.107.219.142

root@ubuntu-control:~/Desktop# ip netns exec qrouter-7bc7440c-f7ce-4c08-b0c5-d85676b13902 ping 10.107.219.142
PING 10.107.219.142 (10.107.219.142) 56(84) bytes of data.
64 bytes from 10.107.219.142: icmp_req=1 ttl=64 time=36.2 ms
64 bytes from 10.107.219.142: icmp_req=2 ttl=64 time=0.223 ms
64 bytes from 10.107.219.142: icmp_req=3 ttl=64 time=0.137 ms
^Z
[6]+ Stopped ip netns exec qrouter-7bc7440c-f7ce-4c08-b0c5-d85676b13902 ping 10.107.219.142

root@ubuntu-control:~/Desktop# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.107.219.1 0.0.0.0 UG 0 0 0 br-ex
10.107.219.0 0.0.0.0 255.255.255.0 U 0 0 0 br-ex
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth1

root@ubuntu-control:~/Desktop# ip netns exec qrouter-7bc7440c-f7ce-4c08-b0c5-d85676b13902 route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.9.0 0.0.0.0 255.255.255.0 U 0 0 0 qr-86b7b3e1-2a
10.107.219.140 0.0.0.0 255.255.255.252 U 0 0 0 qg-e3c6631b-92

Bridge br-ex
        Port "eth0"
            Interface "eth0"
        Port br-ex
            Interface br-ex
                type: internal
        Port "qg-e3c6631b-92"
            Interface "qg-e3c6631b-92"
                type: internal

br-ex Link encap:Ethernet HWaddr 70:7b:e8:ed:1a:d8
          inet addr:10.107.219.185 Bcast:10.107.219.255 Mask:255.255.255.0
          UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
          RX packets:1617547 errors:0 dropped:0 overruns:0 frame:0
          TX packets:531487 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:234012342 (234.0 MB) TX bytes:1443016776 (1.4 GB)

I have followed the suggestion where the question "can't ping router's ip" provides, but it didn't work. Any one can explain why i can't ping the floating ip?

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
cai qi shen
Solved:
Last query:
Last reply:
Revision history for this message
yong sheng gong (gongysh) said :
#1

Have u enabled the VM's ssh port by security group:
nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0
?

Revision history for this message
cai qi shen (caiqishen) said :
#2

Thank you, yong sheng gong, I have add this rule, it llooks like the following

root@ubuntu-control:/# nova secgroup-list-rules default
+-------------+-----------+---------+-----------+--------------+
| IP Protocol | From Port | To Port | IP Range | Source Group |
+-------------+-----------+---------+-----------+--------------+
| icmp | -1 | -1 | 0.0.0.0/0 | |
| tcp | 22 | 22 | 0.0.0.0/0 | |
+-------------+-----------+---------+-----------+--------------+

Revision history for this message
cai qi shen (caiqishen) said :
#3

I think the packet doesn't go into the router's namespace
when i "ping 10.107.219.142" and "ip netns exec qrouter-7bc7440c-f7ce-4c08-b0c5-d85676b13902 tcpdump arp -i qg-e3c6631b-92", i catch nothing, but when i execute "tcpdump arp -i eth0", i got this "15:32:00.686586 ARP, Request who-has 10.107.219.142 tell ubuntu-compute-3.local, length 46".

Revision history for this message
cai qi shen (caiqishen) said :
#4

I have solved this problem. It is because that the floating ip pool is not in the same subnet with the ip of br-ex