Hi,
I upgraded to LAVA 2017.7 (for now I'm using https://github.com/kernelci/lava-docker) and managed to add my device-type and device as follows: # Note: I didn't know how to update to 2017.9
docker# lava-server manage device-types add renesas-iwg20m docker# lava-server manage devices add --device-type renesas-iwg20m --worker lava-docker iwg20m01
However, when I want to add the device dictionary I get an error. # Note: I am following https://validation.linaro.org/static/docs/v2/pipeline-admin.html
First, I tried with "lava-server manage device-dictionary" as in the documentation, but I failed:
docker# lava-server manage device-dictionary Unknown command: 'device-dictionary'
Is this only available in the 2017.9 version?
Then, I tried with " lava-tool device-dictionary localhost lava-docker --update myiwg20m.jinja2" but I get: Updating device dictionary for lava-docker on localhost ERROR: Endpoint URL not found in the authorization list: localhost [Note] my lava-tool is version 0.23-1 (the newest according to apt)
Now, there is a section saying "Using the command line The device dictionary exists as a jinja2 file in /etc/lava-server/dispatcher-config/devices and can be updated by admins with the necessary access.". Is this equivalent to using lava-server o lava-tool to install a device dictionary??
Others: - I confirmed that Pipeline device? is checked. - Django administration > Devices: what is the meaning of Hostname? I have a value of iwg20m01 (the name of the device), there is no relation with the server/container's hostname, is there? - There is an authentication token for the user 'kernel-ci'
Thanks, Daniel
Daniel
"Daniel Sangorrin" daniel.sangorrin@toshiba.co.jp writes:
Then, I tried with " lava-tool device-dictionary localhost lava-docker --update myiwg20m.jinja2" but I get: Updating device dictionary for lava-docker on localhost ERROR: Endpoint URL not found in the authorization list: localhost [Note] my lava-tool is version 0.23-1 (the newest according to apt)
Now, there is a section saying "Using the command line The device dictionary exists as a jinja2 file in /etc/lava-server/dispatcher-config/devices and can be updated by admins with the necessary access.". Is this equivalent to using lava-server o lava-tool to install a device dictionary??
Others:
- I confirmed that Pipeline device? is checked.
- Django administration > Devices: what is the meaning of Hostname? I have a value of iwg20m01 (the name of the device), there is no relation with the server/container's hostname, is there?
- There is an authentication token for the user 'kernel-ci'
For this you need to have added an authentication token - see the API via the web interface,
In the LAVA web interface, click on API->Authentication Tokens and then on the 'new' button, give it a description and then click the 'View Token Hash' button and copy the displayed hash value. Then ''lava-tool auth-add http://lavauser@localhost:8080/RPC2 Paste token for http://lavauser@localhost:8080/RPC2/: **paste token - which will not be echoed**
The easier option is just to copy the dictionary file to /etc/lava-server/dispatcher-config/devices/$deviceName.jinja2
Robert
Hi Robert,
-----Original Message----- From: Lava-users [mailto:lava-users-bounces@lists.linaro.org] On Behalf Of Robert Marshall Sent: Tuesday, September 12, 2017 3:24 PM To: 'Lava Users Mailman list' Subject: Re: [Lava-users] adding a device dictionary in 2017.7
Daniel
"Daniel Sangorrin" daniel.sangorrin@toshiba.co.jp writes:
Then, I tried with " lava-tool device-dictionary localhost lava-docker --update myiwg20m.jinja2" but I get: Updating device dictionary for lava-docker on localhost ERROR: Endpoint URL not found in the authorization list: localhost [Note] my lava-tool is version 0.23-1 (the newest according to apt)
Now, there is a section saying "Using the command line The device dictionary exists as a jinja2 file in /etc/lava-server/dispatcher-config/devices and can be updated by admins with the
necessary access.".
Is this equivalent to using lava-server o lava-tool to install a device dictionary??
Others:
- I confirmed that Pipeline device? is checked.
- Django administration > Devices: what is the meaning of Hostname? I have a value of iwg20m01 (the name of the device), there is no relation with the server/container's hostname, is there?
- There is an authentication token for the user 'kernel-ci'
For this you need to have added an authentication token - see the API via the web interface,
In the LAVA web interface, click on API->Authentication Tokens and then on the 'new' button, give it a description and then click the 'View Token Hash' button and copy the displayed hash value. Then ''lava-tool auth-add http://lavauser@localhost:8080/RPC2 Paste token for http://lavauser@localhost:8080/RPC2/: **paste token - which will not be echoed**
I had already added the token but with a different interface: lava-server manage tokens add --user kernel-ci --secret $LAVA_API_TOKEN That worked fine, and I can see the token in API > Authentication Tokens
When I try ''lava-tool auth-add http://kernel-ci@localhost/RPC2" I get ERROR: Token rejected by the server for user kernel-ci.
It seems I have something broken...
The easier option is just to copy the dictionary file to /etc/lava-server/dispatcher-config/devices/$deviceName.jinja2
Thanks! I didn't read in the documentation that the name had to be $deviceName. But that convention makes sense.
Thanks, Daniel
lava-users@lists.lavasoftware.org