inventory.py: all_get_neutron_data to handle 404

This allows the _get_neutron_data function to work in the ephemeral
heat case where only Heat exists in the keystone catalog. This
function will try to access the /ports API and will recieve
an HTTP 404 (not found) from the ephemeral Heat API.

Change-Id: I5afb567f0cf578562b1f1a596ed9b5648eaad144
This commit is contained in:
Dan Prince 2021-08-05 09:07:48 -04:00
parent f27786254a
commit ce71a5a144
1 changed files with 1 additions and 0 deletions

View File

@ -529,6 +529,7 @@ class TripleoInventory(object):
"generation.")
return None
except (openstack.connection.exceptions.EndpointNotFound,
openstack.exceptions.ResourceNotFound,
keystoneauth1.exceptions.catalog.EndpointNotFound):
LOG.warning("Neutron service not installed. Disabling use of "
"neutron as a source for inventory generation.")