admin@glassfish.java.net

Re: The different methods of nodes creation

From: Elena Asarina <elena.asarina_at_oracle.com>
Date: Thu, 05 Aug 2010 11:54:08 -0700

Hello Bill,

To me it looks like the sequences of what can or cannot be when the node
is created via create-local-instance will be confusing for customers.
I think that our product has to be user-friendly, for this reason I
believe that a node should not be created via create-local-instance at all.

Thank you,
Elena

Bill Shannon wrote:
> Elena Asarina wrote on 08/05/2010 10:17 AM:
>> Hello Bill,
>>
>> Thank you very much for the reply. Regarding your comments:
>> "Why wouldn't create-instance be usable to create additional instances
>> on that node?"
>> "Right, that shouldn't be the case. If that's the way it works now,
>> seems like something is wrong. "
>>
>> It doesn't work such way now, but according to Joe it will work such
>> way at the future. Joe wrote in the bug
>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=12846
>>
>> "The scenario you described is not supported (using an
>> auto-created-node that was
>> created via create-local-instance with create-instance over SSH). We
>> have a bug
>> (issue 12694) for better detecting this condition. Once that is fixed
>> it will
>> always fail with a better error message.
>> For now please use only nodes created with create-node-ssh (or the
>> localhost
>> node) with create-instance."
>
> I'm not sure I'm following...
>
> If I use create-local-instance to create an instance, and it creates
> the default local node using the host name, that node won't be configured
> for ssh. If you then use create-instance to create another instance on
> that same node, it should update the domain.xml with the instance, but
> it won't be able to use ssh to create the instance on the remote machine
> so you'll need to go to the remote machine and execute
> create-local-instance
> again to complete the creation. I hope that's what Joe's saying above.
>
> If you want to use create-local-instance followed by create-instance for
> the same node, you should use create-node-ssh first to configure the ssh
> information and specify that node with create-local-instance. Or of
> course
> at that point you could've just used create-instance.
>
>> Also I forgot to mention that localhost node can not be deleted, i.e.
>> we have one more difference.
>
> That's more of a safety feature, to prevent you form getting into trouble
> later. I suppose we could make any command that needs it put it back
> later
> if it's missing.
>
>> Personally, I would prefer that all nodes will be equal,
>> independently how they were created, like it was in v2. for nodeagent.
>
> Define "equal".
>
> They're not all equal because some will be configured for ssh and some
> won't.
>
> In v2 you could create a node without providing all the node agent
> configuration information, but that information would be added later
> when the node agent was created.
>
>> And the last, I don't understand why to the names of some remote
>> commands was add "ssh" and for other not, they all use ssh.
>
> The issue isn't whether the commands *use* ssh, it's whether they're
> manipulating the ssh configuration information.
>
> You might imagine that in the future we would bring node agents back,
> so in addition to create-node-ssh we would have create-node-agent,
> which would configure a different way to execute commands on the remote
> machine. We could even have create-node-rsh and create-node-telnet if
> we wanted.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>