Bug 1393441 - OPS Tools | Availability Monitoring | OS Checks | Getting Traceback on nova_api check when the check fails. Should be an appropriate error message.
Summary: OPS Tools | Availability Monitoring | OS Checks | Getting Traceback on nova_...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: sensu
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ga
: 10.0 (Newton)
Assignee: Martin Magr
QA Contact: Leonid Natapov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-09 14:58 UTC by Leonid Natapov
Modified: 2018-06-24 09:32 UTC (History)
3 users (show)

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.
Clone Of:
Environment:
Last Closed: 2016-12-14 16:36:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 396166 0 None None None 2016-11-10 15:33:32 UTC
Red Hat Product Errata RHEA-2016:2950 0 normal SHIPPED_LIVE Operational Tools for Red Hat OpenStack Platform 10 Enhancement Advisory 2016-12-14 20:29:53 UTC

Description Leonid Natapov 2016-11-09 14:58:41 UTC
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("''",))

Comment 2 Leonid Natapov 2016-11-23 14:41:03 UTC
fixed.
Tested with osops-tools-monitoring-oschecks-0.1-0.8.9f8354bgit.el7ost.

Comment 4 errata-xmlrpc 2016-12-14 16:36:18 UTC
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


Note You need to log in before you can comment on or make changes to this bug.