DVR HA Router Update Error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Medium
|
Unassigned |
Bug Description
Hi, we are getting the error below when removing a tenant network port from a router.
- pyroute2.
This situation happens with the following scenario:
1. Create a subnet from a "subnet pool" with custom CIDR prefix.
2. Add interface from this subnet to router. (After adding both router_
3. If network is not used anymore then we are trying to delete it. (At first deleting the instances)
4. Remove the added interface for this subnet from the router.
5. Remove the subnet.
6. Now try to create a subnet from the same "subnet pool" with same CIRD. We are getting the same CIDR subnet which was deleted before.
7. Add interface from this subnet to router. (After adding only router_
8. Create an instance from the network which uses that tenant subnet only. Instance DNS queries are not working! (This is the step which we recognized that something is wrong)
9. Delete the created instances. (Instance create-delete step is optional)
10. Now try removing the added interface for this subnet from the router. Now we are getting "pyroute2.
Until restarting the Neutron L3 Agent on all controller nodes:
- We always getting that error when adding the interface from that subnet to router. If we are getting this error then port shown as DOWN on router page and router_
- We always getting the same error when deleting the interface which we already added.
11. Restart the Neutron L3 Agents and everything is ok.
Do you have any idea about this situation? We are using OVS and DVR.
After adding subnet to router why sometimes we saw only one port?
- network:
- network:
Environment Details:
OpenStack Victoria Cluster installed via kolla-ansible to Ubuntu 20.04.2 LTS Hosts. (Kernel:
There exist 5 controller+network node.
"neutron-
OpenvSwitch used in DVR mode with router HA configured. (l3_ha = true)
We are using a single centralized neutron router for connecting all tenant networks to provider network.
We are using bgp_dragent to announce unique tenant networks.
Tenant network type: vxlan
External network type: vlan
Changed in neutron: | |
importance: | Undecided → Medium |
summary: |
- DVR Router Update Error + DVR HA Router Update Error |
Hello:
I deployed an environment with 3 HA controllers and 2 compute nodes. The L3 agent mode of the controllers was "dvr_snat" and the compute nodes "dvr".
I executed the following commands: https:/ /paste. opendev. org/show/ 812228/
When the subnet was added to the router, the router routes of the instance in the controllers were:
[root@controller-0 ~]# ip netns exec $router ip r
10.10.0.0/26 dev qr-b66d5313-71 proto kernel scope link src 10.10.0.1
169.254.107.94/31 dev rfp-72922eaf-3 proto kernel scope link src 169.254.107.94
When the subnet was deleted:
[root@controller-0 ~]# ip netns exec $router ip r
169.254.107.94/31 dev rfp-72922eaf-3 proto kernel scope link src 169.254.107.94
The route for the subnet CIDR was correctly added and removed and no error was found in the L3 agent logs, thus I was not able to reproduce the error you reported. Did I miss something in my deployment?
BTW, I was using Wallaby.
Regards.