yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #95396
[Bug 2099982] [NEW] [ovn] Removal of IPv6 subnet from the public network is not reflected in LRs
Public bug reported:
Description
===========
Related-to: https://bugs.launchpad.net/neutron/+bug/2099981 (was found
together)
While adding IPv6 subnet to the public network, all logical routers are getting updated with an IPv6 address.
However, when IPv6 subnet is being removed from the public network, update of logical routers does not happen.
How to reproduce
================
Here we assume that https://bugs.launchpad.net/neutron/+bug/2099981 was reproduced and you have environment with IPv4 and IPv6 subnets in a public network:
```
root@aio1-utility-container-6c7d2d44:/# openstack subnet list --network public
+--------------------------------------+------------------+--------------------------------------+----------------------+
| ID | Name | Network | Subnet |
+--------------------------------------+------------------+--------------------------------------+----------------------+
| 91f6448f-0927-4ef6-973b-203b996b960f | public-subnet | 06e11d8a-ff27-4b31-9b36-88419312ce20 | 172.29.248.0/22 |
| c9f4d361-4057-476a-b708-7337cf5e477e | public-v6-subnet | 06e11d8a-ff27-4b31-9b36-88419312ce20 | 2001:db8:300:1::/64 |
+--------------------------------------+------------------+--------------------------------------+----------------------+
root@aio1-utility-container-6c7d2d44:/#
```
And we have a logical router which was updated to have an IPv6:
root@aio1-neutron-ovn-northd-container-a20c0cfc:/# ovn-nbctl get Logical_Router neutron-4172f3cb-743d-43b9-8e7d-4c1d3cd798a6 ports
[13884c93-4e19-4707-9173-0cfce02fce4c, 5115a2f4-1d99-4432-a5bc-edcee3ee4eb2]
root@aio1-neutron-ovn-northd-container-a20c0cfc:/# ovn-nbctl list Logical_Router_Port 13884c93-4e19-4707-9173-0cfce02fce4c
_uuid : 13884c93-4e19-4707-9173-0cfce02fce4c
dhcp_relay : []
enabled : []
external_ids : {"neutron:is_ext_gw"=True, "neutron:network_name"=neutron-06e11d8a-ff27-4b31-9b36-88419312ce20, "neutron:revision_number"="6", "neutron:router_name"="4172f3cb-743d-43b9-8e7d-4c1d3cd798a6", "neutron:subnet_ids"="91f6448f-0927-4ef6-973b-203b996b960f c9f4d361-4057-476a-b708-7337cf5e477e"}
gateway_chassis : [8b135f0b-b1de-4b93-baff-edd617b13cca]
ha_chassis_group : []
ipv6_prefix : []
ipv6_ra_configs : {address_mode=slaac, mtu="1500", send_periodic="false"}
mac : "fa:16:3e:be:c1:c7"
name : lrp-6cfda7d8-8086-49f9-ada1-caedb2575c8a
networks : ["172.29.249.118/22", "2001:db8:300:1:f816:3eff:febe:c1c7/64"]
options : {gateway_mtu="1442", reside-on-redirect-chassis="true"}
peer : []
status : {hosting-chassis="11af7f06-3288-416e-a5c9-ad92bfd3388f"}
root@aio1-neutron-ovn-northd-container-a20c0cfc:/#
Now we remove IPv6 subnet from the router:
root@aio1-utility-container-6c7d2d44:/# openstack subnet delete c9f4d361-4057-476a-b708-7337cf5e477e
root@aio1-utility-container-6c7d2d44:/# openstack subnet list --network public
+--------------------------------------+---------------+--------------------------------------+-----------------+
| ID | Name | Network | Subnet |
+--------------------------------------+---------------+--------------------------------------+-----------------+
| 91f6448f-0927-4ef6-973b-203b996b960f | public-subnet | 06e11d8a-ff27-4b31-9b36-88419312ce20 | 172.29.248.0/22 |
+--------------------------------------+---------------+--------------------------------------+-----------------+
root@aio1-utility-container-6c7d2d44:/#
Router still keeps an IPv6 address and subnet:
root@aio1-neutron-ovn-northd-container-a20c0cfc:/# ovn-nbctl get Logical_Router_Port 13884c93-4e19-4707-9173-0cfce02fce4c networks external_ids
["172.29.249.118/22", "2001:db8:300:1:f816:3eff:febe:c1c7/64"]
{"neutron:is_ext_gw"=True, "neutron:network_name"=neutron-06e11d8a-ff27-4b31-9b36-88419312ce20, "neutron:revision_number"="6", "neutron:router_name"="4172f3cb-743d-43b9-8e7d-4c1d3cd798a6", "neutron:subnet_ids"="91f6448f-0927-4ef6-973b-203b996b960f c9f4d361-4057-476a-b708-7337cf5e477e"}
root@aio1-neutron-ovn-northd-container-a20c0cfc:/#
** Affects: neutron
Importance: Undecided
Status: New
** Summary changed:
- Removal of IPv6 subnet from the public network is not reflected in LRs
+ [ovn] Removal of IPv6 subnet from the public network is not reflected in LRs
** Description changed:
Description
===========
Related-to: https://bugs.launchpad.net/neutron/+bug/2099981 (was found
together)
While adding IPv6 subnet to the public network, all logical routers are getting updated with an IPv6 address.
However, when IPv6 subnet is being removed from the public network, update of logical routers does not happen.
-
How to reproduce
================
Here we assume that https://bugs.launchpad.net/neutron/+bug/2099981 was reproduced and you have environment with IPv4 and IPv6 subnets in a public network:
```
root@aio1-utility-container-6c7d2d44:/# openstack subnet list --network public
+--------------------------------------+------------------+--------------------------------------+----------------------+
| ID | Name | Network | Subnet |
+--------------------------------------+------------------+--------------------------------------+----------------------+
| 91f6448f-0927-4ef6-973b-203b996b960f | public-subnet | 06e11d8a-ff27-4b31-9b36-88419312ce20 | 172.29.248.0/22 |
- | c9f4d361-4057-476a-b708-7337cf5e477e | public-v6-subnet | 06e11d8a-ff27-4b31-9b36-88419312ce20 | 2a06:2982:300:1::/64 |
+ | c9f4d361-4057-476a-b708-7337cf5e477e | public-v6-subnet | 06e11d8a-ff27-4b31-9b36-88419312ce20 | 2001:db8:300:1::/64 |
+--------------------------------------+------------------+--------------------------------------+----------------------+
root@aio1-utility-container-6c7d2d44:/#
```
And we have a logical router which was updated to have an IPv6:
root@aio1-neutron-ovn-northd-container-a20c0cfc:/# ovn-nbctl get Logical_Router neutron-4172f3cb-743d-43b9-8e7d-4c1d3cd798a6 ports
[13884c93-4e19-4707-9173-0cfce02fce4c, 5115a2f4-1d99-4432-a5bc-edcee3ee4eb2]
root@aio1-neutron-ovn-northd-container-a20c0cfc:/# ovn-nbctl list Logical_Router_Port 13884c93-4e19-4707-9173-0cfce02fce4c
_uuid : 13884c93-4e19-4707-9173-0cfce02fce4c
dhcp_relay : []
enabled : []
external_ids : {"neutron:is_ext_gw"=True, "neutron:network_name"=neutron-06e11d8a-ff27-4b31-9b36-88419312ce20, "neutron:revision_number"="6", "neutron:router_name"="4172f3cb-743d-43b9-8e7d-4c1d3cd798a6", "neutron:subnet_ids"="91f6448f-0927-4ef6-973b-203b996b960f c9f4d361-4057-476a-b708-7337cf5e477e"}
gateway_chassis : [8b135f0b-b1de-4b93-baff-edd617b13cca]
ha_chassis_group : []
ipv6_prefix : []
ipv6_ra_configs : {address_mode=slaac, mtu="1500", send_periodic="false"}
mac : "fa:16:3e:be:c1:c7"
name : lrp-6cfda7d8-8086-49f9-ada1-caedb2575c8a
- networks : ["172.29.249.118/22", "2a06:2982:300:1:f816:3eff:febe:c1c7/64"]
+ networks : ["172.29.249.118/22", "2001:db8:300:1:f816:3eff:febe:c1c7/64"]
options : {gateway_mtu="1442", reside-on-redirect-chassis="true"}
peer : []
status : {hosting-chassis="11af7f06-3288-416e-a5c9-ad92bfd3388f"}
root@aio1-neutron-ovn-northd-container-a20c0cfc:/#
-
Now we remove IPv6 subnet from the router:
root@aio1-utility-container-6c7d2d44:/# openstack subnet delete c9f4d361-4057-476a-b708-7337cf5e477e
root@aio1-utility-container-6c7d2d44:/# openstack subnet list --network public
+--------------------------------------+---------------+--------------------------------------+-----------------+
| ID | Name | Network | Subnet |
+--------------------------------------+---------------+--------------------------------------+-----------------+
| 91f6448f-0927-4ef6-973b-203b996b960f | public-subnet | 06e11d8a-ff27-4b31-9b36-88419312ce20 | 172.29.248.0/22 |
+--------------------------------------+---------------+--------------------------------------+-----------------+
- root@aio1-utility-container-6c7d2d44:/#
-
+ root@aio1-utility-container-6c7d2d44:/#
Router still keeps an IPv6 address and subnet:
root@aio1-neutron-ovn-northd-container-a20c0cfc:/# ovn-nbctl get Logical_Router_Port 13884c93-4e19-4707-9173-0cfce02fce4c networks external_ids
- ["172.29.249.118/22", "2a06:2982:300:1:f816:3eff:febe:c1c7/64"]
+ ["172.29.249.118/22", "2001:db8:300:1:f816:3eff:febe:c1c7/64"]
{"neutron:is_ext_gw"=True, "neutron:network_name"=neutron-06e11d8a-ff27-4b31-9b36-88419312ce20, "neutron:revision_number"="6", "neutron:router_name"="4172f3cb-743d-43b9-8e7d-4c1d3cd798a6", "neutron:subnet_ids"="91f6448f-0927-4ef6-973b-203b996b960f c9f4d361-4057-476a-b708-7337cf5e477e"}
root@aio1-neutron-ovn-northd-container-a20c0cfc:/#
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2099982
Title:
[ovn] Removal of IPv6 subnet from the public network is not reflected
in LRs
Status in neutron:
New
Bug description:
Description
===========
Related-to: https://bugs.launchpad.net/neutron/+bug/2099981 (was found
together)
While adding IPv6 subnet to the public network, all logical routers are getting updated with an IPv6 address.
However, when IPv6 subnet is being removed from the public network, update of logical routers does not happen.
How to reproduce
================
Here we assume that https://bugs.launchpad.net/neutron/+bug/2099981 was reproduced and you have environment with IPv4 and IPv6 subnets in a public network:
```
root@aio1-utility-container-6c7d2d44:/# openstack subnet list --network public
+--------------------------------------+------------------+--------------------------------------+----------------------+
| ID | Name | Network | Subnet |
+--------------------------------------+------------------+--------------------------------------+----------------------+
| 91f6448f-0927-4ef6-973b-203b996b960f | public-subnet | 06e11d8a-ff27-4b31-9b36-88419312ce20 | 172.29.248.0/22 |
| c9f4d361-4057-476a-b708-7337cf5e477e | public-v6-subnet | 06e11d8a-ff27-4b31-9b36-88419312ce20 | 2001:db8:300:1::/64 |
+--------------------------------------+------------------+--------------------------------------+----------------------+
root@aio1-utility-container-6c7d2d44:/#
```
And we have a logical router which was updated to have an IPv6:
root@aio1-neutron-ovn-northd-container-a20c0cfc:/# ovn-nbctl get Logical_Router neutron-4172f3cb-743d-43b9-8e7d-4c1d3cd798a6 ports
[13884c93-4e19-4707-9173-0cfce02fce4c, 5115a2f4-1d99-4432-a5bc-edcee3ee4eb2]
root@aio1-neutron-ovn-northd-container-a20c0cfc:/# ovn-nbctl list Logical_Router_Port 13884c93-4e19-4707-9173-0cfce02fce4c
_uuid : 13884c93-4e19-4707-9173-0cfce02fce4c
dhcp_relay : []
enabled : []
external_ids : {"neutron:is_ext_gw"=True, "neutron:network_name"=neutron-06e11d8a-ff27-4b31-9b36-88419312ce20, "neutron:revision_number"="6", "neutron:router_name"="4172f3cb-743d-43b9-8e7d-4c1d3cd798a6", "neutron:subnet_ids"="91f6448f-0927-4ef6-973b-203b996b960f c9f4d361-4057-476a-b708-7337cf5e477e"}
gateway_chassis : [8b135f0b-b1de-4b93-baff-edd617b13cca]
ha_chassis_group : []
ipv6_prefix : []
ipv6_ra_configs : {address_mode=slaac, mtu="1500", send_periodic="false"}
mac : "fa:16:3e:be:c1:c7"
name : lrp-6cfda7d8-8086-49f9-ada1-caedb2575c8a
networks : ["172.29.249.118/22", "2001:db8:300:1:f816:3eff:febe:c1c7/64"]
options : {gateway_mtu="1442", reside-on-redirect-chassis="true"}
peer : []
status : {hosting-chassis="11af7f06-3288-416e-a5c9-ad92bfd3388f"}
root@aio1-neutron-ovn-northd-container-a20c0cfc:/#
Now we remove IPv6 subnet from the router:
root@aio1-utility-container-6c7d2d44:/# openstack subnet delete c9f4d361-4057-476a-b708-7337cf5e477e
root@aio1-utility-container-6c7d2d44:/# openstack subnet list --network public
+--------------------------------------+---------------+--------------------------------------+-----------------+
| ID | Name | Network | Subnet |
+--------------------------------------+---------------+--------------------------------------+-----------------+
| 91f6448f-0927-4ef6-973b-203b996b960f | public-subnet | 06e11d8a-ff27-4b31-9b36-88419312ce20 | 172.29.248.0/22 |
+--------------------------------------+---------------+--------------------------------------+-----------------+
root@aio1-utility-container-6c7d2d44:/#
Router still keeps an IPv6 address and subnet:
root@aio1-neutron-ovn-northd-container-a20c0cfc:/# ovn-nbctl get Logical_Router_Port 13884c93-4e19-4707-9173-0cfce02fce4c networks external_ids
["172.29.249.118/22", "2001:db8:300:1:f816:3eff:febe:c1c7/64"]
{"neutron:is_ext_gw"=True, "neutron:network_name"=neutron-06e11d8a-ff27-4b31-9b36-88419312ce20, "neutron:revision_number"="6", "neutron:router_name"="4172f3cb-743d-43b9-8e7d-4c1d3cd798a6", "neutron:subnet_ids"="91f6448f-0927-4ef6-973b-203b996b960f c9f4d361-4057-476a-b708-7337cf5e477e"}
root@aio1-neutron-ovn-northd-container-a20c0cfc:/#
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2099982/+subscriptions