Hello Milosz,
Please disregard my previous email. I tried the same on my Prod LAVA it works after I have reenabled the logging to get linux version messages.
It looks like welcome message is not the issue. Thanks a ton for your help 🙂.
Thanks, Sweta
________________________________ From: Sweta Ghosh sweta.ghosh@nagarro.com Sent: Wednesday, October 30, 2024 3:11 PM To: Milosz Wasilewski milosz.wasilewski@foundries.io Cc: Stefan lists.lavasoftware.org_23@green-sparklet.de; lava-users@lists.lavasoftware.org lava-users@lists.lavasoftware.org Subject: [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]
Hello Milosz,
Thanks for helping me so far. I did the following to rule out the device dictionary issue. I re-enabled the linux version logs in my image and now using full welcome message. Now I am getting kernel parsing messages but my prompt is not getting matched [cid:37b9b0af-3cca-4198-8160-2ed235042130] [cid:1337b08c-99f3-4132-8549-95be50c44391]
Job description: - boot: timeout: minutes: 15 method: qemu media: tmpfs prompts: - 'device-mgmt login:' - 'root@device-mgmt' - 'You are currently connected via: ttyS0 (115200)' auto_login: login_prompt: "device-mgmt login:" username: root password_prompt: "Password:" password: "root"
Attaching the job logs. I still think my welcome messages are doing the trick. Hope you can guide more .
Thanks, Sweta ________________________________ From: Milosz Wasilewski milosz.wasilewski@foundries.io Sent: Wednesday, October 30, 2024 2:18 AM 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 3:55 PM Sweta Ghosh sweta.ghosh@nagarro.com wrote:
Hello Milosz,
I updated the job as suggested. But even though it is matching the prompt successfully the "kernel-messages" as passed. It stays in hung state and fails after timeout.
- boot: timeout: minutes: 15 method: qemu media: tmpfs prompts:
auto_login: login_prompt: "device-mgmt login:" username: root password_prompt: "Password:" password: "root"
- 'root@device-mgmt'
Please find the logs attched.
I don't think I can help here. There is something wrong in the device dict, a job definition or both. The log shows this after matching the login prompt:
Setting prompt string to ['\r']
This is incorrect. It should have a list of prompts from the boot action. My example below:
https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flava.infra...https://lava.infra.foundries.io/scheduler/job/54821#L1274 Setting prompt string to ['fio@am62xx-evm', 'Password:', 'root@am62xx-evm']
It looks like you have a new line character somewhere and it's causing issues.
Best Regards, Milosz