summaryrefslogtreecommitdiffstats
path: root/lava-slave
AgeCommit message (Collapse)AuthorFilesLines
2020-11-23Handle 2020.09+ workersCorentin LABBE2-0/+33
Since 2020.09, workers does not use ZMQ anymore but use a token. This patch permit our setup to detecte when we use LAVA 2020.09+ and retrieve it from master.
2020-11-23Remove screen supportCorentin LABBE3-18/+0
When I have added screen support, it was a hack for made M3ulcb serial console works. But for a long time ser2net works on m3ulcb. So lava-docker discouraged usage of screen and now it is time to remove it.
2020-11-04Disable IPV6 for tftpCorentin LABBE1-1/+1
There is no need to listen on ipv6 inside docker. Furtheremore, this break lava-docker on non-ipv6 machine.
2020-08-18Increase LAVA version to 2020.07Corentin LABBE1-1/+1
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
2020-04-27increase timeout when waiting for masterCorentin LABBE1-2/+4
2020-03-18lava-slave: handle the case where there are no entrypoints to copyCorentin LABBE2-1/+1
If there are no entrypoint to copy, the COPY docker action will fail. For fixing this issue, simply copy all files instead of just "*sh". Since the entrypoint.d directory is not empty (got an empty file) it will always works. The LAVA script run only *sh files so we are still safe.
2020-03-03Update LAVA to 2020.02Corentin LABBE1-1/+1
2020-02-26lava-slave: copy entrypointsCorentin LABBE2-0/+2
This patch permit to adds custom entrypoints.
2019-09-27lava-slave: handle better board without worker setCorentin LABBE1-4/+8
2019-09-27Upgrade to 2019.09Corentin LABBE1-1/+1
2019-09-09lava-slave: Use python3 xmlrpcChristoph Rahn1-3/+3
2019-09-09lava-slave: Use python3 http server in start.shChristoph Rahn1-1/+1
2019-08-26Add support for device-type aliasCorentin LABBE3-0/+17
This patch adds support for the device-type aliases.
2019-08-26Upgrade to 2019.07Corentin LABBE2-2/+53
This patch upgrade LAVA to 2019.07 via their official docker images. Along with the change of the baseimage from our lava-xx-base to official 2019.07, some minor changes are needed: - Activate the en_US.UTF-8 locale needed for postgresql - chown to lavaserver all copied device-types - Fix the start scripts for using the official entrypoints
2019-06-13Install PXE stuff at runtimeCorentin LABBE2-2/+7
When /var/lib/lava/dispatcher/tmp is a volume (like when using NFS), it masks all PXE stuff installed during the build. For preventing this, this patchs made this data installed at runtime.
2019-05-13lava-slave: generate lavacli default identitiesCorentin LABBE2-0/+5
2019-05-13lava-slave: support lava-coordinatorCorentin LABBE2-0/+4
This patchs adds a new flag "lava-coordinator" for slave which enables the generation of a lava-coordinator.conf file.
2019-04-25lava-slave: Install git for checkout testsCorentin LABBE1-1/+4
When checkouting tests, git is necessary.
2019-04-01lava-slave: PXE: remove a File Not Found errorCorentin LABBE1-1/+0
biosdisk is not provided in default install and is not used, remove it.
2019-04-01Use 2019.03Corentin LABBE1-1/+1
Since 2019.03 is ready, use it
2019-03-21lava-slave: fix build failure due to pxe on non-amd64Corentin LABBE1-1/+3
The package grub-efi-amd64-bin is only availlable on amd64. Installing it on arm64 lead to a build failure. This patch permits to install it even on arm64
2019-03-21lava-slave: dont hide lavacli device-types list errorsCorentin LABBE1-1/+1
2019-03-21lava-slave: telnet is needed for ser2netCorentin LABBE1-1/+1
2019-03-19lava-slave: Applying patch need the patch packageCorentin LABBE1-0/+1
2019-02-15lava-slave: support PXE bootCorentin LABBE2-0/+19
This patch adds support for booting from PXE
2019-01-14Permit to choose loglevelCorentin LABBE2-0/+2
By default, all process use the DEBUG loglevel, this could be too much for a production server. This patch permits to tune the loglevel.
2019-01-07lava-slave: add missing apt-get updateCorentin LABBE1-0/+2
The first action need to be an apt-get update since we dont know how old is the base image.
2018-12-18Use 2018.11Corentin LABBE1-1/+1
This patch made lava-docker use a known to work dockerhub tag. Keep the latest tag for internal work.
2018-12-05lava-slave: lavacli cleanupCorentin LABBE1-1/+0
Since we use the lavacli package, there are no reason to chdir in /root/lavacli.
2018-12-03Use lavacli from package instead of from sourcesCorentin LABBE1-3/+1
A recent enough lavacli is present on stretch-backports. It is better to use it. This will fix also some commands not working with recent LAVA server.
2018-11-02Permit to have backported LAVA patch on slaveCorentin LABBE2-0/+3
Previoulsy it was possible to backport LAVA patch only on master, this patch permits it on slave.
2018-11-02lava-slave/Dockerfile: Remade extra_actions workingCorentin LABBE1-1/+1
extra_actions is broken since commit f3d53d64922d ("lava-slave/Dockerfile: copy all scripts in one actions") It is not anymore copied in /root but in /usr/local/bin/
2018-10-17Permit to set a group on boardsCorentin LABBE1-0/+4
This patch permit to add a group on boards
2018-10-15Permit to give board to userCorentin LABBE3-2/+12
By default LAVA give owning of boards to admin, this patch permit to give board to a specific user.
2018-10-03lava-slave/Dockerfile: copy all scripts in one actionsCorentin LABBE1-8/+2
2018-09-13Permit to add tags to devicesCorentin LABBE3-0/+8
This patch permits to add tags to device Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
2018-09-13lavalab-gen: fiz zmq key filename assumptionsKevin Hilman1-0/+1
The ZMQ key file names are expected to have specific names in the containers (e.g. $LAVA_MASTER.key). However, when using existing key files, they are simply copied into the containers, and if they don't match the exact requirements, encryption will silently fail. Fix this by allowing arbitrary filenames for existing keys, but ensure they are copied into the container with the expected filenames. Related, when using auto-generated keys, the generated master key is simply "master.key" in the slave. Fix this by ensuring that "master.key" is copied to $LAVA_MASTER.key when the slave container starts. Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2018-09-06lava-slave/Dockerfile: install recent ser2netCorentin LABBE1-0/+7
Current ser2net present in debian is too old, we need at least the 3.2 release for having the multiple connection support. This patch download, compile and install ser2net 3.5
2018-08-09lava-slave: increase connect to master timeoutCorentin LABBE1-3/+4
When trying to detect if master is up, we have set a timeout of 60s. This is good for most of the time, but when the master is restoring a database, 60s is not enougth. This patch increase timeout to 300s.
2018-08-08Do not change status for retired/maintenance re-added devicesCorentin LABBE1-1/+16
When re-adding devices to a worker, setup.sh re-add them with UNKNOWN status. This patch prevent this for RETIRED/MAINTENANCE status and keep it.
2018-08-08Call lava-cli devices/device-types list onceCorentin LABBE1-2/+10
Instead of calling devices/device-types list for each device, call them once.
2018-07-26lava-slave/Dockerfile: Use deb.debian.org instead of local mirrorCorentin LABBE1-1/+1
2018-07-25Split dockerfile in two imagesCorentin LABBE4-192/+4
The process of building LAVA is hard to maintain. But since we need to be able to go back in time (or just stay longer with a specific version) we need a way to keep a LAVA version. For achieving this, we build a minimal image with just LAVA and tag it with the version of LAVA inside.
2018-07-23Handle ZMQ authCorentin LABBE3-0/+10
This patch add support for using ZMQ auth. Basicly adding "zmq_auth: True" to a master is sufficient to enable it. Since "ZMQ certificates" are using a custom format (vs X509 classic), we need to use the custom generator. For helping with that a temporary docker is generated which handle generating thoses files.
2018-07-12Support screen for uartCorentin LABBE3-0/+18
This patch add support for using screen instead of conmux-console. screen can be used by adding "use_screen: True" to uart. screen is necessary for some board with internal uart which have a micro cut when switching power (like DRA7-EVM and M3ULCB)
2018-07-04Implement ser2netCorentin LABBE3-0/+6
This patch add support for ser2net. ser2net can be used by adding "use_ser2net: True" to uart.
2018-06-05Upgrade to 2018.4Corentin LABBE2-4/+105
This patch upgrade lava-docker to LAVA 2018.4
2018-06-05Implement MultipleslaveCorentin LABBE6-1/+169
This patch implement multiple slave support. Instead of having a maximum of one master and one slave in one docker image, it is now possible to have multiple slave accross several docker host. For helping this change, a new boards.yaml format is introduced (See README.md for details) Note that tokens.yaml is also squashed in boards.yaml
2018-03-08Reorder start of slave servicesCorentin LABBE1-5/+7
Starting lava-slave too early is dangerous since some services it needs are not started yet. Always start lava-slave in last.
2018-03-08Move copy of helper scriptsCorentin LABBE1-4/+4
Since nothing depends on them, copy them at last step. This prevents rebuild of all docker steps when changing them.