summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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-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-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-04Implement ser2netCorentin LABBE5-5/+31
This patch add support for ser2net. ser2net can be used by adding "use_ser2net: True" to uart.
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.
2018-02-14Document host_has_cpuflag_kvmCorentin LABBE1-0/+1
Now host_has_cpuflag_kvm is used, we need to document it.
2018-02-14Remove old devices nodeCorentin LABBE1-4/+0
The "devices" node is now automaticly generated and added, so remove them from docker-compose.template.
2018-02-14Reintroduce qemu KVM supportCorentin LABBE1-1/+11
Since lava-docker must run on all arch, and that KVM is x86 specific, KVM support was disabled for qemu. Reintroduce it now as an option for each lab via the host_has_cpuflag_kvm flag.
2018-02-14Remove hardcoded devices for lava-slaveCorentin LABBE1-4/+5
The node devices was hardcoded for lava-slave. For example, lava-master could never have devices. Remove that hard-coding and made devices dynamic for any labname.
2018-02-14Fix the lab-slave-0 nameCorentin LABBE1-1/+1
The boards.yaml documentation state that lava-slave should be named lab-slave-XXX but docker-compose.template does not use this convention. This force the use of this convention.
2018-02-08Merge pull request #20 from montjoie/documentationkhilman2-54/+332
Documentation: document lava-docker
2018-02-07Merge pull request #19 from montjoie/more_board_attributeskhilman1-4/+23
More board attributes
2018-02-06Merge pull request #18 from montjoie/rework-udevkhilman2-4/+6
Rework udev
2018-02-05Merge pull request #17 from montjoie/pdugenerickhilman3-33/+12
Pdugeneric
2018-02-05Merge pull request #16 from montjoie/rework-misckhilman3-83/+45
Rework misc
2018-02-02Merge pull request #15 from montjoie/lavastablekhilman4-41/+153
stick to 2017.11
2018-02-02Documentation: document lava-dockerCorentin LABBE2-54/+332
Ths patch documenent lava-docker and add a boards.yaml.example
2018-02-02Handle optional macaddrCorentin LABBE1-0/+3
Some boards need to have a macaddr set in uboot (like meson-gxl-s905x-libretech-cc) This patch add support for it.