Hi Guys:

 

When I am doing a multi-node testing, I create one job definition liking below. For example:

Sub-job 1 finished booting and testing, but sub-job 2 is on-going booting. So sub-job 1 will

Remove the template file like <lava_dipatcher>/tmp/overlay****, that will cause sub-job 2 could NOT download

The overlay**** file,  sub-job 2 failed in the end. My question is how to do sync between multi-node in the job

Definition?

 

My job definition:

 

protocols:

  lava-multinode:

    roles:

      foo:

        tags:

          - board1

        device_type: **********

        context:

          grub_method: centos

          grub_installed_device: (hd1,gpt1)

        count: 1

      bar:

        tags:

          - board2

        device_type: **********

        context:

          grub_method: centos

          grub_installed_device: (hd2,gpt1)

        count: 1

    timeout:

      minutes: 6

 

job_name: centos openjdk test

timeouts:

  job:

    minutes: 1500

  action:

    minutes: 50

  connection:

    minutes: 30

priority: medium

visibility: public

 

actions:

- deploy:

    role:

    - foo

    - bar

    kernel:

      url: http://********

      type: zimage

    os: centos

    timeout:

      minutes: 80

    to: tftp

 

- boot:

    timeout:

      minutes: 40

    role:

    - bar

    method: grub

    commands: centos_installed

    auto_login:

      login_prompt: 'login:'

      username: root

      password_prompt: 'Password:'

      password: root

    prompts:

    - 'root@localhost ~'

    transfer_overlay:

      download_command: rm -f /root/overlay* ; ifconfig ; wget -S --progress=dot:giga

      unpack_command: tar -C / -xaf

    parameters:

      shutdown-message: "reboot: Restarting system"

 

- boot:

    timeout:

      minutes: 40

    role:

    - foo

    method: grub

    commands: centos_installed

    auto_login:

      login_prompt: 'login:'

      username: root

      password_prompt: 'Password:'

      password: root

    prompts:

    - 'root@localhost ~'

    transfer_overlay:

      download_command: rm -f /root/overlay* ; ifconfig ; wget -S --progress=dot:giga

      unpack_command: tar -C / -xaf

    parameters:

      shutdown-message: "reboot: Restarting system"

 

 

- test:

    role:

    - foo

    - bar

    timeout:

      minutes: 50

    definitions:

    - repository: ssh://**********/test-definitions

      from: git

      branch: **********

      path: automated/linux/openjdk/openjdk-smoke.yaml

      name: openjdk-smoke

 

 

Thanks

B.R.

Guoqi

 




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.