Bug 1393456

Summary: OPS Tools | Availability Monitoring | OS Checks | Getting Critical Traceback on glance_api check when the check fails. Should be an appropriate error message.
Product: Red Hat OpenStack Reporter: Leonid Natapov <lnatapov>
Component: sensuAssignee: 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: gaKeywords: 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 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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-14 16:36:22 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:

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