On Thursday 02 November 2017 08:16 AM, Alex Shi wrote:
I am trying to add a qemu01, but can not find a correct way to add it into database. and the old command from Chase Qi is also failed. https://validation.linaro.org/static/docs/v2/pipeline-admin.html#updating-de... https://validation.linaro.org/static/docs/v2/first-devices.html
~# lava-server manage device-dictionary --hostname lava --import qemu01.jinja2 Unknown command: 'device-dictionary' Type 'lava-server help' for usage.
Yes lava-server manage device-dictionary is unavailable and the documentation needs an update (I will do that shortly).
Anyone like to tell me the correct way to go down lava setup?
To add a new device use the following command:
$ sudo lava-server manage devices add --device-type lxc --description "third lxc device" --worker "harshu.stylesen.org" lxc03
To update the device dictionary there are three ways to do the same, which is explained in https://staging.validation.linaro.org/static/docs/v2/pipeline-admin.html#upd...
1) Use lava-tool device-dictionary command as follows (need to add the respective api token to use the following command):
<snip> $ sudo lava-tool device-dictionary --update /tmp/lxc.jinja2 http://stylesen@localhost/RPC2 lxc03 Updating device dictionary for lxc03 on http://stylesen@localhost/RPC2
Device dictionary updated for lxc03 </snip>
Adding API token is as follows (if required):
<snip> $ sudo lava-tool auth-add http://stylesen@localhost/RPC2 Paste token for http://stylesen@localhost/RPC2/: Token added successfully for user stylesen. </snip>
2) Copy the respective jinja2 file to /etc/lava-server/dispatcher-config/devices/
<snip> $ cat /etc/lava-server/dispatcher-config/devices/lxc03.jinja2 {% extends 'lxc.jinja2' %} {% set exclusive = True %} </snip>
3) https://validation.linaro.org/static/docs/v2/pipeline-admin.html#using-xml-r...
Thank You.