Bug 1393456 - OPS Tools | Availability Monitoring | OS Checks | Getting Critical Traceback on glance_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
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 15:23 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 glance_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:22 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:57 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:23:08 UTC
Getting Critical Traceback on glance_api check when the check fails. Should be an appropriate error message.

----


    GLANCE_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/glance.py", line 30, in _check_glance_api
        options, args, client = glance.setup()
      File "/usr/lib/python2.7/site-packages/oschecks/utils.py", line 169, in setup
        client = self.glance._get_versioned_client(api_version, options)
      File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 447, in _get_versioned_client
        region_name=args.os_region_name)
      File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 679, in get_endpoint
        return auth.get_endpoint(self, **kwargs)
      File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 329, in get_endpoint
        service_catalog = self.get_access(session).service_catalog
      File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 254, in get_access
        self.auth_ref = self.get_auth_ref(session)
      File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/v2.py", line 89, in get_auth_ref
        authenticated=False, log=False)
      File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 519, 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/keystoneclient/session.py", line 404, in request
        resp = send(**kwargs)
      File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 448, in _send_request
        raise exceptions.ConnectionRefused(msg)
    ConnectFailure: Unable to establish connection to http://10.35.169.17:5000/v2.0/tokens

Comment 2 Leonid Natapov 2016-11-23 14:43:33 UTC
Fixed.

Tested with osops-tools-monitoring-oschecks-0.1-0.8.9f8354bgit.el7ost

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