Bug 1338633
| Summary: | Calamari APIs returns 500 for some of the APIs | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | rakesh-gm <rgowdege> |
| Component: | Calamari | Assignee: | Christina Meno <gmeno> |
| Calamari sub component: | Back-end | QA Contact: | ceph-qe-bugs <ceph-qe-bugs> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | unspecified | CC: | ceph-eng-bugs, hnallurv, kdreyer, vakulkar |
| Version: | 2.0 | ||
| Target Milestone: | rc | ||
| Target Release: | 2.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | calamari-server-1.4.1-1.el7cp | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-08-23 19:39:08 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1343229 | ||
|
Description
rakesh-gm
2016-05-23 07:41:21 UTC
api/v2/key AND api/v2/grains are deprecated in 1.4 -- I need to update the docs I will investigate log and info. I don't consider either of these must haves for 2.0 /log gives this error
2016-06-08 23:36:29,771 - ERROR - django.request Internal Server Error: /api/v2/cluster/fab72f8e-cb80-4ba4-b917-932345798252/log
Traceback (most recent call last):
File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/rest_framework/viewsets.py", line 78, in view
return self.dispatch(request, *args, **kwargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/views/rpc_view.py", line 91, in dispatch
return super(RPCViewSet, self).dispatch(request, *args, **kwargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view
return view_func(*args, **kwargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/rest_framework/views.py", line 399, in dispatch
response = self.handle_exception(exc)
File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/views/rpc_view.py", line 108, in handle_exception
return super(RPCViewSet, self).handle_exception(exc)
File "/opt/calamari/venv/lib/python2.7/site-packages/rest_framework/views.py", line 396, in dispatch
response = handler(request, *args, **kwargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/views/v2.py", line 1000, in get_cluster_log
results = self.client.get_server_log(mon_fqdn, "ceph/{name}.log".format(name=name), lines)
File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/core.py", line 260, in <lambda>
return lambda *args, **kargs: self(method, *args, **kargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/core.py", line 245, in __call__
return self._process_response(request_event, bufchan, timeout)
File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/views/rpc_view.py", line 55, in _process_response
result = super(ProfiledRpcClient, self)._process_response(request_event, bufchan, timeout)
File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/core.py", line 220, in _process_response
reply_event, self._handle_remote_error)
File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/patterns.py", line 44, in process_answer
raise exception
RemoteError: Traceback (most recent call last):
File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/core.py", line 147, in _async_task
raise NameError(event.name)
NameError: get_server_log
remove the unsupported /log /grains /keys https://github.com/ceph/calamari/commit/e7a95f7ba9a7477f7a0ce591ae8967b841472991 AND fix /info endpoint https://github.com/ceph/calamari/commit/8758d7698f1a6f044b79ce6d6fee0c4412796de5 GET" on the following calamari APIs do not return server error 500 in calamari-server-1.4.1-1.el7cp.x86_64 1. api/v2/key 2. api/v2/cluster/<fsid>/log 3. api/v2/grains 4. api/v2/info Original issue is fixed. I have noticed slight discrepancy in the output of "info" for which I will file a separate defect. 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/RHBA-2016-1755.html |