yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #87038
[Bug 1942251] [NEW] Routes has not added after router restart
Public bug reported:
Environment: openstack Train installed with kolla-ansible in multinode mode; there are two separated network nodes in the cluster. Router has configured with static routes on two network nodes in HA mode. Example:
```
openstack router show -f json 18958d58-adf6-4998-a344-f74bc509b676
{
"admin_state_up": true,
"availability_zone_hints": [],
"availability_zones": [
"nova"
],
"created_at": "2021-08-31T09:59:57Z",
"description": "",
"distributed": false,
"external_gateway_info": null,
"flavor_id": null,
"ha": true,
"id": "18958d58-adf6-4998-a344-f74bc509b676",
"interfaces_info": [
{
"port_id": "169839bc-39a9-4efa-b2b5-869ab45cbc33",
"ip_address": "169.254.192.248",
"subnet_id": "d78b2ac7-1fe5-4b70-a07e-c5044f7bfcda"
},
{
"port_id": "396a8c07-bc0d-444a-8068-5434f3b8d9e9",
"ip_address": "172.29.9.1",
"subnet_id": "cefd937e-2811-469c-9c95-00ece7e17897"
},
{
"port_id": "9716682b-174c-43e4-9b0f-48276c2c887c",
"ip_address": "172.30.1.254",
"subnet_id": "0e4c8974-d81b-492b-a40f-d0f7542784b9"
},
{
"port_id": "de46c6f5-f6ca-4f14-8b21-2f771480c196",
"ip_address": "169.254.195.165",
"subnet_id": "d78b2ac7-1fe5-4b70-a07e-c5044f7bfcda"
}
],
"location": {
"cloud": "",
"region_name": "RegionPD9Over",
"zone": null,
"project": {
"id": "954718a6deca4897afcd44dc7d2b3c8d",
"name": "admin",
"domain_id": null,
"domain_name": "Default"
}
},
"name": "test1_router",
"project_id": "954718a6deca4897afcd44dc7d2b3c8d",
"revision_number": 22,
"routes": [
{
"destination": "172.178.178.0/24",
"nexthop": "172.29.9.2"
}
],
"status": "ACTIVE",
"tags": [],
"updated_at": "2021-08-31T18:15:02Z"
}
```
Routes are not added automatically after router reenable or l3 agent restart.
neutron-l3-agent.log:
```
2021-08-31 13:59:11.097 747 DEBUG neutron.agent.l3.router_info [-] Added route entry is '{'destination': '172.178.178.0/24', 'nexthop': '172.29.9.2'}' routes_updated /usr/lib/python3/dist-packages/neutron/agent/l3/router_info.py:190
2021-08-31 13:59:11.097 747 DEBUG neutron.agent.linux.utils [-] Running command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-18958d58-adf6-4998-a344-f74bc509b676', 'ip', 'route', 'replace', 'to', '172.178.178.0/24', 'via', '172.29.9.2'] create_process /usr/lib/python3/dist-packages/neutron/agent/linux/utils.py:87
2021-08-31 13:59:11.317 747 ERROR neutron.agent.linux.utils [-] Exit code: 2; Stdin: ; Stdout: ; Stderr: Error: Nexthop has invalid gateway.
```
** 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/1942251
Title:
Routes has not added after router restart
Status in neutron:
New
Bug description:
Environment: openstack Train installed with kolla-ansible in multinode mode; there are two separated network nodes in the cluster. Router has configured with static routes on two network nodes in HA mode. Example:
```
openstack router show -f json 18958d58-adf6-4998-a344-f74bc509b676
{
"admin_state_up": true,
"availability_zone_hints": [],
"availability_zones": [
"nova"
],
"created_at": "2021-08-31T09:59:57Z",
"description": "",
"distributed": false,
"external_gateway_info": null,
"flavor_id": null,
"ha": true,
"id": "18958d58-adf6-4998-a344-f74bc509b676",
"interfaces_info": [
{
"port_id": "169839bc-39a9-4efa-b2b5-869ab45cbc33",
"ip_address": "169.254.192.248",
"subnet_id": "d78b2ac7-1fe5-4b70-a07e-c5044f7bfcda"
},
{
"port_id": "396a8c07-bc0d-444a-8068-5434f3b8d9e9",
"ip_address": "172.29.9.1",
"subnet_id": "cefd937e-2811-469c-9c95-00ece7e17897"
},
{
"port_id": "9716682b-174c-43e4-9b0f-48276c2c887c",
"ip_address": "172.30.1.254",
"subnet_id": "0e4c8974-d81b-492b-a40f-d0f7542784b9"
},
{
"port_id": "de46c6f5-f6ca-4f14-8b21-2f771480c196",
"ip_address": "169.254.195.165",
"subnet_id": "d78b2ac7-1fe5-4b70-a07e-c5044f7bfcda"
}
],
"location": {
"cloud": "",
"region_name": "RegionPD9Over",
"zone": null,
"project": {
"id": "954718a6deca4897afcd44dc7d2b3c8d",
"name": "admin",
"domain_id": null,
"domain_name": "Default"
}
},
"name": "test1_router",
"project_id": "954718a6deca4897afcd44dc7d2b3c8d",
"revision_number": 22,
"routes": [
{
"destination": "172.178.178.0/24",
"nexthop": "172.29.9.2"
}
],
"status": "ACTIVE",
"tags": [],
"updated_at": "2021-08-31T18:15:02Z"
}
```
Routes are not added automatically after router reenable or l3 agent restart.
neutron-l3-agent.log:
```
2021-08-31 13:59:11.097 747 DEBUG neutron.agent.l3.router_info [-] Added route entry is '{'destination': '172.178.178.0/24', 'nexthop': '172.29.9.2'}' routes_updated /usr/lib/python3/dist-packages/neutron/agent/l3/router_info.py:190
2021-08-31 13:59:11.097 747 DEBUG neutron.agent.linux.utils [-] Running command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-18958d58-adf6-4998-a344-f74bc509b676', 'ip', 'route', 'replace', 'to', '172.178.178.0/24', 'via', '172.29.9.2'] create_process /usr/lib/python3/dist-packages/neutron/agent/linux/utils.py:87
2021-08-31 13:59:11.317 747 ERROR neutron.agent.linux.utils [-] Exit code: 2; Stdin: ; Stdout: ; Stderr: Error: Nexthop has invalid gateway.
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1942251/+subscriptions
Follow ups