summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-07-26README: Add an upgrade guideCorentin LABBE1-0/+8
2018-07-26lavalab-gen.sh: use rm -fCorentin LABBE1-3/+3
2018-07-26lavalab-gen.py: use zmq_auth valueCorentin LABBE1-1/+3
The current script just check for zmq_auth presence and does not check if it is set to false. this patch fix that!
2018-07-26Permit to choose the FQDN printed in emailCorentin LABBE4-1/+17
2018-07-25Remove build-lavaCorentin LABBE2-114/+0
We no longer build LAVA from source, so all build-lava stuff must go.
2018-07-25Split dockerfile in two imagesCorentin LABBE13-112/+105
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-24Merge pull request #35 from montjoie/token_fixkhilman3-3/+6
lavalab-gen.py: token is optional for users
2018-07-24lavalab-gen.py: token is optional for usersCorentin LABBE3-3/+6
2018-07-23Merge pull request #33 from montjoie/zmq_authkhilman13-3/+155
Zmq auth
2018-07-23Handle ZMQ authCorentin LABBE13-3/+155
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-20Merge pull request #32 from montjoie/persistantdb_prkhilman6-3/+75
Persistantdb pr
2018-07-20Do not add already existing tokenCorentin LABBE1-2/+7
When restoring a database, token are restored and so cannot be re-created.
2018-07-20Permit to backup/restore lavaserver databaseCorentin LABBE5-0/+49
This patch add an easy way to backup postgresql database and needed data stored in filesystem. In the mean time, a way to restore backup during start is added
2018-07-19Made the database persistentCorentin LABBE3-1/+19
Until now, each docker-compose down will loose all data (jobs, devices, etc...). By creating a docker volume, the database will now be persistent other restart. Due to a risk of the lava package reseting the password, it is always reseted at start. This patch add also another volume for job output which are stored in the filesystem and not in database.
2018-07-16Merge pull request #30 from montjoie/fix072018khilman10-18/+108
Fix072018
2018-07-12Exit if device-types patch does not applyCorentin LABBE1-1/+1
2018-07-12Add device-types and tokens at startupCorentin LABBE3-8/+20
This patch remove the use of setup.sh during build. So setup.sh is now ran during startup. Since setup.sh could ran multiple times (start -> stop -> start) against the same database, we need to handle already existing objects (user, devices,...) So all "add objects" are done only after a check that this object is not already present.
2018-07-12Permit to have backported LAVA patchCorentin LABBE3-0/+6
If backporting LAVA patch is necessary, this patch add an easy way to do it.
2018-07-12Do not copy start/stop scripts twiceCorentin LABBE1-4/+0
It is unnecessary to copy start/stop twice during build
2018-07-12Detect unknown keywordsCorentin LABBE1-0/+16
This patch warnings the user when using lavalab-gen.py with unknow keywords in boards.yaml.
2018-07-12Support screen for uartCorentin LABBE5-1/+35
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-09Merge pull request #28 from kernelci/wip/fixeskhilman1-1/+1
lavalab-gen: add \n between custom options
2018-07-04Implement ser2netCorentin LABBE5-5/+31
This patch add support for ser2net. ser2net can be used by adding "use_ser2net: True" to uart.
2018-06-05lavalab-gen: add \n between custom optionsKevin Hilman1-1/+1
If a board has mutliple custom options, they need to be separated by a newline. Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2018-06-05Merge pull request #27 from montjoie/multi_slave_2018_xkhilman26-414/+1166
Multi slave 2018 x
2018-06-05Permit to access LAVA webadmin via httpsCorentin LABBE3-16/+32
This patch permits to access LAVA webadmin via HTTPS. Resolve SPEC-1493
2018-06-05Allow to have device-types-patchCorentin LABBE2-0/+3
2018-06-05Upgrade to 2018.4Corentin LABBE10-62/+556
This patch upgrade lava-docker to LAVA 2018.4
2018-06-05Implement MultipleslaveCorentin LABBE16-337/+576
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-05-25Merge pull request #25 from montjoie/miscfix03khilman7-37/+52
Miscfix03
2018-04-13Permit to add custom option in board filesCorentin LABBE1-0/+3
Some board need some jinja options (ex: nanopik2 need use_vendor_uboot) but adding all possible options is not worth the cost. So this patch adds a custom way to add option to board file.
2018-04-13Rename macaddr to uboot_macaddrCorentin LABBE3-4/+4
For clarify the use of macaddr, rename it to uboot_macaddr.
2018-04-13Add uboot_ipaddrCorentin LABBE2-0/+3
Some boards have broken uboot dhcp, so we need to set a static ip in uboot. This patch add a way to specify such IP via uboot_ipaddr.
2018-03-08labalab-gen.sh: clean all generated filesCorentin LABBE1-0/+3
Some generated files are not cleaned, add them to the toclean list
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-08Rename lab to workerCorentin LABBE2-22/+22
This patch fix the misleading name lab to the more proper worker since a lab could be a group of workers.
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 LABBE2-2/+4
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-26Merge pull request #24 from montjoie/fixmisckhilman1-1/+1
Fix "Remove tty/stdin options"
2018-02-23Fix "Remove tty/stdin options"Corentin LABBE1-1/+1
The commit "Remove tty/stdin options" miss a part of the changes, since Dockerfile still exec bash. Remove bash and replace it with a forever sleep
2018-02-16Merge pull request #23 from montjoie/misckhilman4-14/+10
Misc
2018-02-16Remove tty/stdin optionsCorentin LABBE1-2/+0
Keeping stdin open is not necessary since a long time. Remove thoses unused options
2018-02-16README: Fix vendor/product ID formatCorentin LABBE1-6/+6
The format for vendor/product ID need to be prefixed by 0x.
2018-02-16Add healths check jobsCorentin LABBE1-0/+2
2018-02-15Clean argument parsingCorentin LABBE1-6/+2
lavalab-gen.py does not handle arguments, lets remove all arg parsing stuff.
2018-02-14Merge pull request #22 from montjoie/hexidkhilman3-30/+36
Support python3, fix handling of hex values for vendor/product IDs.
2018-02-14Merge pull request #21 from montjoie/enablekvmkhilman3-10/+18
Allow KVM support for slaves
2018-02-14Force the use of hexadecimal values for product/vendor IDsCorentin LABBE3-16/+22
Using "idproduct: 6001" let python convert 6001 to 24577 and so corrupt the UDEV line.
2018-02-14Made lavalab-gen.py python3 compatibleCorentin LABBE1-14/+14
lavalab-gen.py cannot be used with python3. This patch made it compatible with both python2 and python3.