Hello Milosz,

Sorry I missed giving full boot action in my previous mail:

- boot:
    timeout:
      minutes: 15
    method: qemu
    media: tmpfs
    prompts:
    - 'login:'
    auto_login:
      login_prompt: "login:"
      username: root
      password_prompt: "Password:"
      password: "***"

Error:
auto-login-action timed out after 900 seconds
end: 2.2 auto-login-action (duration 00:15:00) [common]
case: auto-login-action
definition: lava
duration: 900.00
extra: ...
level: 2.2
namespace: common
result: fail
boot-image-retry failed: 1 of 1 attempts. 'auto-login-action timed out after 900 seconds'
auto-login-action timed out after 900 seconds
end: 2 boot-image-retry (duration 00:15:00) [common]

Kindly suggest.

Thanks,
Sweta

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


Sweta,

On Thu, Oct 17, 2024 at 4:35 PM <sweta.ghosh@nagarro.com> wrote:
>
> Hello,
> We are testing our custom debian image and have added banner messages before login and after login and after the implementation LAVA job is failing on auto-login.
> Please find example banner messages:
> |_   _/
>   | |
>   | |
>  _| |
> |_____\
> Info:
>   Example.....: ABC
>   Example......: ABC
> IP:
>   etho.......:123
> Info:
> 1. some info
> Some Info:
> 1. ###
> Some more info: ####
>
> login :
>
> It looks like due to a huge banner message before the login prompt it is getting confused and due to this, it gets stuck at auto login and timeouts. Please suggest if we can ignore this in LAVA to login and execute the test case
>
> Please find the job details:
> device_type: qemu
> job_name: banner
> timeouts:
>   job:
>     minutes: 30
>   action:
>     minutes: 25
>   connection:
>     minutes: 5
> priority: medium
> visibility: public
> context:
>   arch: amd64
>   lava_test_results_dir: "/home/lava-%s"
> actions:
> - deploy:
>     timeout:
>       minutes: 15
>     to: tmpfs
>     images:
>       rootfs:
>         url: file:///home/image
>         image_arg: XXXX
>
> - boot:
>     timeout:
>       minutes: 15
>     method: qemu
>     media: tmpfs
>     prompts:
>     - 'login:'

I think this might be your issue. Did you try to change the prompt to sth else?

>     auto_login:
>       login_prompt: "login:"
>       username: abc
>       password_prompt: "Password:"
>       password: "abc"
>

Best Regards,
Milosz