summaryrefslogtreecommitdiffstats
path: root/lava-slave/scripts/setup.sh
AgeCommit message (Collapse)AuthorFilesLines
2019-06-13Install PXE stuff at runtimeCorentin LABBE1-0/+6
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 LABBE1-0/+2
2019-03-21lava-slave: dont hide lavacli device-types list errorsCorentin LABBE1-1/+1
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-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 LABBE1-2/+11
By default LAVA give owning of boards to admin, this patch permit to give board to a specific user.
2018-09-13Permit to add tags to devicesCorentin LABBE1-0/+7
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-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-23Handle ZMQ authCorentin LABBE1-0/+8
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-06-05Implement MultipleslaveCorentin LABBE1-0/+93
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