summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-02-15Clean argument parsingCorentin LABBE1-6/+2
lavalab-gen.py does not handle arguments, lets remove all arg parsing stuff.
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-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.
2018-02-02Implement connection_commandCorentin LABBE1-0/+6
connection_command is a generic way to get console from devices. It could ran telnet for accessin ser2net for example.
2018-02-02lavalab-gen.py: Handle non-FTDI UART via devpathCorentin LABBE1-4/+14
This patch add support for non-FTDI UART by adding a devpath member. Since both FTDI and non-FTDI need also idevendor/idproduct, this patch introduce them.
2018-02-02Generate udev rules in udev directoryCorentin LABBE2-3/+5
2018-02-02produce non-duplicate udev filesCorentin LABBE1-1/+1
When more than one "lab" is referenced (like lava-master + lab-slave-0), udev content is duplicated. This patch reset the udev_line variable for producing non-duplicate udev files.
2018-02-02Remove lavapdu support and replace with pdu_genericCorentin LABBE3-31/+10
Recent lavapdu is unpackaged and buggy. Remove it and replace with a generic PDU command line wrapper
2018-02-02A pdu is optionnalCorentin LABBE1-2/+2
2018-02-02Create a working default boards.yamlCorentin LABBE1-54/+2
The boards.yaml need to be more minimal and working for everybody.
2018-02-02Handle boards without uartCorentin LABBE1-10/+14
Some boards could not have uart like qemu. This patch made having an uart optionnal.
2018-02-02Move conmux and slaves directory creationCorentin LABBE1-4/+10
Thoses two directory are necessary even with setup without conmux and slaves. (Due to Dockerfile COPY). This patch move the creation of thoses two directory at start of lavalav-gen.py
2018-02-02Change misleading lab-slave-name exampleCorentin LABBE1-1/+1
2018-02-02Permit to customize dispatcher_ipCorentin LABBE2-5/+7
dispatcher_ip is the IP used by boards for contacting/downloading images/dtb/etc... For the moment it was harcoded to 192.168.66.1. This patch permit to easily change it.
2018-02-02Place board under boardlistCorentin LABBE3-65/+67
We need to add some information to lab node, so we need to move all boards under a list("boardlist")
2018-02-02stick to LAVA 2017.11Corentin LABBE4-41/+153
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-09Permit to create staff/superuser usersCorentin LABBE5-8/+28
This patch add two user options staff and superuser. This will permit to create users with thoses flag in LAVA. In the process remove the hardcoded admin user from Dockerfile and move it in tokens.yaml
2018-01-08Use detach mode in docker-composeCorentin LABBE1-1/+1
2018-01-08Remove dns_search options propagation from hostCorentin LABBE1-0/+2
When dns_search are set, the control made by conmux on hostname fail since hostname.domain does not exist in the docker.
2018-01-08Fix custom device-type handlingCorentin LABBE1-4/+5
Device-type are jinja2 files and not yaml files and so a have a different filename. So this patch correct the handling of custom device-types.
2018-01-08Some actions need root privilegesCorentin LABBE1-2/+9
Some actions must be done by root, add a detection for that.
2018-01-08qemu: Some arch does not have kvmCorentin LABBE2-2/+6
Since some arch does not have kvm, remove kvm usage for qemu. We will reintroduce it later via a flag/autodetect.
2018-01-08Fix libguestfs on slaveCorentin LABBE3-1/+8
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-08Disable CSRF cookieCorentin LABBE3-1/+20
When working with HTTP interface, it is impossible to login. Ths patch also document that in Readme.md
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-08Remove unused port 1022:22Corentin LABBE1-1/+0
2018-01-08Move XNBD ports outside of dynamic port rangeCorentin LABBE2-3/+4
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
2018-01-08Remove old squid PIDCorentin LABBE1-0/+5
Sometimes the old squid PID prevent squid from starting.
2017-10-27Add squid for caching LAVA downloadsCorentin LABBE6-0/+7996
2017-10-27Add sample dhcpd and helper lavalab-gen.shCorentin LABBE2-0/+142
2017-10-26Forgot to comment the generated slave directoryCorentin LABBE1-1/+2
2017-10-26Add health-checks copyCorentin LABBE2-0/+2
2017-10-26Need to copy slaves files in dispatcher.dCorentin LABBE1-0/+1
2017-10-26Forgot to comment the git install on masterCorentin LABBE1-13/+13
2017-10-25Merge pull request #9 from montjoie/dockercomposeTyler Baker18-16/+552
Dockercompose
2017-10-25Add support for lavapduCorentin LABBE3-0/+35
2017-10-25Add support for conmuxCorentin LABBE3-0/+25
2017-10-25Handle generated filesCorentin LABBE3-0/+81
This commit add suppot for generated files by lalalab-gen.py.
2017-10-25Introduce docker-composeCorentin LABBE5-16/+315
This commit introduce two compoments: lavalab-en.py which generate: - device files - conmux config files - users files - tokens files - udev rules for host - final docker-compose.yml file Except of docker-compose.yml, all other files are ignored for the moment and will be handled by a following commit. docker-compose: The docker compose permits to building and running easily lava-docker images. It permit also to remove some contraints like knowing the LAVA_SERVER_IP/LAVA_MASTER.
2017-10-25import lava-slaveCorentin LABBE5-0/+96
2017-10-25Move master files in lava-masterCorentin LABBE4-0/+0
2017-10-24Merge pull request #8 from montjoie/debianstableTyler Baker1-10/+15
Debianstable
2017-10-24Use correct lava-server command to create admin userCorentin LABBE1-1/+1