Bug 990313

Summary: [RFE] rhc tail command times out
Product: OpenShift Online Reporter: Gerrit Hübbers <gerrit.huebbers>
Component: ocAssignee: Fabiano Franz <ffranz>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.xCC: ffranz, wjiang
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-30 00:48:10 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 Gerrit Hübbers 2013-07-30 21:19:32 UTC
Description of problem:
(via forum discussion at https://www.openshift.com/forums/openshift/rhc-tail-myapp-first-logs-well-then-silently-stops-logging )

---------------------------
$ rhc --version
rhc 1.11.4
---------------------------

To my observation, the rhc tail command silently stops providing log messages even though new log messages are generated on the remote application.

---------------------------
# on my client shell
$ rhc tail myapp
....
(steady logging from remote application appears)
....
(some time later)
....
(logging still fine)
....
(some more time later)
(no more logging, but process still running)
_
---------------------------

When logging silently stops, no error messages are generated, and the rhc tail process is still running.

To an observer, it looks as if currently no new log messages are generated, even though in fact, they are generated. 

This behavior complicates remote debugging and remote activity observation. It requires to manually re-connect by terminating the logging process and running "rhc tail myapp" again from time to time.

A default usage of "rhc tail anyapp" expects to have logging go on indefinetly until requested explicitly to be terminated. Therefore, it is good if "rhc tail anyapp" logs indefinetly.

A current workaround is: 
---------------------------
$ rhc ssh myapp
# sshing to remote application, providing credentials

# on remote application
$ unset TMOUT
# no more logout after idle time

$ tail_all
---------------------------

========================================
Version-Release number of selected component (if applicable):
rhc 1.11.4

========================================
Steps to Reproduce:
1. On local machine, run
   $ rhc tail myapp

Actual results:
After some time, no new logging messages appear, even though they are generated on the remote application.

Expected results:
Logging shall run indefinitely, until rhc tail process terminates.

Comment 1 Fabiano Franz 2013-12-18 17:44:40 UTC
Please test and try to reproduce. This is probably already fixed in prod.

Comment 2 weiwei jiang 2013-12-19 06:05:23 UTC
Tried on devenv_4154 and PROD with rhc-1.19.2, can not reproduce this issue, so verified this issue.