Some API checks throws tracebacks instead of meaningful errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Operators |
Fix Released
|
Undecided
|
Nagasai Vinaykumar Kapalavai |
Bug Description
1. oschecks-
[root@controller-0 checks]# ./oschecks-
Error: cluster is not currently running on this node
CRITICAL: Traceback (most recent call last):
File "/usr/lib/
method()
File "/usr/lib/
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-
CRITICAL: Traceback (most recent call last):
File "/usr/lib/
method()
File "/usr/lib/
options, args, client = glance.setup()
File "/usr/lib/
self.
TypeError: do_help() takes exactly 3 arguments (2 given)
3.glance upload
[root@controller-0 checks]# ./oschecks-
CRITICAL: Traceback (most recent call last):
File "/usr/lib/
method()
File "/usr/lib/
name=
File "/usr/lib/
res = func(*arg, **kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return RequestIdProxy(
File "/usr/lib/
resp, body = self.http_
File "/usr/lib/
return self.request(url, 'POST', **kwargs)
File "/usr/lib/
return self._handle_
File "/usr/lib/
raise exc.from_
HTTPInternalSer
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 |
Reviewed: https:/ /review. openstack. org/581797 /git.openstack. org/cgit/ openstack/ osops-tools- monitoring/ commit/ ?id=4130916b792 ff7c9e48c08af39 f54749f034fe05
Committed: https:/
Submitter: Zuul
Branch: master
commit 4130916b792ff7c 9e48c08af39f547 49f034fe05
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: I6c71edb528677a 4fde0c97eb3d465 600b689d1bd
Closes-Bug: #1784651