summaryrefslogtreecommitdiffstats
path: root/lava-slave
AgeCommit message (Collapse)AuthorFilesLines
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.
2018-03-08Install qemu-kvm only on x86/x86_64Corentin LABBE1-1/+2
qemu-kvm is not availlable on ARM. Install it only on supported x86/x86_64
2018-03-07Ensure that tty can be read by cuCorentin LABBE1-0/+2
On some OS, the rights/user from host are not duplicated on guest. So the tty is owned by root and cu could not read it. Force the owning of all tty by uucp
2018-02-02Remove lavapdu support and replace with pdu_genericCorentin LABBE2-16/+0
Recent lavapdu is unpackaged and buggy. Remove it and replace with a generic PDU command line wrapper
2018-02-02stick to LAVA 2017.11Corentin LABBE1-19/+9
Since LAVA packages are ephemeral, this patch permit to build a know release of LAVA. Introducing scripts/build-lava which builds from source any LAVA compoments from any version tag. In the same time, stick to 2017.11 as its a know working release for lava-docker.
2018-01-08Fix libguestfs on slaveCorentin LABBE1-0/+1
Libguestfs actions are done by the dispatcher, so the slave must be able to do them. In the same time, add a TODO for setting volumes as read_only.
2018-01-08Use cu package from testingCorentin LABBE1-0/+6
Some boards need cu > 1.07-24 It exists only in debian testing, so add a hack for getting it.
2018-01-08Move XNBD ports outside of dynamic port rangeCorentin LABBE1-2/+3
Under Linux, dynamic port range is 32768-60999, so a clash is possible with XNBD port range. Furthermore XNBD constants file have changed in 2017.11
2017-10-25Add support for lavapduCorentin LABBE3-0/+35
2017-10-25Add support for conmuxCorentin LABBE3-0/+25
2017-10-25import lava-slaveCorentin LABBE5-0/+96