Description of problem: vm creation is failing, problem seems related to nova getting timeout trying to retrieve tenant's ports: 2023-06-14 10:39:12.837 30 ERROR nova.api.openstack.wsgi keystoneauth1.exceptions.connection.ConnectTimeout: Request to http://$ip:9696/v2.0/ports?tenant_id=$uuid&fields=id timed out Running openstack port list --tenant $tenant takes 1min and 50 seconds for something like 900 ports. Version-Release number of selected component (if applicable): RHOSP 16.1.8 witch opflex and cisco's plugins How reproducible: Steps to Reproduce: 1. find (or create) a tenant with a lot of ports from different subnets (>900 in this case) 2. try to create a vm (openstack server create --flavor xxx --image xxx --network test-net test-vm) Actual results: listing tenant's ports is taking something like 2 minutes, causing nova's instance creation workflow to timing out. Expected results: listing tenant's ports to be more efficient (referring for example to https://bugs.launchpad.net/neutron/+bug/2016704 or https://review.opendev.org/c/openstack/neutron/+/790691)