Bug 1308841

Summary: Undeploy doesn't remove Data content if server is in --admin-only mode
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Abhijit humbe <abhumbe>
Component: CLIAssignee: Chao Wang <chaowan>
Status: CLOSED WONTFIX QA Contact: Petr Kremensky <pkremens>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.6CC: brian.stansberry, cdewolf, chaowan, jboss-set
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: 2016-02-22 09:26:13 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Abhijit humbe 2016-02-16 09:26:56 UTC
Description of problem:
Content from 'data' directory are not removed if we undeploy application in 'admin-only' mode.

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


How reproducible:


Steps to Reproduce:
1. Start server instance using --admin-only flag
2.Deploy application using CLI command.
~~~
deploy /valid/path/WebApp.war --runtime-name=WebApp.war --name=WebApp.war

~~~
3. Undeploy application using CLI command:
~~~
undeploy WebApp.war
~~~
4. Application will be undeployed but content from 'data' directory are not removed.  

Actual results:
content from 'data' directory are not removed if we undeploy application in "admin-only" mode.  

Expected results:
content from 'data' directory should be removed even if we undeploy application in "admin-only" mode. 

Additional info:

Comment 1 Brian Stansberry 2016-02-16 14:51:04 UTC
What content in the data directory are you referring to?

I assume you mean the deployment content in data/content but I want to clarify.

Comment 2 Abhijit humbe 2016-02-17 02:11:15 UTC
Yes, I am referring to deployment content in  data/content directory.

Comment 6 Chao Wang 2016-02-22 09:26:13 UTC
clean-obsolete-content task will clean it in background after switching back to normal mode in 10 mins. We consider this as a RFE and will follow up in upstream jira.