Add logs for metadata reachability troubleshooting
Add logging the exception messages raised by metedata service connectivity problems. Change-Id: Ia62353f935dd35161feaaa39cce46e827ec966ab Implements: blueprint logging-metadata-reachability-problems
This commit is contained in:
parent
ed8a41fc49
commit
3c35d0502e
|
@ -276,5 +276,8 @@ class BaseHTTPMetadataService(BaseMetadataService):
|
|||
LOG.exception(exc)
|
||||
raise exception.CertificateVerifyFailed(
|
||||
"HTTPS certificate validation failed.")
|
||||
except (requests.ConnectionError, requests.Timeout) as exc:
|
||||
LOG.exception(exc)
|
||||
raise
|
||||
|
||||
return response
|
||||
|
|
Loading…
Reference in New Issue