Is there possibility to login into machine at enlisting stage?

Bashlakov Andrei a.bashlakov at corp.vk.com
Tue Jan 30 09:30:13 UTC 2018


Thanks all!

I’ve solved the issue, problem was in network configuration and incorrect api url in rack-controllers config,

Andrey Bashlakov
a.bashlakov at corp.vk.com<mailto:a.bashlakov at corp.vk.com>



26 янв. 2018 г., в 1:56, Dmitrii Shcherbakov <dmitrii.shcherbakov at canonical.com<mailto:dmitrii.shcherbakov at canonical.com>> написал(а):

Hi Andrei,

You could also build a temporary image with a backdoor (the doc below is not yet published at docs.ubuntu.com<http://docs.ubuntu.com/>):

https://github.com/CanonicalLtd/maas-docs/blob/master/en/troubleshoot-faq.md#backdoor-image-login
https://github.com/CanonicalLtd/maas-docs/issues/612 (original doc request)

I had to do this a few times when debugging very early-stage issues and there is nothing more to it than unpacking the original image, adding a hashed password entry to /etc/shadow and repacking it back (to a squashfs).

The reason for re-packing is that cloud images are left untouched by MAAS - it doesn't unpack them prior to sending to a node and they receive metadata from MAAS over a network. So if MAAS cannot be successfully queried for metadata from an ephemeral system but the image itself gets there this is a reliable way to hack your credentials in.

If you go with that approach make sure to restore the original image after you get rid of the original problem.

Best Regards,
Dmitrii Shcherbakov

Field Software Engineer
IRC (freenode): Dmitrii-Sh

On Thu, Jan 25, 2018 at 12:59 PM, Andres Rodriguez <andres.rodriguez at canonical.com<mailto:andres.rodriguez at canonical.com>> wrote:
Hi Andrei,

If the enlistment script fails, it will automatically create a user/password that should be displayed to you in the console.

That said, you don't necessarily need access to the enlistment to determine what the issue may be. I suggest you look in /var/log/maas/rsyslog/ where you should be able to find the logs of the enlistment machine, which should show you what may be going wrong.

I suspect this is due to it not being able to install packages.

Hope this helps.

On Wed, Jan 24, 2018 at 6:48 PM, Bashlakov Andrei <a.bashlakov at corp.vk.com<mailto:a.bashlakov at corp.vk.com>> wrote:
Hi all!

I have a troubles with deploying MaaS rack-controller in network, that has strict access restrictions and non-trivial DNS configuration. At this moment all machines that boot via PXE from dedicated rack-controller stopped at login prompt at enlisting stage. There is no logs on region controller nor errors on machines screens nor any information about this machines in MaaS interface. I've dumped machines traffic and investigate it for any errors like problems in connection establishment, but all connections seems to be fine. Machines successfully get boot images from rack-controller and enlisting script from region-controller. Is there any possibility to login to machines at this state and get any logs from them? Or maybe there is other way to debug this problem?

Well be glad for any advice.

Best regards,
Andrey Bashlakov
R&D Engineer
www.vk.com<http://www.vk.com/>
--
Maas-devel mailing list
Maas-devel at lists.ubuntu.com<mailto:Maas-devel at lists.ubuntu.com>
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/maas-devel



--
Andres Rodriguez
Engineering Manager, MAAS
Canonical USA, Inc.

--
Maas-devel mailing list
Maas-devel at lists.ubuntu.com<mailto:Maas-devel at lists.ubuntu.com>
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/maas-devel



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/maas-devel/attachments/20180130/c7bed33a/attachment.html>


More information about the Maas-devel mailing list