I can see auto-login-action:Wait for prompt ['Linux version [0-9]'] (timeout 00:06:00)


Sharing the full logs after execute-qemu in a file attached.

Thanks,
Sweta



From: Milosz Wasilewski <milosz.wasilewski@foundries.io>
Sent: Tuesday, October 29, 2024 4:23 PM
To: Sweta Ghosh <sweta.ghosh@nagarro.com>
Cc: Stefan <lists.lavasoftware.org_23@green-sparklet.de>; lava-users@lists.lavasoftware.org <lava-users@lists.lavasoftware.org>
Subject: Re: [lava-users] Re: Auto login fails after adding banner message before login prompt
 
[Email from a non-Nagarro source: please exercise caution with links and attachments]


On Tue, Oct 29, 2024 at 10:41 AM Sweta Ghosh <sweta.ghosh@nagarro.com> wrote:
>
> The whole welcome is of 27 lines but for trouble shooting i have reduced it to only 1 line in /etc/issue in test image with which I am currently testing:
> System Info:
>
> The actual welcome messages will look like this:
> |_   _ / __ \ / ____|
>   | | | |  | | (___
>   | | | |  | |\___ \
>  _| | | |__| |____) |
> |_____ \____/|_____/
>
> System Info:
>   Version.....: Debian OS
>  Type......: Linux
>
> Interfaces:
>   eth0.......:192.168.1.10
>
> Instruction:
> 1. welcome to console
> 2. login with user and password
>
> Alternative :
> 1. Make sure network interface is up of eth0 network
> 2. Open a browser and type "https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2F192.168.1.10%2F&data=05%7C02%7Csweta.ghosh%40nagarro.com%7C438c94de1cd348ce8fd708dcf807ee52%7Ca45fe71af4804e42ad5eaff33165aa35%7C0%7C0%7C638657960188576446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=mdvyYxivrgCMKrWptNy2Ic%2BiaFTeIX1DnvkDohblMP0%3D&reserved=0"
>
> You are currently connected via:ttyS0 (115200)
>
> device-mgmt login:
>
>
> Output of /etc/issue
>
>  _____ ____    ______
> |_   _ / __ \ / ____|
>   | | | |  | | (___
>   | | | |  | |\___ \
>  _| | | |__| |____) |
> |_____ \____/|_____/
> System :
>   Version.....: \S{VALUE}
>   Type......: \S{NAME}
> Interfaces:
>   abc : \e{green}\4{interface}\e{reset}
> Instruction:
> 1. welcome to console
> 2. login with user and password
>
> \e{darkgray}Alternative :
> 1. Make sure network interface is up of \4{interface}'s network
> 2. Open a browser and type "[http://\4{interface}]http://\4{interface}"\e{reset}
>
> You are currently connected via: \l (\b)
>

The only suspect there is "login", but I don't think this is an issue.
You  mentioned that you reduced it to one line just for testing and it
still fails. This is interesting. Let's see if the problem doesn't
start earlier than that. First "prompt" LAVA is looking for is loading
kernel. Example here:
https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flava.infra.foundries.io%2Fscheduler%2Fjob%2F54785%23L565&data=05%7C02%7Csweta.ghosh%40nagarro.com%7C438c94de1cd348ce8fd708dcf807ee52%7Ca45fe71af4804e42ad5eaff33165aa35%7C0%7C0%7C638657960188601278%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=Kpdn%2Bciio7iICT58PFO8I4Jq9M0WP89t6NiQ0cy2BCo%3D&reserved=0

auto-login-action: Wait for prompt ['Linux version [0-9]'] (timeout 00:08:00)

Do you have this in your log?

Then you should also see the list of prompts that LAVA is looking for:
https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flava.infra.foundries.io%2Fscheduler%2Fjob%2F54785%23L713&data=05%7C02%7Csweta.ghosh%40nagarro.com%7C438c94de1cd348ce8fd708dcf807ee52%7Ca45fe71af4804e42ad5eaff33165aa35%7C0%7C0%7C638657960188621221%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=bAvpTa8Yc7uXD7rEWTbUwyDxXBa7cQee4oHvdJbZ7Jk%3D&reserved=0

['-\\[ cut here \\]', 'Unhandled fault', 'BUG: KCSAN:', 'BUG: KASAN:',
'BUG: KFENCE:', 'Oops(?: -|:)', 'WARNING:', '(kernel BUG at|BUG:)',
'invalid opcode:', 'Kernel panic - not syncing', 'fio@am62xx-evm',
'Password:', 'root@am62xx-evm', 'login:', 'Login incorrect']

Do you have these in your log?

Best Regards,
Milosz