Best Regards

 

XuHongyu

 

From: Remi Duraffort [mailto:remi.duraffort@linaro.org]
Sent: 2017
1123 18:49
To: Xu, Hongyu <hongyu.xu@hxt-semitech.com>
Cc: Lava-users@lists.linaro.org
Subject: Re: [Lava-users] how to auto login the os with lava

 

Hello,

 

looking at the logs, I see some issues:

1/ the prompt that you are giving to LAVA is too vague. See the warning

> The string '[root@.* .*]#' does not look like a typical prompt and could match status messages instead. Please check the job log files and use a prompt string which matches the actual prompt string more closely.

 

What is the exact prompt that your rootfs is using?

 

This is the prompt  in my rootfs:  (I think the time and the hostname is dynamic, so I use .*)

Last login: Mon Feb 11 01:42:06 on ttyAMA1

[root@localhost ~]#

 

2/ Job 454 log in incomplete.

 

Job 454 can’t auto login , it will hang in here. So I cancle the job! (because I set the timeout time is long)

 

3/ Job 439 is timing out in the test shell

> Test shell timeout: 10s (minimum of the action and connection timeout)

 

4/ Job 439 cannot run because the overlay is not installed 

> bash: /lava-439/bin/lava-test-runner: No such file or directory

 

Yes, I know .Now the  UEFI-MENU can’t use the “transfer_overlay”, so I try nfsboot!

 

 

Regards

 

2017-11-23 11:32 GMT+01:00 Xu, Hongyu <hongyu.xu@hxt-semitech.com>:

Hi dear all, 

 

                I boot my device with nfs in lava, but it can’t auto login the os , I put the logs to attachment !

               Please give me some idear.

              And I can boot and auto login successful with sata boot, use the same job.yaml file!

 

My job 454 :

 

device_type: amberwing_rep1

job_name: amberwing_rep_nfs

priority: medium

visibility: public

 

metadata:

  docs-filename: amberwing_rep_nfs

timeouts:

  job:

    minutes: 300

  action:

    minutes: 200

  connection:

    minutes: 100

actions:

- deploy:

    to: tftp

    kernel:

      url: http://swlab004/centos7/iso20171026-0/images/pxeboot/vmlinuz

      type: zimage

    ramdisk:

      url: http://swlab004/centos7/iso20171026-0/images/pxeboot/initrd.img

      compression: xz

      install_overlay: false

    nfsrootfs:

      url: http://autotest002/tmp/rootfs_centos.tar.gz

      install_overlay: true

    preseed:

      url: http://swlab004/centos7/anaconda-ks_1026.cfg

    os: centos

    timeout:

      minutes: 5

   

- boot:

    timeout:

      minutes: 200

    connection: serial

    method: uefi-menu

    auto_login:

      login_prompt: '.* login:'

      username: root

      password_prompt: 'Password:'

      password: root

    commands: nfs_boot

    prompts:

    - 'Last login: .*'

    - '[root@.* .*]#'

    parameters:

      shutdown-message: "reboot: Restarting system"

 

- test:

    timeout:

      minutes: 50

    definitions:

    - repository:

        metadata:

          format: Lava-Test Test Definition 1.0

          name: smoke-tests-basic

          description: "Basic system test command for Linaro Ubuntu images. The test runs basic commands like pwd, uname, vmstat, ifconfig, lscpu, lsusb and lsb_release."

          maintainer:

          - hongyu.xu@hxt-semitech.com

          os:

          - centos

          scope:

          - functional

          devices:

          - amberwing_rep-022

      run:

          steps:

          - echo "test1a:" "pass"

      from: inline

      name: smoke-tests1

      path: inline/smoke-tests.yaml  

 

Best Regards

 

XuHongyu

 



This email is intended only for the named addressee. It may contain information that is confidential/private, legally privileged, or copyright-protected, and you should handle it accordingly. If you are not the intended recipient, you do not have legal rights to retain, copy, or distribute this email or its contents, and should promptly delete the email and all electronic copies in your system; do not retain copies in any media. If you have received this email in error, please notify the sender promptly. Thank you.

 


_______________________________________________
Lava-users mailing list
Lava-users@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lava-users



 

--

Rémi Duraffort

LAVA Team




This email is intended only for the named addressee. It may contain information that is confidential/private, legally privileged, or copyright-protected, and you should handle it accordingly. If you are not the intended recipient, you do not have legal rights to retain, copy, or distribute this email or its contents, and should promptly delete the email and all electronic copies in your system; do not retain copies in any media. If you have received this email in error, please notify the sender promptly. Thank you.