Bug 906671

Summary: rhc app tidy did not actually clean up log files of ruby-1.8 and ruby-1.9
Product: OKD Reporter: chunchen <chunchen>
Component: ContainersAssignee: Dan Mace <dmace>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: dmace, dmcphers, wsun
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: devenv_2760+ Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-13 23:50:00 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 chunchen 2013-02-01 07:36:58 UTC
Description of problem:
run 'rhc app tidy' against an application of ruby-1.8 and ruby-1.9, the log files is not cleaned up, only clean up tmp files.

Version-Release number of selected component (if applicable):
on devenv_2756
rhc-1.4.3

How reproducible:
Always

Steps to Reproduce:
1. Create a ruby application 
rhc app create ruby800 ruby-1.8
2. Ssh into app's gear, create log files
touch ${OPENSHIFT_RUBY_LOG_DIR}test.log
3. Clean up application with rhc 
rhc app tidy ruby800
  
Actual results:
RESULT:
ruby800 cleaned up

But log files are still present
[ruby800-ddy.dev.rhcloud.com ~]\> ls ${OPENSHIFT_RUBY_LOG_DIR}
production.log  error_log-20130201-000000-EST access_log-20130201-000000-EST  test.log

Expected results:
log files should be cleaned up

Additional info:
the following app type can work well:
perl-5.10
php-5.3
jbossas-7
jbosseap-6.0

Comment 1 openshift-github-bot 2013-02-01 16:21:31 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/d3f009fed84acaf60305f0cd071aec79ceb98c3a
Bug 906671: Fix log location in Ruby tidy hook

Fix the Ruby tidy hooks to clean logs from the correct location.

Resolve https://bugzilla.redhat.com/show_bug.cgi?id=906671.

Comment 2 chunchen 2013-02-04 02:15:02 UTC
Verified on devenv_2765, they work well now.