More debugging.
Apparently, the gw is not added to the router so the problem must be somewhere around here:
https://github.com/openstack/networking-ovn/blob/9126c366ced27b773faffb3cc84093db7e23bc72/networking_ovn/common/ovn_client.py#L930-#L934
Either _get_v4_network_of_all_router_ports is returning no networks or router.get(l3.EXTERNAL_GW_INFO) is returning no info.
More debugging.
Apparently, the gw is not added to the router so the problem must be somewhere around here:
https:/ /github. com/openstack/ networking- ovn/blob/ 9126c366ced27b7 73faffb3cc84093 db7e23bc72/ networking_ ovn/common/ ovn_client. py#L930-#L934
Either _get_v4_ network_ of_all_ router_ ports is returning no networks or router. get(l3. EXTERNAL_ GW_INFO) is returning no info.