Bug 1393457 - OPS Tools | Availability Monitoring | OS Checks | Getting Critical Traceback on neutron_api check when the check fails. Should be an appropriate error message.
Summary: OPS Tools | Availability Monitoring | OS Checks | Getting Critical Traceback ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: sensu
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
unspecified
high
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 15:25 UTC by Leonid Natapov
Modified: 2016-12-14 16:36 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 neutron_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:27 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 14:47:02 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 15:25:10 UTC
OS Checks | Getting Critical Traceback on neutron_api check when the check fails. Should be an appropriate error message.

----


    NEUTRON_API
    ------------
     
    output
    No handlers could be found for logger "keystoneauth.identity.generic.base"
    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/neutron.py", line 40, in _check_neutron_api
        options, args, client = neutron.setup()
      File "/usr/lib/python2.7/site-packages/oschecks/utils.py", line 241, in setup
        return options, args, self.neutron.client_manager.neutron
      File "/usr/lib/python2.7/site-packages/neutronclient/common/clientmanager.py", line 41, in __get__
        self._handle = self.factory(instance)
      File "/usr/lib/python2.7/site-packages/neutronclient/neutron/client.py", line 34, in make_client
        instance.initialize()
      File "/usr/lib/python2.7/site-packages/neutronclient/common/clientmanager.py", line 122, in initialize
        httpclient.authenticate()
      File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 328, in authenticate
        self.get_token()
      File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 127, in get_token
        return self.session.get_token(auth or self.auth)
      File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 755, in get_token
        return (self.get_auth_headers(auth) or {}).get('X-Auth-Token')
      File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 733, in get_auth_headers
        return auth.get_headers(self, **kwargs)
      File "/usr/lib/python2.7/site-packages/keystoneauth1/plugin.py", line 90, in get_headers
        token = self.get_token(session)
      File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 90, in get_token
        return self.get_access(session).auth_token
      File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 136, in get_access
        self.auth_ref = self.get_auth_ref(session)
      File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 181, in get_auth_ref
        return self._plugin.get_auth_ref(session, **kwargs)
      File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/v2.py", line 65, in get_auth_ref
        authenticated=False, log=False)
      File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 681, in post
        return self.request(url, 'POST', **kwargs)
      File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
        return wrapped(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 555, in request
        resp = send(**kwargs)
      File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 605, in _send_request
        raise exceptions.ConnectFailure(msg)
    ConnectFailure: Unable to establish connection to http://10.35.169.17:5000/v2.0/tokens: HTTPConnectionPool(host='10.35.169.17', port=5000): Max retries exceeded with url: /v2.0/tokens (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x3a29590>: Failed to establish a new connection: [Errno 113] No route to host',))

Comment 2 Leonid Natapov 2016-11-23 14:43:04 UTC
Fixed.
tested with osops-tools-monitoring-oschecks-0.1-0.8.9f8354bgit.el7ost

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