yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #50051
[Bug 1576470] [NEW] extra routes missing in namespace of l3-agent
Public bug reported:
following steps:
1、neutron router-gateway-set
2、create extra routes,nexthop and gw_port are in the same cidr
3、neutron router-gateway-clear
4、neutron router-gateway-set
then we find extra routes missing in namespace of l3-agent
[root@opencos2 ~(keystone_admin)]# neutron router-gateway-set r1 ext-net1
Set gateway for router r1
[root@opencos2 ~(keystone_admin)]# ip netns exec qrouter-ba5bcb86-8c5a-4a3a-be48-5bf09288154b route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 12.0.0.1 0.0.0.0 UG 0 0 0 qg-ad1ad708-15
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
14.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
15.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
16.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
[root@opencos2 ~(keystone_admin)]# neutron router-update r1 --routes type=dict list=true destination=122.163.0.0/24,nexthop=12.0.0.14
Updated router: r1
[root@opencos2 ~(keystone_admin)]# ip netns exec qrouter-ba5bcb86-8c5a-4a3a-be48-5bf09288154b route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 12.0.0.1 0.0.0.0 UG 0 0 0 qg-ad1ad708-15
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
14.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
15.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
16.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
122.163.0.0 12.0.0.14 255.255.255.0 UG 0 0 0 qg-ad1ad708-15
[root@opencos2 ~(keystone_admin)]# neutron router-gateway-clear r1
Removed gateway from router r1
[root@opencos2 ~(keystone_admin)]# ip netns exec qrouter-ba5bcb86-8c5a-4a3a-be48-5bf09288154b route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
[root@opencos2 ~(keystone_admin)]#
[root@opencos2 ~(keystone_admin)]# neutron router-gateway-set r1 ext-net1
Set gateway for router r1
[root@opencos2 ~(keystone_admin)]# ip netns exec qrouter-ba5bcb86-8c5a-4a3a-be48-5bf09288154b route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 12.0.0.1 0.0.0.0 UG 0 0 0 qg-b30e282f-99
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
14.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
15.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
16.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
[root@opencos2 ~(keystone_admin)]#
[root@opencos2 ~(keystone_admin)]# ip netns exec qrouter-ba5bcb86-8c5a-4a3a-be48-5bf09288154b route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 12.0.0.1 0.0.0.0 UG 0 0 0 qg-b30e282f-99
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
14.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
15.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
16.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
[root@opencos2 ~(keystone_admin)]# neutron router-show r1
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| distributed | False |
| external_gateway_info | {"network_id": "79b5712f-ab53-42b2-9985-b392188fc298", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "15c110ec-62c5-44aa-9f80-0b455ced331c", "ip_address": "12.0.0.98"}]} |
| ha | False |
| id | ba5bcb86-8c5a-4a3a-be48-5bf09288154b |
| name | r1 |
| routes | {"destination": "122.163.0.0/24", "nexthop": "12.0.0.14"} |
| status | ACTIVE |
| tenant_id | be58eaec789d44f296a65f96b944a9f5 |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
[root@opencos2 ~(keystone_admin)]# ip netns exec qrouter-ba5bcb86-8c5a-4a3a-be48-5bf09288154b route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 12.0.0.1 0.0.0.0 UG 0 0 0 qg-b30e282f-99
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
14.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
15.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
16.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
[root@opencos2 ~(keystone_admin)]#
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1576470
Title:
extra routes missing in namespace of l3-agent
Status in neutron:
New
Bug description:
following steps:
1、neutron router-gateway-set
2、create extra routes,nexthop and gw_port are in the same cidr
3、neutron router-gateway-clear
4、neutron router-gateway-set
then we find extra routes missing in namespace of l3-agent
[root@opencos2 ~(keystone_admin)]# neutron router-gateway-set r1 ext-net1
Set gateway for router r1
[root@opencos2 ~(keystone_admin)]# ip netns exec qrouter-ba5bcb86-8c5a-4a3a-be48-5bf09288154b route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 12.0.0.1 0.0.0.0 UG 0 0 0 qg-ad1ad708-15
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
14.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
15.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
16.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
[root@opencos2 ~(keystone_admin)]# neutron router-update r1 --routes type=dict list=true destination=122.163.0.0/24,nexthop=12.0.0.14
Updated router: r1
[root@opencos2 ~(keystone_admin)]# ip netns exec qrouter-ba5bcb86-8c5a-4a3a-be48-5bf09288154b route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 12.0.0.1 0.0.0.0 UG 0 0 0 qg-ad1ad708-15
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
14.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
15.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
16.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ad1ad708-15
122.163.0.0 12.0.0.14 255.255.255.0 UG 0 0 0 qg-ad1ad708-15
[root@opencos2 ~(keystone_admin)]# neutron router-gateway-clear r1
Removed gateway from router r1
[root@opencos2 ~(keystone_admin)]# ip netns exec qrouter-ba5bcb86-8c5a-4a3a-be48-5bf09288154b route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
[root@opencos2 ~(keystone_admin)]#
[root@opencos2 ~(keystone_admin)]# neutron router-gateway-set r1 ext-net1
Set gateway for router r1
[root@opencos2 ~(keystone_admin)]# ip netns exec qrouter-ba5bcb86-8c5a-4a3a-be48-5bf09288154b route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 12.0.0.1 0.0.0.0 UG 0 0 0 qg-b30e282f-99
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
14.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
15.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
16.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
[root@opencos2 ~(keystone_admin)]#
[root@opencos2 ~(keystone_admin)]# ip netns exec qrouter-ba5bcb86-8c5a-4a3a-be48-5bf09288154b route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 12.0.0.1 0.0.0.0 UG 0 0 0 qg-b30e282f-99
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
14.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
15.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
16.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
[root@opencos2 ~(keystone_admin)]# neutron router-show r1
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| distributed | False |
| external_gateway_info | {"network_id": "79b5712f-ab53-42b2-9985-b392188fc298", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "15c110ec-62c5-44aa-9f80-0b455ced331c", "ip_address": "12.0.0.98"}]} |
| ha | False |
| id | ba5bcb86-8c5a-4a3a-be48-5bf09288154b |
| name | r1 |
| routes | {"destination": "122.163.0.0/24", "nexthop": "12.0.0.14"} |
| status | ACTIVE |
| tenant_id | be58eaec789d44f296a65f96b944a9f5 |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
[root@opencos2 ~(keystone_admin)]# ip netns exec qrouter-ba5bcb86-8c5a-4a3a-be48-5bf09288154b route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 12.0.0.1 0.0.0.0 UG 0 0 0 qg-b30e282f-99
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
14.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
15.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
16.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-b30e282f-99
[root@opencos2 ~(keystone_admin)]#
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1576470/+subscriptions
Follow ups