summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-09-07lavalab-gen.py: add default max-connections for ser2netCorentin LABBE2-5/+35
This patch add a ser2net max-connections for all boards
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-09-03lavalab-gen.py: change default start port for ser2netCorentin LABBE1-1/+2
ser2net port range started from 60000 which is between the Linux dynamic port range: 32768-60999 This patch changes it outside of this range to 63001.
2018-09-03lavalab-gen.py: default_slave is a valid keywordCorentin LABBE2-1/+2
default_slave was not in valid keyword and thus generate a warning. This patch set it as valid and document it in the mean time.
2018-09-03lavalab-gen.py: replace slave_name by worker_nameCorentin LABBE1-7/+7
In the board loop, the slave name is stored in slave_name, but some code after use worker_name. This works when only one slave exists, but fail when it exists multiple slave. This patch replace slave_name by worker_name for being consistent with the naming used in the rest of code.
2018-08-09Merge pull request #38 from montjoie/uptimeoutkhilman1-3/+4
lava-slave: increase connect to master timeout
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-08Merge pull request #37 from montjoie/csrf_fixkhilman4-6/+30
Csrf fix
2018-08-08lava-master-base: add missing --make-pidfileCorentin LABBE2-2/+2
lava-logs and lava-server-gunicorn init script fail to restart. This is due to a missing --make-pidfile option.
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-30Fix login failure on httpsCorentin LABBE1-1/+2
When login on LAVA via https, a CSRF failure is done. This is due to missing CSRF_TRUSTED_ORIGINS.
2018-07-27Merge pull request #36 from montjoie/miscfix_07_2018bkhilman6-7/+41
Miscfix 07 2018b
2018-07-27Merge pull request #34 from montjoie/splitimagekhilman15-226/+105
Splitimage
2018-07-26Permit to configure email for LAVA usersCorentin LABBE3-1/+9
2018-07-26lava-slave/Dockerfile: Use deb.debian.org instead of local mirrorCorentin LABBE1-1/+1
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