You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by Yaron Rosenbaum <ya...@gmail.com> on 2015/04/02 16:49:53 UTC
Re: GCE: Unable to create nodes
bump
(Y)
> On Mar 22, 2015, at 10:46 AM, Yaron Rosenbaum <ya...@gmail.com> wrote:
>
> More info:
>
> I tried creating the nodes without specifying ssh login credentials (so that they will be created automatically), to eliminate a potential problem with the keys I specify. The problem remains.
>
> I’m pretty much convinced by now, that this is a timeout issue: Because I specify a cloud-init that takes a while to execute (more than 60000 msec), ssh daemon / ssh keys are not installed by the time the sshj jcloouds module tries to connect.
>
> There should be some retry / exponential backoff mechanism around the code that tries to configure new nodes via ssh. As the email below explains, I tried setting some overrides suggested by someone in the IRC channel, but they seem to do nothing in this case.
>
> Any help would be appreciated!!
>
>
> (Y)
>
>> On Mar 20, 2015, at 11:51 AM, Yaron Rosenbaum <yaron.rosenbaum@gmail.com <ma...@gmail.com>> wrote:
>>
>> Hi
>>
>> I fail to create nodes properly, getting the following error:
>>
>> 11:42:32.780 [user thread 3] ERROR jclouds.ssh - << (core:rsa[ssh-agent]@1….2) error acquiring {hostAndPort=1…2:22, loginUser=core, ssh=null, connectTimeout=60000, sessionTimeout=60000} (not retryable): Exhausted available authentication methods
>> net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods
>>
>> I’ve set the following overrides:
>> overrides.setProperty(ComputeServiceProperties.POLL_INITIAL_PERIOD, TWENTY_SECONDS);
>> overrides.setProperty(ComputeServiceProperties.POLL_MAX_PERIOD, TWENTY_SECONDS);
>> // 18 retries of 15 seconds --> 4.5 min
>> overrides.setProperty(Constants.PROPERTY_MAX_RETRIES, "6");
>> overrides.setProperty(Constants.PROPERTY_RETRY_DELAY_START, "15");
>>
>> Note the ’(not retryable)’ and ssh=null, they look suspicious but I don’t know what they mean.
>>
>> PS Nodes are created nonetheless.
>> If a node fails to create ‘properly’ - maybe there should be some option to force remove it or something ?
>>
>> (Y)
>>
>