summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-02-08Merge pull request #134 from montjoie/prepare-2021.xKevin Hilman4-20/+27
Prepare 2021.x
2021-02-08Merge pull request #133 from montjoie/fix-licenseKevin Hilman1-0/+458
Add license
2021-02-05Permit to set worker token in boards.yamlCorentin LABBE3-7/+27
LAVA 2020.09 dropped ZMQ and use now a token to authenticate worker against master. lava-docker already handle this by getting token via lavacli. But we need to support to set token in boards.yaml, this patch permits this. Furthermore, the token was given to worker via --token, but this is bad since token can be found by anyone running ps. A better secure way is to use --token-file.
2021-02-05wanted ser2net and cu are in busterCorentin LABBE1-13/+0
The version of cu/ser2net we want are already in buster now, so no need to play with testing/sid. Furthermore, sid give a new ser2net with incompatible config file.
2021-01-26Add licenseCorentin LABBE1-0/+458
We missed to add a license, fix that. Closes: #132
2021-01-04Merge pull request #130 from montjoie/support-2020.09plusKevin Hilman7-38/+46
Support 2020.09plus
2020-11-23Fixes python warningCorentin LABBE1-1/+1
This patch fixes the warning: SyntaxWarning: "is" with a literal. Did you mean "=="?
2020-11-23Add dockcomp_add_cap helperCorentin LABBE1-2/+6
Add an helper to add caps
2020-11-23Handle 2020.09+ workersCorentin LABBE3-0/+35
Since 2020.09, workers does not use ZMQ anymore but use a token. This patch permit our setup to detecte when we use LAVA 2020.09+ and retrieve it from master.
2020-11-23check if envdir exists before creating itCorentin LABBE1-1/+2
If envdir already exists, lavalab-gen.py fail
2020-11-23Remove screen supportCorentin LABBE5-34/+2
When I have added screen support, it was a hack for made M3ulcb serial console works. But for a long time ser2net works on m3ulcb. So lava-docker discouraged usage of screen and now it is time to remove it.
2020-11-04Merge pull request #129 from montjoie/no-tftp-ipv6Kevin Hilman1-1/+1
Disable IPV6 for tftp
2020-11-04Merge pull request #125 from montjoie/fix-2020.07Kevin Hilman2-0/+4
Fix 2020.07
2020-11-04lavalab-gen.py: Name workers images with version tagCorentin LABBE1-0/+2
If version is specified, we can generate docker images with tags set to it.
2020-11-04Fix device-types patcherCorentin LABBE1-0/+2
The device-types patchs were not used since 9918419127b ("Handle the change of device-type storage"). The patch was correctly modified with path hacks, but not applied.
2020-11-04Disable IPV6 for tftpCorentin LABBE1-1/+1
There is no need to listen on ipv6 inside docker. Furtheremore, this break lava-docker on non-ipv6 machine.
2020-09-04Merge pull request #127 from montjoie/misc-09-2020Kevin Hilman3-8/+35
Misc 09 2020
2020-09-04README: add more ZMQ documentationCorentin LABBE1-0/+25
This patch adds more ZMQ documentation
2020-09-04README: add lava-dispatcher-host in prerequisitesCorentin LABBE1-0/+2
For fastboot/docker, lava-dispatcher-host could be necessary
2020-09-04deploy.sh: Remove udev rules in a more restrictive wayCorentin LABBE1-2/+2
Now lava-dispatcher-host package exists, we should not remove its udev rules. So remove only only lava-docker rules.
2020-09-04backup.sh: do not allocate ttyCorentin LABBE1-6/+6
For backuping we dont need a tty. Furthermore, this break AGL cron backup.
2020-08-18Merge pull request #124 from montjoie/BumptoLAVA-2020.07Kevin Hilman2-2/+2
Increase LAVA version to 2020.07
2020-08-18Increase LAVA version to 2020.07Corentin LABBE2-2/+2
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
2020-07-17Merge pull request #123 from Rosepeter/masterKevin Hilman1-1/+1
[Fix] Ensure proper filename of public master key
2020-07-14[Fix] Ensure proper filename of public master keyFabian Scheler1-1/+1
Currently, the public master key is references as $LAVA_MASTER.key in e.g. scripts/setup.sh. If the key is named master.key it is copied to $LAVA_MASTER.key by scripts/setup.sh. However, no nameing convention for the public master key provided to lavalab-gen.py is documented, so the worker simply will not start if the key is stored as e.g. master-public.key. Running into such error scenarios could simply be prevented by copying the public master key to an appropriatly named file in lavalab-gen.py. This is done here.
2020-07-13Merge pull request #122 from montjoie/postgres-fixKevin Hilman4-25/+75
Postgres fix
2020-07-13Merge pull request #121 from aliceinwire/handle_upper_caseKevin Hilman1-4/+4
Fix upper case on boards.yaml
2020-07-13Do not apply backup twiceCorentin LABBE1-21/+26
If we use persistend_db, a restart with an image containing a backup will re-apply the backup and so overrun current DB. So when backup is used, apply a flag to not reuse it.
2020-07-13Persistent DB need /etc/lava-server to be kept.Corentin LABBE1-0/+3
Since the LAVA DB password is set in /etc/lava-server/, we need to keep it accross restart. So put /etc/lava-server on a volume. This will also permit to keep some live configuration like dispatcher IP.
2020-07-13Permit to set the postgres lavaserver passwordCorentin LABBE4-3/+16
By setting pg_lava_password, the final lavaserver password will be set to this value.
2020-07-13Sort master/workers keywordsCorentin LABBE1-2/+31
The keyword list is too long, so split it in multiline, one letter per line.
2020-07-13Fix upper case on boards.yamlAlice Ferrazzi1-4/+4
Fixes #29 Signed-off-by: Alice Ferrazzi <alice.ferrazzi@miraclelinux.com>
2020-07-10Merge pull request #120 from aliceinwire/fix_documentationKevin Hilman1-1/+1
healthcheck need a supported url protocol scheme to work
2020-07-10healthcheck need a supported url protocol scheme to workAlice Ferrazzi1-1/+1
Job error: Unsupported url protocol scheme: healthcheck Signed-off-by: Alice Ferrazzi <alice.ferrazzi@miraclelinux.com>
2020-07-09Merge pull request #119 from aliceinwire/add_build_argsKevin Hilman2-2/+12
Add option to add docker build args
2020-07-09Merge pull request #117 from Rahix/hws/tftp-bindingKevin Hilman1-1/+4
Make docker bind the TFTP server to the correct interface
2020-07-01Add build_args option explanation to the README fileAlice Ferrazzi1-0/+6
Signed-off-by: Alice Ferrazzi <alice.ferrazzi@miraclelinux.com>
2020-07-01Add option to add docker build argumentsAlice Ferrazzi1-2/+6
Signed-off-by: Alice Ferrazzi <alice.ferrazzi@miraclelinux.com>
2020-06-20Merge pull request #118 from montjoie/support_2020.05Kevin Hilman4-4/+25
Support 2020.05
2020-06-01Handle the change of device-type storageCorentin LABBE2-2/+15
device-types are now in /usr/share/lava-server/device-types/ and so device-type-patch does not work anymore. This patch support both location
2020-06-01Support dockerCorentin LABBE1-1/+3
docker need some more bind mounts.
2020-06-01Support 2020.05Corentin LABBE1-1/+7
LAVA has changed the place of DB password from instance.conf to a yaml file.
2020-05-20Make docker bind the TFTP server to the correct interfaceHarald Seiler1-1/+4
With UDP, docker sometimes can't route UDP packets to the correct address because the source address gets mangled [1]. This happens indeterministically because by default the kernel uses some heuristics to decide which interface to use. But in some rare circumstances, those can fail and a wrong source address is used. This can be worked around by explicitly binding to a concrete interface instead of 0.0.0.0. [1]: https://github.com/moby/libnetwork/issues/1729 Signed-off-by: Harald Seiler <hws@denx.de>
2020-04-28Merge pull request #116 from montjoie/misc-04-2020Kevin Hilman2-3/+5
Misc 04 2020
2020-04-27lavalab-gen.py: use python3Corentin LABBE1-1/+1
2020-04-27increase timeout when waiting for masterCorentin LABBE1-2/+4
2020-03-18Merge pull request #115 from montjoie/noentrypointKevin Hilman2-1/+1
lava-slave: handle the case where there are no entrypoints to copy
2020-03-18lava-slave: handle the case where there are no entrypoints to copyCorentin LABBE2-1/+1
If there are no entrypoint to copy, the COPY docker action will fail. For fixing this issue, simply copy all files instead of just "*sh". Since the entrypoint.d directory is not empty (got an empty file) it will always works. The LAVA script run only *sh files so we are still safe.
2020-03-04Merge pull request #114 from montjoie/update-to-2020.02Kevin Hilman3-27/+2
Update LAVA to 2020.02
2020-03-03Update LAVA to 2020.02Corentin LABBE3-27/+2