Bug 861343

Summary: [US2105][fork] Can not successfully threaddump apps
Product: OKD Reporter: Jianwei Hou <jhou>
Component: ocAssignee: Mrunal Patel <mpatel>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: mpatel
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: 2012-11-06 18:50:26 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 Jianwei Hou 2012-09-28 09:21:24 UTC
Description of problem:
Can not threaddump jbossas/jbosseap app successfully on fork_ami_US2105_178
threaddump ruby-1.8/ruby-1.9 was successful, but return message should be modified since $OPENSHIFT_APP_NAME is removed.

Version-Release number of selected component (if applicable):
On fork_ami_US2105_178

How reproducible:
Always

Steps to Reproduce:
1. Create jbossas/jbosseap app and do threaddump for it
2. Create ruby-1.8/ruby-1.9 app and do threaddump for it

  
Actual results:
After step 1:
hjw@my apps$ rhc threaddump jbossas1
Password: ******

Node execution failure (invalid exit code from node).  If the problem persists please contact Red Hat support.
hjw@my apps$ rhc threaddump jbosseap1
Password: ***

Node execution failure (invalid exit code from node).  If the problem persists please contact Red Hat support.


After step 2:
hjw@my apps$ rhc threaddump ruby18
Password: ***


RESULT:
Success

The thread dump file will be available via: rhc app tail -a ruby18 -f ruby18/logs/error_log-20120928-000000-EST -o '-n 250'

hjw@my apps$ rhc app tail -a ruby18 -f ruby18/logs/error_log-20120928-000000-EST -o '-n 250'
Password: ***

Attempting to tail files: ruby18/logs/error_log-20120928-000000-EST
Use ctl + c to stop
Could not find any files matching glob


Expected results:
Should threaddump jbossas/jbosseap app successfully
For ruby apps, should return correct dump file path 

Additional info:

Comment 1 John Poelstra 2012-09-28 19:00:01 UTC
looking into today, might be related to sync to master

Comment 2 Mrunal Patel 2012-09-29 00:05:58 UTC
Fix will be available in next ami.

Comment 3 Jianwei Hou 2012-09-29 07:03:11 UTC
Verified on fork_ami_2105_189

Steps:
1. Create jbossas/jbosseap/ruby-1.8/ruby-1.9 apps
2. run 'rhc threddump' for created apps
3. tail files with rhc app tail


Result:
Threaddump and rhc app tail was successful.