Bug 2182462 - Unable to create lrouter for : neutron_lib.exceptions.l3.RouterNotFound: Router could not be found [NEEDINFO]
Summary: Unable to create lrouter for : neutron_lib.exceptions.l3.RouterNotFound: Rout...
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Lucas Alvares Gomes
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-28 18:06 UTC by Mikolaj Ciecierski
Modified: 2023-08-14 14:51 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-09 13:35:20 UTC
Target Upstream Version:
Embargoed:
mciecier: needinfo? (lmartins)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-23793 0 None None None 2023-03-28 18:06:55 UTC

Description Mikolaj Ciecierski 2023-03-28 18:06:06 UTC
Description of problem:

After overcloud cloud is restored from snapshot and we try to create overcloud resources, such as glance image, flavor, kaypair and router, neutron reports problem while creating router.

In neutron server log I can see: 

logs/controller-0/var/log/containers/neutron/server.log.gz    15280:2023-03-28 11:07:00.778 30 DEBUG neutron.db.ovn_revision_numbers_db [req-a7973501-9f7e-49e5-95a8-f6ad12556aeb 2e89dee710cd4db59865715ae83b9f41 07a0d035a5b946e6b7d34f2fc5cc1c26 - defaul
t default] create_initial_revision uuid=935b9e63-9d4f-4fea-8776-4fef44e836fe, type=routers, rev=-1 create_initial_revision /usr/lib/python3.9/site-packages/neutron/db/ovn_revision_numbers_db.py:104                                                                                                                                                                                      
15283:2023-03-28 11:07:00.945 30 ERROR neutron.services.ovn_l3.plugin [req-a7973501-9f7e-49e5-95a8-f6ad12556aeb 2e89dee710cd4db59865715ae83b9f41 07a0d035a5b946e6b7d34f2fc5cc1c26 - default default] Unable to create lrouter for 935b9e63-9d4f-4fea-8776-4fef44e836fe: neutron_lib.exceptions.l3.RouterNotFound: Router 935b9e63-9d4f-4fea-8776-4fef44e836fe could not be found           
15287:2023-03-28 11:07:01.203 30 DEBUG neutron.api.rpc.agentnotifiers.l3_rpc_agent_api [req-a7973501-9f7e-49e5-95a8-f6ad12556aeb 2e89dee710cd4db59865715ae83b9f41 07a0d035a5b946e6b7d34f2fc5cc1c26 - default default] Fanout notify agent at l3_agent the message router_deleted on router 935b9e63-9d4f-4fea-8776-4fef44e836fe _notification_fanout /usr/lib/python3.9/site-packages/neutro
n/api/rpc/agentnotifiers/l3_rpc_agent_api.py:118                                                                                                                                              15602:2023-03-28 11:08:41.488 35 DEBUG neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.maintenance [req-f85c6602-3c81-44c1-a9bd-4b34fd19fe12 - - - - -] Maintenance task: Fixing resource 93
5b9e63-9d4f-4fea-8776-4fef44e836fe (type: routers) at delete check_for_inconsistencies /usr/lib/python3.9/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/maintenance.py:381  15603:2023-03-28 11:08:41.489 35 DEBUG neutron.db.ovn_revision_numbers_db [req-f85c6602-3c81-44c1-a9bd-4b34fd19fe12 - - - - -] delete_revision(935b9e63-9d4f-4fea-8776-4fef44e836fe) delete_revision /usr/lib/python3.9/site-packages/neutron/db/ovn_revision_numbers_db.py:118


Command of router creation: 

openstack router create 80cf6d1cbd_router

2023-03-28 11:06:56 | /usr/lib/python3.9/site-packages/barbicanclient/__init__.py:57: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead.
2023-03-28 11:06:56 |   warnings.warn("The %s module is moved to barbicanclient/v1 "
2023-03-28 11:06:58 | Creating router internal_net_80cf6d1cbd_router
2023-03-28 11:07:00 | /usr/lib/python3.9/site-packages/barbicanclient/__init__.py:57: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead.
2023-03-28 11:07:00 |   warnings.warn("The %s module is moved to barbicanclient/v1 "
2023-03-28 11:07:01 | ResourceNotFound: 404: Client Error for url: https://[2620:52:0:13b8:5054:ff:fe3e:a2]:13696/v2.0/routers, Router 935b9e63-9d4f-4fea-8776-4fef44e836fe could not be found

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Deploy 17.0 ga ipv6 environment with ovn, coposable topology(controller,networker,database, ceph, computes)
2. Save overcloud environment in snapshot.
3. Restore overcloud environment from snapshot.
4. Try to create openstack router on overcloud after overcloud is restored.

Actual results:
15283:2023-03-28 11:07:00.945 30 ERROR neutron.services.ovn_l3.plugin [req-a7973501-9f7e-49e5-95a8-f6ad12556aeb 2e89dee710cd4db59865715ae83b9f41 07a0d035a5b946e6b7d34f2fc5cc1c26 - default default] Unable to create lrouter for 935b9e63-9d4f-4fea-8776-4fef44e836fe: neutron_lib.exceptio

Expected results:
Router is created without error

Additional info:

Comment 2 Sofer Athlan-Guyot 2023-05-09 13:35:20 UTC
Closing because of old age and not seen recently.


Note You need to log in before you can comment on or make changes to this bug.