Bug 916388

Summary: rhc tidy command is not cleaning up after jboss tmp folders
Product: OpenShift Online Reporter: Nam Duong <nduong>
Component: ImageAssignee: Paul Morie <pmorie>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: akostadi, bleathem, bmeng, bugsgentoo, chunchen, dmcphers, gshipley, jhonce, jofernan, pmorie, wzheng, xtian
Target Milestone: ---Keywords: Reopened
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:47:37 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 Nam Duong 2013-02-28 00:02:35 UTC
Description of problem:
See https://openshift.redhat.com/community/forums/openshift/exceeding-disk-quota  

@zhuzh discovered 850MB worth of content and wasn't able to delete it using "rhc app tidy".  

I used JBoss AS7 to validate that ~/jbossas-7/jbossas-7/standalone/tmp/ is not getting cleaned up by "rhc app tidy".  I had to manually delete it after stopping the app.

Comment 1 Dan Mace 2013-02-28 21:49:55 UTC
Resolved by: https://github.com/openshift/origin-server/pull/1492

Comment 2 openshift-github-bot 2013-03-01 01:37:49 UTC
Commits pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/dab033bd2ee25dbda79b86dcce747b19a88c3466
Bug 916388: Fix JBoss tidy scripts

Correct the JBoss tidy scripts to properly clean the JBoss temp directory.

https://github.com/openshift/origin-server/commit/801ed0420c502601dce2ca4a715b2a81d8b3a5ff
Merge pull request #1492 from ironcladlou/bz/916388

Bug 916388: Fix JBoss tidy scripts

Comment 3 Meng Bo 2013-03-05 05:48:16 UTC
Checked on devenv_2894, issue has been fixed.

1. Create jboss app
2. SSH login to the app and put some file in the jbossas-7/standalone/tmp dir
> cd ~/jbossas-7/jbossas-7/standalone/tmp/vfs/
> dd if=/dev/zero of=test.fs bs=1M count=200
> du -sh
202M	.
3. Do app tidy from client side
4. Check the tmp dir size again
> du -sh
1.2M	.

jbossas-7/jbossas-7/standalone/tmp/ dir can be cleaned by rhc app tidy.

Move bug to VERIFIED.

Comment 4 yp 2013-07-29 10:50:43 UTC
This doesn't work anymore, the tmp dir for jbosseap is in ~/jbosseap/standalone/tmp not ~/jbosseap-6.0/jbosseap-6.0/standalone/tmp as in the tidy script.

Comment 5 Grant Shipley 2014-01-13 22:21:12 UTC
Opening this bug back up as it appears to be broken again given the above comment.

Comment 6 Brian Leathem 2014-01-13 22:33:39 UTC
I can confirm the "rhc app tidy" did not work in cleaning up the vfs folder of the RichFaces showcase.  Details can be seen in this jira issue for the RichFaces showcase failure:

https://issues.jboss.org/browse/RFPL-3194

Comment 7 openshift-github-bot 2014-01-15 02:59:29 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/78c0d1ecb20fab968fab13af015ad59369e20e31
Fix bug 916388: clean jboss* tmp dirs during tidy

Comment 9 chunchen 2014-01-17 11:25:16 UTC
It's fixed, verified on devenv_4236, please refer to the following results:

1. For jbosseap app
1) Create jbosseap-6 app
2) SSH login to the app and put some file in the jbosseap/standalone/tmp dir
> cd jbosseap/standalone/tmp/vfs/
> dd if=/dev/zero of=test.fs bs=1M count=200
> du -sh
201M	.
3) Do app tidy from client side
4) Check the tmp dir size again
> du -sh
96K	.

2. For jbossews app
1) Create jbossews-2.0 app
2) SSH login to the app and put some file in the jbossews/tmp dir
> cd jbossews/tmp
> dd if=/dev/zero of=test.fs bs=1M count=200
> du -sh
201M	.
3) Do app tidy from client side
4) Check the tmp dir size again
> du -sh
4.0K	.