Hello everyone,
I know from the LAVA documentation how to add metadata to jobs and test suites. When I look at test results, I see that test cases have metadata, too. E.g. https://validation.linaro.org/results/testcase/9759970 shows the following metadata:
case: linux-linaro-ubuntu-lscpu
definition: 0_smoke-tests-lxc
result: pass
Is there a possibility to add custom metadata to test cases?
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(a)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
Hello,
I am having an issue adding a health-check job for a device-type using the API. I have tried doing so using both lavacli and through a python script using the xml-rpc client, but both times I get the following error:
With lavacli:
Unable to call 'device-types.health-check': <Fault 400: 'Unable to write health-check: Permission denied'>
With the python script:
Traceback (most recent call last):
File "./API.py", line 9, in <module>
server.scheduler.device_types.set_health_check("r8a7743-iwg20d-q7-dbcm-ca","r8a7743-iwg20d-q7-dbcm-ca.yaml")
File "/usr/lib/python3.5/xmlrpc/client.py", line 1092, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python3.5/xmlrpc/client.py", line 1432, in __request
verbose=self.__verbose
File "/usr/lib/python3.5/xmlrpc/client.py", line 1134, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python3.5/xmlrpc/client.py", line 1150, in single_request
return self.parse_response(resp)
File "/usr/lib/python3.5/xmlrpc/client.py", line 1322, in parse_response
return u.close()
File "/usr/lib/python3.5/xmlrpc/client.py", line 655, in close
raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault 400: 'Unable to write health-check: Permission denied'>
The user I use to authenticate the xml-rpc client has superuser privileges and I have tried using a number of different API functions (including ones which require superuser privileges like device-types add and devices add), all of which have worked with both lavacli and the python script.
I have also made sure that the name of the healthcheck file matches the device-type.
Has anyone else encountered this issue?
Thanks,
Patryk
Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.
Hi all,
I've installed lava-docker from
https://github.com/kernelci/lava-docker
but I'm little confused about adding devices and device-types to it .
As described in the link above , i've edited boards.yaml file and added the
board name as follows
masters:
- name: master1
host: local
users:
- name: admin
token: longrandomtokenadmin
password: admin
superuser: yes
staff: yes
tokens:
- username: admin
token: dfjdfkfkdjfkdsjfsl
description: no description
slaves:
- name: lab-slave-0
host: local
remote_master: master1
remote_user: admin
boards:
- name: bcm2837-rpi-3-b-01
type: bcm2837-rpi-3-b
uart:
idvendor: 0x0403
idproduct: 0x6001
serial: A904MHLH
after I built docker image and ran it.
i'm getting following error while loading docker images
Removing local_lab-slave-0_1
local_master1_1 is up-to-date
Recreating 5b8d2c91c519_local_lab-slave-0_1 ... error
ERROR: for 5b8d2c91c519_local_lab-slave-0_1 Cannot start service
lab-slave-0: linux runtime spec devices: error gathering device information
while adding custom device "/dev/bcm2837-rpi-3-b-01": lstat
/dev/bcm2837-rpi-3-b-01: no such file or directory
ERROR: for lab-slave-0 Cannot start service lab-slave-0: linux runtime
spec devices: error gathering device information while adding custom device
"/dev/bcm2837-rpi-3-b-01": lstat /dev/bcm2837-rpi-3-b-01: no such file or
directory
help me resolve this issue.
Thanks,
Manoj
Hello Lava-users,
I am trying to run some test suites in LAVA and my test suite is organized
as below
-single script with multiple test cases
-want to have report the results from LAVA of all test cases
-don't want to depend on the return value of script which will make as test
case as PASS or FAIL
Developing test suites in shell script and using sh-test-lib and attached
is sample test script for reference.
Want to report the result of iptable_packageCheck_test and
iptable_kernel_config_test separately in LAVA framework and will be having
single script for both the test cases.
Based on above criteria which is best method of running the test script in
LAVA.Referred
https://validation.linaro.org/static/docs/v2/developing-tests.html
Following is the content of LAVA Test Shell Definition I am using
metadata:
name: applications
format: "Lava-Test-Shell Test Definition 1.0"
description: "Application tests."
os:
- debian
scope:
- Functional
environment:
- lava-test-shell
run:
steps:
- cd /opt/applications
- ./cron.sh
- ./iptable.sh
- . ../utils/send-to-lava.sh output/result.txt
Thanks,
Hemanth.
Hello,
Is there a way to overwrite the SERVER_IP variable either in the LAVA environment or in the device-types template/device dictionary? https://lava.ciplatform.org/static/docs/v2/migrating-admin-example.html?hig…
No matter what I do, it remains in the rendered yaml file for a device. Unfortunately, the IP it picks up for the environment I'm working is wrong, as I'm running LAVA within a docker-container and it picks up the IP of the container, but the tftp server (within docker) is proxified to the host, meaning that the IP address it needs to pick up is the host's IP. Hence my question, is there a way to overwrite it so that the desired IP appears in the rendered job submission yaml?
Thanks,
Patryk
Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.
Hello,
When trying to use lavacli to add a remote worker, it works fine if
the user is a superuser. However, if I drop the superuser privileges
and add just the privileges for adding workers, it fails with:
Unable to call 'workers.add': <Fault 403: "User 'testuser' is not superuser."
we even tried enabling all the permissions for that user, but leaving
the superuser flag off, and it still fails.
Why does this require superuser and the specific permissions related
to workers don't work?
Kevin
Hi,
I made a first attempt to add REST API for some LAVA objects (jobs,
devices and device types). The API is very rudimentary but already
solves some basic job filtering issues. However I'm not sure how to
add dependencies. There are 2 packages required for this code to work
properly. Pip packages are named 'djangorestframework' and
'djangorestframework-filters'. Former has a corresponding debian
package 'python3-djangorestframework' but the later does not. Any
hints how to add proper dependencies to LAVA?
The code can be found here:
https://git.lavasoftware.org/mwasilew/lava/tree/rest_api
milosz
Hello,
I am looking for a suitable method for the following use-case: during test,
I need to access the connection to the workstation that runs my LAVA worker
and use it as a second namespace in order to be able to issue some commands
on the the workstation (like playing an audio file). In other words I need
to integrate the workstation as an auxiliary device needed for testing in
the test job definition (like ssh <user>@<ws_ip_addr> and send some
commands). Using LXC is not an option at this moment.
At a first sight, the Multinode support would have the most of the needed
features, but I did not find an example of such an usage, if there is any
example you can point me to, I will be grateful.
Thank you in advance,
Oana Ercus