Bug 1277438

Summary: log tail API endpoint gives HTTP 500 when requested log is binary
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: rakesh-gm <rgowdege>
Component: CalamariAssignee: Christina Meno <gmeno>
Calamari sub component: Back-end QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Status: CLOSED WONTFIX Docs Contact:
Severity: low    
Priority: low CC: ceph-eng-bugs, flucifre, kdreyer, mhackett
Version: 1.3.1   
Target Milestone: rc   
Target Release: 1.3.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-18 09:25:40 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:

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.