Some API checks throws tracebacks instead of meaningful errors

Bug #1784651 reported by Nagasai Vinaykumar Kapalavai
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Operators
Fix Released
Nagasai Vinaykumar Kapalavai

Bug Description

1. oschecks-pacemaker_host_check in case cluster is stopped.

[root@controller-0 checks]# ./oschecks-pacemaker_host_check -r redis
Error: cluster is not currently running on this node
CRITICAL: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/oschecks/", line 110, in safe_run
  File "/usr/lib/python2.7/site-packages/oschecks/", line 94, in _pacemaker_host_check
    e.returncode, e.output)
TypeError: not enough arguments for format string

2.glance api in case when trying to run with -h switch (or other switch)

[root@controller-0 checks]# ./oschecks-check_glance_api -h
CRITICAL: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/oschecks/", line 110, in safe_run
  File "/usr/lib/python2.7/site-packages/oschecks/", line 30, in _check_glance_api
    options, args, client = glance.setup()
  File "/usr/lib/python2.7/site-packages/oschecks/", line 173, in setup
TypeError: do_help() takes exactly 3 arguments (2 given)

3.glance upload

[root@controller-0 checks]# ./oschecks-check_glance_upload
CRITICAL: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/oschecks/", line 110, in safe_run
  File "/usr/lib/python2.7/site-packages/oschecks/", line 120, in _check_glance_upload
  File "/usr/lib/python2.7/site-packages/oschecks/", line 97, in wrapper
    res = func(*arg, **kw)
  File "/usr/lib/python2.7/site-packages/oschecks/", line 105, in timeit
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/glanceclient/common/", line 535, in inner
    return RequestIdProxy(wrapped(*args, **kwargs))
  File "/usr/lib/python2.7/site-packages/glanceclient/v2/", line 253, in create
    resp, body =, data=image)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/", line 223, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/site-packages/glanceclient/common/", line 342, in request
    return self._handle_response(resp)
  File "/usr/lib/python2.7/site-packages/glanceclient/common/", line 107, in _handle_response
    raise exc.from_response(resp, resp.content)
HTTPInternalServerError: 500 Internal Server Error
The server has either erred or is incapable of performing the requested operation.
    (HTTP 500)

Also seems like glance api check doesn't wotk correctly. When images exist it works OK,when no image it says: Unable to contact Glance API but obviously glance API is OK. Please,check it.

Changed in osops:
assignee: nobody → Nagasai Vinaykumar Kapalavai (vinaykns2)
Changed in osops:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to osops-tools-monitoring (master)

Submitter: Zuul
Branch: master

commit 4130916b792ff7c9e48c08af39f54749f034fe05
Author: Nagasai Vinaykumar Kapalavai <email address hidden>
Date: Wed Jul 11 16:12:32 2018 +0000

    Rework on glance oscheck

    Currently the glance api check is giving tracebacks instead
    of meaningful errors. Couple of changes are made to address the issue.

    Change-Id: I6c71edb528677a4fde0c97eb3d465600b689d1bd
    Closes-Bug: #1784651

Changed in osops:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers