Bug 823441

Summary: cannot tail app log via command 'rhc app tail'
Product: OKD Reporter: Meng Bo <bmeng>
Component: ocAssignee: Fabiano Franz <ffranz>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 2.xCC: rmillner
Target Milestone: ---Keywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhc-0.93.12-1+ Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-08 17:59:35 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 Meng Bo 2012-05-21 09:43:44 UTC
Description of problem:
tail log using 'rhc app tail -a appname' will get failed.

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

How reproducible:
always

Steps to Reproduce:
1.create app
rhc app create -a app1 -t perl-5.10
2.tail log of the app
rhc app tail -a app1
3.
  
Actual results:
will get error:

/usr/lib/ruby/gems/1.8/gems/rhc-0.93.3/bin/rhc-app:413:in `show_logs': undefined local variable or method `opt' for #<Object:0x7f21e45382b8> (NameError)


Expected results:
app log should show without issues.

Additional info:
[root@localhost ~]# rhc app tail --app perl1 -d
Password: ******

Submitting form:
debug: true
rhlogin: bmeng
Contacting https://int.openshift.redhat.com
/usr/lib/ruby/gems/1.8/gems/rhc-0.93.3/bin/rhc-app:413:in `show_logs': undefined local variable or method `opt' for #<Object:0x7f206a41b298> (NameError)
	from /usr/lib/ruby/gems/1.8/gems/rhc-0.93.3/bin/rhc-app:547
	from /usr/bin/rhc-app:19:in `load'
	from /usr/bin/rhc-app:19

===============

command rhc-tail-files can get the log correctly.

Comment 1 Fabiano Franz 2012-05-28 00:10:01 UTC
Fixed.

Comment 2 Meng Bo 2012-05-30 09:37:20 UTC
verified on rhc-0.93.15