Comment 2 for bug 1999209

Revision history for this message
Liu Xie (liushy) wrote : Re: [ovn]dnat_adn_snat will not changed if updated fixed_ips of internal port

version:wallaby

reproduce steps:
1.Create a new port: neutron port-create share_net

id:3eb12869-dd08-425b-8071-9750b10fc463
fixed_ips:
{"subnet_id": "a4a2a463-4e6c-4bbe-a3c7-fc0bc7e9de39", "ip_address":"192.168.111.208"}

2.Create a new floatingip: neutron floatingip-create public_net

id:07eeb37f-27ec-4f3d-b201-a632ce3193b4
floating_ip_address:172.41.0.103

3.Associated floating IP: neutron floatingip-associate 07eeb37f-27ec-4f3d-b201-a632ce3193b4 3eb12869-dd08-425b-8071-9750b10fc463

4.Update fixed_ips of internal port:
neutron port-update --fixed-ip subnet_id=a4a2a463-4e6c-4bbe-a3c7-fc0bc7e9de39,ip_address=192.168.111.209 3eb12869-dd08-425b-8071-9750b10fc463

5.Query nat list in ovn-nb:
# ovn-nbctl lr-nat-list 403071bd-67a0-437e-bcbb-0cd5bc8078d0
TYPE EXTERNAL_IP EXTERNAL_PORT LOGICAL_IP EXTERNAL_MAC LOGICAL_PORT
dnat_and_snat 172.41.0.103 192.168.111.208

We found the dnat_and_snat entry not changed.
There is not a mechanism that notify floatingip update while internal port has changed, maybe we could fix it.