>
>
> you must provide a user_script to set the root password.  You may also
> provide root_authorized_keys to enable ssh access.
>
> I did see a POLLERR message, but it's unclear which key it was trying
>> to query at that point. Do you know?
>>
>
> It queries overwrite_root_akeys in set-root-authorized-keys.
>

Hi Stefan,

Sadly neither of these are working for me.

I've set overwrite_root_akeys and root_authorized_keys and it's definitely
reading both of those successfully (I can see this from the metadata log)
but this image provides very little in the way of useful output.

I do see it saying something about not my user script being invalid, but
the output gets cleared by the full screen login banner and it's not clear
how to get thing useful here. And I have no idea what code it is that's
running that.

I do see it sometimes showing a POLLERR message (not always)... But I never
see any errors in the metadata agent. I've seen variously cases of: 0, 1 or
multiple POLLERR messages before a successful first request for
overwrite_root_akeys.

Since this actually seems to be working just fine once the socket is
listening, are you actually experiencing a failure somewhere here? Or
you're just getting these warning messages and are concerned about that?

The best I've been able to determine so far is that the POLLERR message
happens if we manage to get to mdata-get before we're fully listening on
the socket. I.e. the point where you see something like:

[2017-02-09T04:56:27.711Z]  INFO: metadata/2756 on headnode: listening on
fd 42 (brand=kvm, zonename=5db05336-f46c-46e8-ddbb-ce395a6d023a)

in the log.

Since this is Linux, the code that produces the error message is:

https://github.com/joyent/mdata-client/blob/master/plat/linux.c#L80

But I suspect that this code is working as expected since this is occurring
before we're listening and it sounds like it's correctly retrying.

I will attempt to reproduce this tomorrow with a different image that has a
working serial console and where I can login to make changes. I will also
do some experiments with an older platform to see if I can work out how the
behavior is different here with regard to timing.

Thanks,
Josh



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to