Comment 1 for bug 551778

Revision history for this message
Daniel Nurmi (nurmi) wrote : Re: CCs or SCs cannot be deregistered

Thierry,

It looks as if this may be a documentation bug: --deregister-cluster and --deregister-sc takes the 'name' of the cluster, instead of the 'host' of the component. I just tested with using the cluster name in both cases, and de-registration is working. However, there are a few issues:

1.) euca_conf --help shows this:

   --deregister-cluster <clustername> remove cluster from EUCALYPTUS
   --deregister-sc <host> remove storage controller from EUCALYPTUS

which is correct for 'cluster', but not for 'sc'. I'll make this fix and commit to 1.6.2 shortly. The second is what to do in the case where a user inputs an IP instead of a name. The reason you're seeing 'success' is that de-registration is idempotent (i.e. when you de-register a cluster named '192.168.1.1', the system will return 'success' if, after the operation is performed, there is no cluster named '192.168.1.1' registered with the CLC). It may be worth putting in a warning if the string that is passed to euca_conf looks like an IP address, telling the user that they probably didn't mean to put in an IP (though, one can use such a string as the name of a cluster).

Thoughts?

-Dan