Hi Milosz,

 

Below I am attaching the test job definition which I used.

priority: high

visibility: public

device_type: industrial-mtda-simatic-ipc227e-02

tags:

- slll-industrial-mtda-simatic-ipc227e-02

visibility: public

timeouts:

  job:

    minutes: 20

  action:

    minutes: 10

  connection:

    hours: 1

job_name: slll_simatic_swupdate_test

actions:

- deploy:

    to: overlay

    os: debian

- boot:

    method: minimal

    reset: true

    failure_retry: 2

    auto_login:

      login_prompt: 'ebsy-isar login:'

      username: root

      password_prompt: "Password:"

      password: root

    prompts:

    - 'root@ebsy-isar:~#'

    transfer_overlay:

      download_command: cd /var ; sleep 10; wget;

      unpack_command: tar -C /var -xzf

- test:

    definitions:

    - repository: http://<ip_addr_of_host>/linux-qa-suites.tar.gz

      from: url

      path: linux-qa-suites/automated/eps-test/linux_kernel/linux_kernel.yaml

      name: linux_kernel

      compression: gz

metadata:

  Description: '"Lava jobs for simatic-ipc277e swupdate test check"'

context:

  arch: x86

Regards,

Sarath P T

From: Milosz Wasilewski <milosz.wasilewski@foundries.io>
Sent: 28 February 2023 19:28
To: P T, Sarath <Sarath_PT@mentor.com>
Cc: lava-users@lists.lavasoftware.org; Bhola, Bikram (PLM) <bikram.bhola@siemens.com>
Subject: Re: [Lava-users] Re: Not able to unpack the overlay other than "/" directory

 

Sarah,

 

It's hard to debug without the testjob definition. Could you post this here?

 

Best Regards,

Milosz

 

On Tue, Feb 28, 2023 at 1:00 PM P T, Sarath <Sarath_PT@mentor.com> wrote:

 

Hi Team,

Any solution for the issue that I pointed here ? I tried below change as well

1) Changed the source code “/usr/lib/python3/dist-packages/lava_dispatcher/deployment_data.py”  with “/var/lava-%s “ custom path

debian = {

    "TESTER_PS1": r"linaro-test [rc=$(echo \$?)]# ",

    "TESTER_PS1_PATTERN": r"linaro-test \[rc=(\d+)\]# ",

    "TESTER_PS1_INCLUDES_RC": True,

    "boot_cmds": "boot_cmds",

    "line_separator": "\n",

    # for lava-test-shell

    "distro": "debian",

    "tar_flags": "--warning no-timestamp",

    "lava_test_sh_cmd": "/bin/bash",

    "lava_test_dir": "/var/lava-%s",

    "lava_test_results_part_attr": "root_part",

    "lava_test_results_dir": "/var/lava-%s",

    "lava_test_shell_file": "~/.bashrc",

}


Status of the change :
The overlay unpack is not happening in the specific directory that we applied to  lava_test_dir  and  lava_test_results_dir.

 


I would appreciate it if you could send the solution of the issue that I raised here.

 

Regards,

Sarath P T

 

From: P T, Sarath
Sent: 20 February 2023 18:35
To: 'lava-users@lists.lavasoftware.org' <lava-users@lists.lavasoftware.org>
Subject: Not able to unpack the overlay other than "/" directory

 

Hi Team,

 

Facing an issue while unpack the overlay in some custom location other than “/” directory. From the LAVA linaro documentation I came to know that the -C / command to tar is essential or the test shell will not be able to start. Below are the issues that I am facing because of this.

  • My / directory  is a read only one and I want it in some /etc or /var.
  • The LAVA job is getting stuck while doing the unpack  with the command below in job definition.

 

transfer_overlay:

      download_command: cd /tmp; wget

      unpack_command: tar -C /tmp -xzf

Below I am attaching the test log from LAVA.


How we can solve the read only filesystem image issue for unpacking the overlay other than “/” directory ?


Regards,
Sarath P T

 

 

_______________________________________________
Lava-users mailing list -- lava-users@lists.lavasoftware.org
To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s