Bug 785638

Summary: [US1317] cannot tail app log via command "rhc app tail"
Product: OKD Reporter: Meng Bo <bmeng>
Component: ocAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.xCC: abhgupta, jizhao
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhc-0.85.8-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-02 23:55:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Meng Bo 2012-01-30 05:24:17 UTC
Description of problem:
cannot get app log file via cmd 'rhc app tail'

Version-Release number of selected component (if applicable):
rhc-0.85.7-1.el6_2.noarch

How reproducible:
always

Steps to Reproduce:
1.install latest rhc client via yum install
2.create domain and app
# rhc-create-domain -n bmengdev1
# rhc-create-app -a testapp -t php-5.3
3.tail app log file via new command 'rhc app tail'
# rhc app tail -a testapp
  
Actual results:
[mengbo@localhost ~]$ rhc app tail -a testapp
Password: 
Attempting to tail files: testapp/logs/*
Use ctl + c to stop

/usr/lib/ruby/gems/1.8/gems/rhc-0.85.7/bin/rhc-app:462:in `show_logs': undefined local variable or method `debug' for #<Object:0x7fb621ff32a8> (NameError)
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.85.7/bin/rhc-app:575
	from /usr/bin/rhc-app:19:in `load'
	from /usr/bin/rhc-app:19


Expected results:
log should be tailed successfully.


Additional info:
tail log by command 'rhc-tail-files -a testapp' can be performed successfully.

Comment 1 Abhishek Gupta 2012-01-30 05:42:17 UTC
Fix checked in and should be available in the next version.

Comment 2 jizhao 2012-01-31 02:50:30 UTC
Verified on devenv_1567.

Packages Tested:
rhc-0.85.7-1.git.0.79b56b0.el6.noarch

Comment 3 jizhao 2012-01-31 03:09:13 UTC
(In reply to comment #2)
> Verified on devenv_1567.
> 
> Packages Tested:
> rhc-0.85.7-1.git.0.79b56b0.el6.noarch

Correction:
Package tested:
rhc-0.85.9-1.el6_2.noarch

Comment 4 Mrunal Patel 2012-02-02 23:55:49 UTC
Closing verified bugs.