Bug 600098
Summary: | console.log | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Raymond Mancy <rmancy> |
Component: | scheduler | Assignee: | Bill Peck <bpeck> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | urgent | Docs Contact: | |
Priority: | high | ||
Version: | 0.5 | CC: | atodorov, bpeck, dcallagh, ebaak, kbaker, kzhang, mcsontos, phan, rmancy, yanwang, yugzhang |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-11-15 20:45:52 UTC | Type: | --- |
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: | 593365 |
Description
Raymond Mancy
2010-06-03 22:57:50 UTC
Without console.log, if a machine gets crashed, we cannot know what is happening. Then we only have to login in the machine and view its console. Please solve this faster. And the link is? ADVERTISING: I have absolutely no problems since I installed "Open In Browser" extension to my FF. Even without the extension you can still save it to your computer. Its not like you can't open the console.log at all. The reason why this is happening is because the serial console includes ansi characters for screen positioning. The "fix" is to offer a link that will strip the ansi characters. (In reply to comment #2) > And the link is? > > ADVERTISING: > I have absolutely no problems since I installed "Open In Browser" extension to > my FF. This one which I can open https://beaker.engineering.redhat.com/logs/2010/43/2043/3826///console.log But another which I cannot open in FF https://beaker.engineering.redhat.com/jobs/1879 Then I download it and do this: [yugzhang@dhcp-65-35 Desktop]$ file console.log console.log: data [yugzhang@dhcp-65-35 Desktop]$ vim console.log Yes, I can see some words and magic codes there. But this behavior is not like RHTS. IIRC, I can view console.log there in FF all the time. You are right. This behaviour is not like RHTS. In RHTS I stripped the ansi codes on upload. I can re-implement this in beaker but I thought it was bad practice to change the log file like that. Are you saying your ok with me doing that again? It seemed like a hack to me but I can put it back. You know all we want to see is the information which is helpful. If some of they are of no use and cannot be seen even via vi, I cannot see why we don't stripe them at first to facilitate our log viewing. Bill, IMO solution suggested in Comment 3 is perfect - it keeps the data intact while offering something which can be displayed. Ray, Igor, I got confused a bit as from description it was not clear (at least to me) what's the real problem. I am glad it is not a console.log is missing or corrupted. I considered it a FF annoyance as it refused to display file with text/plain ContentType header. I've added code to only strip non-ascii chars from the console.log. Will be released Tomorrow. this still doesn't seem to be catching *ALL* the bad chars. I still get some Null \x00 chars in the stream still. still experimenting. finally fixed this. This will be in Tomorrows update as well. *** Bug 604717 has been marked as a duplicate of this bug. *** Fixed in Current Release. I just found I cannot get console.log displayed in FF. But it can be displayed the day before yesterday. Now, FF always say it is a BIN file, and what I can do is to save it to disk and view it with vi. https://beaker.engineering.redhat.com/recipes/14694 when I use beaker's workflow-autofs, the log file still bin file: https://beaker.engineering.redhat.com/logs/2010/06/18406/34438/428862/1267089///test_log--CoreOS-autofs-bugzillas-bz130467-client.log Many logs yielded by beaker cannot be viewed directly in FF these days. Could we filter them all in one point? Previous solution is not very complete. I oppose fiddling with test output - what the test submit that's what one gets. Either the test is wrong or take it as is. If we were going to filter all files, I would like it to be able doing more than just stripping some chars: - sometimes raw data are wanted, so stripping must be optional - for console.log last N characters are often what matters instead of MiB of data - highlighting lines containing words \b(err|warn)... Anything else? Is there a way how to tweak the way apache serve files with some modifiers? I like what bugzilla does to the attachments: https://bugzilla.redhat.com/attachment.cgi?id=445840 https://bugzilla.redhat.com/attachment.cgi?id=445840&action=diff E.g. to display last 4096 characters in raw format one could use: http://server/logs/path/name.log?last=4096&format=raw running e.g. following on backend: `cat $FILE | tail -c 4096` The default would display whole file with stripped non-printable characters, running e.g. following: `cat $FILE | tr -cs '\n\r\t[:print:]' '?'` This shouldn't be a problem any more. I'm closing. |