Bug 1393441
| Summary: | OPS Tools | Availability Monitoring | OS Checks | Getting Traceback on nova_api check when the check fails. Should be an appropriate error message. | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Leonid Natapov <lnatapov> |
| Component: | sensu | Assignee: | Martin Magr <mmagr> |
| Status: | CLOSED ERRATA | QA Contact: | Leonid Natapov <lnatapov> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | 10.0 (Newton) | CC: | mlopes, mrunge, oblaut |
| Target Milestone: | ga | Keywords: | Triaged |
| Target Release: | 10.0 (Newton) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | osops-tools-monitoring-oschecks-0.1-0.8.9f8354bgit.el7ost | Doc Type: | Bug Fix |
| Doc Text: |
Previously, during connection problems, the nova_api check would display a traceback instead of a clear message. With this update, the check now shows a clear message when there is a connection problem.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-12-14 16:36:18 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
fixed. Tested with osops-tools-monitoring-oschecks-0.1-0.8.9f8354bgit.el7ost. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-2950.html |
OPS Tools | Availability Monitoring | OS Checks | Getting Critical Traceback on nova_api check when the check fails. Should be an appropriate error message. ----- NOVA API ----------- CRITICAL: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/oschecks/utils.py", line 110, in safe_run method() File "/usr/lib/python2.7/site-packages/oschecks/nova.py", line 45, in _check_nova_api elapsed, flavors = utils.timeit(flavors_list) File "/usr/lib/python2.7/site-packages/oschecks/utils.py", line 97, in wrapper res = func(*arg, **kw) File "/usr/lib/python2.7/site-packages/oschecks/utils.py", line 105, in timeit return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/oschecks/nova.py", line 43, in flavors_list return list(client.flavors.list()) File "/usr/lib/python2.7/site-packages/novaclient/v2/flavors.py", line 132, in list return self._list("/flavors%s%s" % (detail, query_string), "flavors") File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 249, in _list resp, body = self.api.client.get(url) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 480, in get return self._cs_request(url, 'GET', **kwargs) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 436, in _cs_request self.authenticate() File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 593, in authenticate auth_url = self._v2_auth(auth_url) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 684, in _v2_auth return self._authenticate(url, body) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 697, in _authenticate **kwargs) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 431, in _time_request resp, body = self.request(url, method, **kwargs) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 396, in request **kwargs) File "/usr/lib/python2.7/site-packages/requests/api.py", line 57, in request return session.request(method=method, url=url, **kwargs) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 475, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 585, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 453, in send raise ConnectionError(err, request=request) ConnectionError: ('Connection aborted.', BadStatusLine("''",))