Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1338633 - Calamari APIs returns 500 for some of the APIs
Calamari APIs returns 500 for some of the APIs
Status: CLOSED ERRATA
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Calamari (Show other bugs)
2.0
All Linux
unspecified Severity medium
: rc
: 2.0
Assigned To: Gregory Meno
ceph-qe-bugs
:
Depends On:
Blocks: 1343229
  Show dependency treegraph
 
Reported: 2016-05-23 03:41 EDT by rakesh
Modified: 2016-08-23 15:39 EDT (History)
4 users (show)

See Also:
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 15:39:08 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1755 normal SHIPPED_LIVE Red Hat Ceph Storage 2.0 bug fix and enhancement update 2016-08-23 19:23:52 EDT

  None (edit)
Description rakesh 2016-05-23 03:41:21 EDT
Description of problem:
when we try to do "GET" on the following calamari APIs we get the 500 server error: 

1. api/v2/key 
2. api/v2/cluster/<fsid>/log	
3. api/v2/grains
4. api/v2/info
Comment 2 Gregory Meno 2016-05-25 17:02:31 EDT
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
Comment 5 Gregory Meno 2016-06-09 00:37:24 EDT
/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
Comment 8 Harish NV Rao 2016-06-16 05:13:40 EDT
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.
Comment 10 errata-xmlrpc 2016-08-23 15:39:08 EDT
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

Note You need to log in before you can comment on or make changes to this bug.