Add more detail info to EndpointNotFound
When EndpointNotFound exception happens, the detail contains service
value only, but the exception depends on the other values also.
So this patch adds these value to EndpointNotFound exception for
more easy debugging.
Change-Id: I05095e6ce56bc62485e964241047fd3b3864f181
diff --git a/tempest/lib/auth.py b/tempest/lib/auth.py
index 0586346..e269fd1 100644
--- a/tempest/lib/auth.py
+++ b/tempest/lib/auth.py
@@ -319,7 +319,9 @@
_base_url = ep['endpoints'][0].get(endpoint_type)
break
if _base_url is None:
- raise exceptions.EndpointNotFound(service)
+ raise exceptions.EndpointNotFound(
+ "service: %s, region: %s, endpoint_type: %s" %
+ (service, region, endpoint_type))
parts = urlparse.urlparse(_base_url)
if filters.get('api_version', None) is not None: