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.
Resolved by: https://github.com/openshift/origin-server/pull/1492
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
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.
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.
Opening this bug back up as it appears to be broken again given the above comment.
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
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
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 .