Bug 1277438 - log tail API endpoint gives HTTP 500 when requested log is binary
Summary: log tail API endpoint gives HTTP 500 when requested log is binary
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Calamari
Version: 1.3.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: 1.3.4
Assignee: Christina Meno
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-03 10:21 UTC by rakesh-gm
Modified: 2018-01-18 09:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-18 09:25:40 UTC
Embargoed:


Attachments (Terms of Use)

Description rakesh-gm 2015-11-03 10:21:30 UTC
when substituted log_path in this "api/v2/server/<fqdn>/log/<log_path>" with "lastlog" and "wtmp", we get 500 Server Error.  (the usage is explained with example in the below mentioned link) 

for example "/api/v2/server/<fqdn>/log/lastlog " and "/api/v2/server/<fqdn>/log/wtmp". 


the usage is described here
 http://calamari.readthedocs.org/en/latest/calamari_rest/resources/resources.html#logtailviewset

Comment 2 Christina Meno 2015-11-04 05:34:20 UTC
does it work for any log?
please include logs from calamari as described here:
http://calamari.readthedocs.org/en/wip-troubleshoot/operations/troubleshooting.html

Comment 4 rakesh-gm 2015-11-04 15:12:45 UTC
yes it works other logs.

Comment 5 Christina Meno 2015-11-04 17:54:16 UTC
wtmp and lastlog are binary formats


We won't be able to show these without filtering them through /usr/bin/last

I think the correct behavior is to error with a more helpful message and improve the docs to list this as unsupported.


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