Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: ENTESB-175
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Ioannis Canellos
Reporter: Susan Javurek
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Fuse ESB Enterprise

fabric:create --clean does not remove directories

Created: 17/May/12 03:51 PM   Updated: 08/Jun/12 12:59 PM
Component/s: None
Affects Version/s: 7.0.0.fuse-037
Fix Version/s: 7.0.1


 Description  « Hide
Hi,

If I create two children off my root container:

FuseESB:karaf@root> fabric:container-create-child root child 2
The following containers have been created successfully:
	child1
	child2
FuseESB:karaf@root> fabric:container-list
[id]                           [version] [alive] [profiles]                     [provision status]
root*                          1.0       true    fabric, fabric-ensemble-0000-1 
  child1                       1.0       false   default                        
  child2                       1.0       false   default

In the file system, I can see my two new instances:

wildflower:instances sjavurek$ ls -al
total 8
drwxr-xr-x   5 sjavurek  staff  170 May 17 11:38 .
drwxr-xr-x@ 17 sjavurek  staff  578 May 17 11:34 ..
drwxr-xr-x   8 sjavurek  staff  272 May 17 11:38 child1
drwxr-xr-x   8 sjavurek  staff  272 May 17 11:38 child2
-rw-r--r--   1 sjavurek  staff  717 May 17 11:38 instance.properties

And then try to clean them, I see them removed from the container list in Fuse ESB but not from the directory:

FuseESB:karaf@root> fabric:create --clean
FuseESB:karaf@root> fabric:container-list
[id]                           [version] [alive] [profiles]                     [provision status]
root*                          1.0       true    fabric, fabric-ensemble-0000-1

File System still lists them as displayed above.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Ioannis Canellos added a comment - 25/May/12 03:14 PM
AFAIK the fabric:create --clean was never meant to stop/destroy containers, but create a clean registry.
So I wouldn't consider this a bug. Maybe we need to treat it as a feature request.

Jonathan Anstey added a comment - 08/Jun/12 12:59 PM
Opened a feature request for this in ENTESB-189. In the meantime to start with a fresh local fabric, you'll need to call "fabric:container-delete [name]" on each conatiner, and then call "fabric:create --clean".