admin@glassfish.java.net

Re: Cluster/Cluster Instance Deletion Issue

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Wed, 27 Oct 2010 09:44:08 -0700


On 10/26/2010 4:11 PM, Jason Lee wrote:
I'm working on fixing the Console's dev tests, and I get, intermittently, an error like the following when trying to delete a cluster:

Successfully removed instance instanceNamea2765faa833cb8ebd23c02893e7fd4534b from the DAS configuration, but failed to remove the instance files from node localhost (localhost).

Command failed on node localhost (localhost): Command _delete-instance-filesystem failed.

The instance directory does not exist: /Users/jasonlee/src/servers/glassfish3/glassfish/nodes/localhost/instanceNamea2765faa833cb8ebd23c02893e7fd4534b
Is it true?  Stop the test at that point and see if it is true

To complete this operation run the following command locally on host localhost from the GlassFish install location /Users/jasonlee/src/servers/glassfish3:

 asadmin  delete-local-instance --node localhost instanceNamea2765faa833cb8ebd23c02893e7fd4534b

I've even gotten this error on instances that I was able to start, so it seems the instance is "normal."

I create the clusters and instances through the REST interface, which ultimately calls create-cluster, and then create-instance --cluster foo for each cluster instance.  Deleting the cluster is done ultimately via delete-cluster.

Anyone have any ideas what's going on?  If you need the exact CLI params, I can turn on logging and dig those out for you.
No need to dig.  Set this env. variable once and forget it:
AS_LOGFILE=/Users/jasonlee/src/servers/glassfish3/glassfish/cli.log

You'll get one line for every cli command forever after

If I select the cluster and click delete again, it deletes just fine, but I'd really rather not loop until it's gone in the test. :P

I'd really like to get to the bottom of this, as this is a very common cause for Console test failures. 
-- 
Jason Lee 
Senior Member of Technical Staff
GlassFish Administration Console

Oracle Corporation
Phone +1 405-216-3193
Blog http://blogs.steeplesoft.com

-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188