Hello,
I want to set up a multinode job containing an LXC device. Unfortunately I always get the following error:
Missing protocol 'lava-lxc' in ['lava-multinode']
My LXC device works with singlenode jobs. I used this example job for reference:
https://github.com/Linaro/lava-dispatcher/blob/release/lava_dispatcher/test/...
I only changed "release" from "sid" to "stretch" and then this job works correctly.
For a minimal multinode job I added the "lava-multinode" protocol, defined a role and assigned this role to each action:
job_name: lxc-pipeline timeouts: job: minutes: 15 action: minutes: 5 priority: medium visibility: public
protocols: lava-multinode: roles: remote: device_type: lxc count: 1 timeout: minutes: 6 lava-lxc: name: pipeline-lxc-test template: debian distribution: debian release: stretch mirror: http://ftp.us.debian.org/debian/ security_mirror: http://mirror.csclub.uwaterloo.ca/debian-security/
actions: - deploy: timeout: minutes: 5 to: lxc os: debian role: - remote
- boot: prompts: - 'root@(.*):/#' timeout: minutes: 5 method: lxc role: - remote
- test: timeout: minutes: 5 definitions: - repository: git://git.linaro.org/qa/test-definitions.git from: git path: common/dmidecode.yaml name: dmidecode role: - remote
With this job definition the above error appears. Am I missing anything or is this a bug in LAVA?
Mit freundlichen Grüßen / Best regards Tim Jaacks DEVELOPMENT ENGINEER Garz & Fricke GmbH Tempowerkring 2 21079 Hamburg Direct: +49 40 791 899 - 55 Fax: +49 40 791899 - 39 tim.jaacks@garz-fricke.com www.garz-fricke.com SOLUTIONS THAT COMPLETE!
Sitz der Gesellschaft: D-21079 Hamburg Registergericht: Amtsgericht Hamburg, HRB 60514 Geschäftsführer: Matthias Fricke, Manfred Garz
Hi,
On Monday 12 March 2018 09:19 PM, Tim Jaacks wrote:
I want to set up a multinode job containing an LXC device. Unfortunately I always get the following error:
Missing protocol 'lava-lxc' in ['lava-multinode']
This is because each role should have a lava-lxc protocol defined.
For a minimal multinode job I added the "lava-multinode" protocol, defined a role and assigned this role to each action:
Going through your job, I could see you are requesting a single device (role) in your multinode job, which is not the use-case which multinode caters. There should be more than one device (roles) requested as part of the job. For a single device, single node jobs are the way to go.
With this job definition the above error appears. Am I missing anything or is this a bug in LAVA?
See https://staging.validation.linaro.org/scheduler/job/213532 - which is a sample multinode job run with two lxc devices requested as part of the job. You can see how each role has a lava-lxc protocol defined for it.
The job definition is available here - https://git.linaro.org/lava-team/refactoring.git/plain/lxc-multinode.yaml
HTH. Thank You.
lava-users@lists.lavasoftware.org