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:
parent
f27786254a
commit
ce71a5a144
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue