Hello Ryan,
will be in staging tomorrow.
Le jeu. 27 févr. 2020 à 12:40, Ryan Harkin ryan.harkin@linaro.org a écrit :
Hi Remi,
Thanks for the quick response and fix! Much appreciated :)
Cheers, Ryan.
On Thu, 27 Feb 2020 at 11:20, Remi Duraffort remi.duraffort@linaro.org wrote:
Hello Ryan,
the schema validator is not taking this into account.
Fixed by https://git.lavasoftware.org/lava/lava/-/merge_requests/1025
I also improved the reporting so you see the error when clicking on "validate".
Thanks
Le mer. 26 févr. 2020 à 20:48, Ryan Harkin ryan.harkin@linaro.org a écrit :
Hi LAVA folks,
I'm trying to create a multinode job based on iperf.yaml:
https://github.com/Linaro/test-definitions/blob/master/automated/linux/iperf...
(note, this iperf.sh test doesn't actually work as intended, but that's a problem I'm debugging).
The full job definition is at the bottom of this email.
Anyway, I'm adding my own deploy and boot sections, as per working single node jobs. However, my deploy uses "command" actions, like this:
- command: role: - host - guest namespace: dfu-firmware name: set_boot_to_nand
These give error messages like this:
Invalid definition: extra keys not allowed @
data['actions'][1]['command']['role']
And if I remove the "role" settings, I get a different error:
Valid definition with warnings: Every action of a multinode job
should have roles
So it seems like I'm in a loop.
Any suggestions??
Thanks, Ryan.
JOB DEFINITION
job_name: lces2-iperf timeouts: job: minutes: 60 action: minutes: 3 connection: minutes: 5 priority: medium visibility: public
metadata: iperf-version: v3
protocols: lava-multinode: roles: host: device_type: rzn1d count: 1 timeout: minutes: 30 guest: device_type: rzn1d count: 1 timeout: minutes: 30
actions:
#################### # Deploy QSPI images ####################
- deploy: role:
namespace: dfu-firmware to: tmpfs images: sf_fsbl: image_arg: --alt sf_fsbl --download {sf_fsbl} url:
- host
- guest
https://snapshots.linaro.org/openembedded/schneider/linaro-warrior-4.9/rzn1d... sf_trustedfw: image_arg: --alt sf_trustedfw --download {sf_trustedfw} url: https://snapshots.linaro.org/openembedded/schneider/linaro-warrior-4.9/rzn1d... sf_uboot0: image_arg: --alt sf_uboot0 --download {sf_uboot0} url: https://snapshots.linaro.org/openembedded/schneider/linaro-warrior-4.9/rzn1d... sf_uboot1: image_arg: --alt sf_uboot1 --download {sf_uboot1} url: https://snapshots.linaro.org/openembedded/schneider/linaro-warrior-4.9/rzn1d...
- command: namespace: dfu-firmware role:
name: set_boot_to_nand
- host
- guest
- boot: namespace: dfu-firmware role:
method: dfu timeout: minutes: 10
- host
- guest
- command: namespace: test role:
name: set_boot_to_qspi
- host
- guest
############### # TFTP/NFS ###############
- deploy: namespace: test-nfs role:
timeout: minutes: 5 to: tftp os: oe kernel: url:
- host
- guest
https://snapshots.linaro.org/openembedded/schneider/linaro-warrior-4.9/rzn1d... type: zimage dtb: url: https://snapshots.linaro.org/openembedded/schneider/linaro-warrior-4.9/rzn1d... nfsrootfs: url: https://snapshots.linaro.org/openembedded/schneider/linaro-warrior-4.9/rzn1d... compression: bz2
- boot: namespace: test-nfs role:
connection-namespace: dfu-firmware timeout: minutes: 20 method: u-boot commands:
- host
- guest
- setenv autoload no
- dhcp
- dhcp
- env print
- setenv serverip {SERVER_IP}
- tftp {KERNEL_ADDR} {KERNEL}
- tftp {DTB_ADDR} {DTB}
- setenv bootargs 'console=ttyS0,115200n8 root=/dev/nfs rw
nfsroot={NFS_SERVER_IP}:{NFSROOTFS},tcp,hard,intr,vers=3 rootwait coherent_pool=2M ip=dhcp' - '{BOOTX}' auto_login: login_prompt: 'login:' username: root prompts: - 'root@snarc-soca9:' - 'root@rzn1-snarc:'
- test: namespace: test-nfs role:
timeout: minutes: 30 definitions:
- host
- repository: metadata: format: Lava-Test Test Definition 1.0 name: run-iperf3-server description: "Run iperf3 in server mode" run: steps: - apt-get -y update - apt-get -y install iperf3 - if iperf3 -s -D; then lava-test-case run-iperf3-server
--result 'pass'; else lava-test-raise 'Failed to run ipef3 server'; fi - lava-send server-ready ipaddr=$(lava-echo-ipv4 eth0) - lava-wait client-done - pkill iperf3 from: inline name: run-iperf3-server path: inline/run-iperf3-server.yaml
- test: namespace: test-nfs role:
timeout: minutes: 30 definitions:
- guest
- repository:
https://git.linaro.org/people/chase.qi/test-definitions.git from: git path: automated/linux/iperf/iperf.yaml name: iperf3-test parameters: SERVER: lava-host-role # The MSG ID and KEY should be the same as the ones sent by lava-send above MSG_ID: server-ready MSG_KEY: ipaddr _______________________________________________ Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users
-- Rémi Duraffort LAVA Architect Linaro