Bug 916388 - rhc tidy command is not cleaning up after jboss tmp folders
Summary: rhc tidy command is not cleaning up after jboss tmp folders
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Paul Morie
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-28 00:02 UTC by Nam Duong
Modified: 2015-05-15 00:33 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-30 00:47:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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	.


Note You need to log in before you can comment on or make changes to this bug.