Can't reuse floating IP in DVR - Kilo (neutron)
Hi @ all.
I have a problem with DVR if I reuse my floating IP after I disassociate it from the instance. After reusing the same floatin ip on the same insance, I can't ping my external gateway anymore for 15 minutes. After this, it works from it's own.
And the really strange thing is, that my instances and my routers always use the next ip, and not the ip again, that is free again. Example:
create router:
virtual router ip : 192.168.102.10
delete router
create new router:
virtual router ip : 192.168.102.11
The same with the instances.
create instance:
ip : 192.168.0.20
delete instance
create new instance:
ip : 192.168.0.21
First. DVR on the Compute node, without a associated floatin ip. Ping to external Network works fine.
192.168.0.0/24 --> internal IP 192.168.102.0/23 --> external IP
[root@ostacktbl14 ~]# ip netns exec qrouter-7aa5ca7f-1c1e-43ca-9ec6-6478d739efc4 ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
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
48: qr-41e6384c-1d: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether fa:16:3e:01:ce:06 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.1/24 brd 192.168.0.255 scope global qr-41e6384c-1d
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fe01:ce06/64 scope link
valid_lft forever preferred_lft forever
[root@ostacktbl14 ~]# ip netns exec qrouter-7aa5ca7f-1c1e-43ca-9ec6-6478d739efc4 route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qr-41e6384c-1d
[root@ostacktbl14 ~]# ip netns exec qrouter-7aa5ca7f-1c1e-43ca-9ec6-6478d739efc4 ssh cirros@192.168.0.6
Warning: Permanently added '192.168.0.6' (RSA) to the list of known hosts.
cirros@192.168.0.6's password:
$ ping 192.168.102.10
PING 192.168.102.10 (192.168.102.10): 56 data bytes
64 bytes from 192.168.102.10: seq=0 ttl=63 time=3.135 ms
64 bytes from 192.168.102.10: seq=1 ttl=63 time=1.284 ms
With a new associated floatin ip: Floating IP = 192.168.102.253
[root@ostacktbl14 ~]# ip netns
fip-615aa46d-b9eb-45d0-b323-5e8cf3afbc39
qrouter-7aa5ca7f-1c1e-43ca-9ec6-6478d739efc4
[root@ostacktbl14 ~]# ip netns exec fip-615aa46d-b9eb-45d0-b323-5e8cf3afbc39 ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
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
2: fpr-7aa5ca7f-1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 3a:cc:90:83:f8:83 brd ff:ff:ff:ff:ff:ff
inet 169.254.31.29/31 scope global fpr-7aa5ca7f-1
valid_lft forever preferred_lft forever
inet6 fe80::38cc ...