diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2019-07-02 10:54:57 +0200 |
---|---|---|
committer | Loic Poulain <loic.poulain@linaro.org> | 2019-07-02 10:54:57 +0200 |
commit | ac4d9352f65a15e9e3fb6c4f15db7c5db4caaa10 (patch) | |
tree | 5e9484bea925a9653777e950a06b9085eee1b4a5 | |
parent | 5021e0787a27970deafae509dabd5d5c4efc02ed (diff) |
lava-server: Add health-check overlay with qemu health-check
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
-rw-r--r-- | docker-compose.yml | 1 | ||||
-rw-r--r-- | overlays/lava-server/etc/lava-server/dispatcher-config/health-checks/qemu.yaml | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 163e64a..f45d75f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,6 +18,7 @@ services: - "8080:80" # expose http to outside volumes: - ./overlays/lava-server/etc/lava-server/dispatcher-config/devices:/etc/lava-server/dispatcher-config/devices + - ./overlays/lava-server/etc/lava-server/dispatcher-config/health-checks:/etc/lava-server/dispatcher-config/health-checks # LAVA worker0 (for testing) instance inheriting from ci-box-lava-worker lava-worker0: diff --git a/overlays/lava-server/etc/lava-server/dispatcher-config/health-checks/qemu.yaml b/overlays/lava-server/etc/lava-server/dispatcher-config/health-checks/qemu.yaml new file mode 100644 index 0000000..acaccf5 --- /dev/null +++ b/overlays/lava-server/etc/lava-server/dispatcher-config/health-checks/qemu.yaml @@ -0,0 +1,44 @@ +device_type: qemu +job_name: qemu arm64 health check + +timeouts: + job: + minutes: 15 + action: + minutes: 5 + connection: + minutes: 3 + +priority: medium +visibility: public + +context: + arch: arm64 + machine: virt + netdevice: user + cpu: cortex-a57 + extra_options: + - -smp + - 1 + +actions: +- deploy: + timeout: + minutes: 5 + to: tmpfs + images: + kernel: + image_arg: -kernel {kernel} --append 'root=/dev/ram0 rw rootwait rootdelay=5 console=ttyAMA0,38400n8 init=/sbin/init' + url: ${KERNEL_URL} + initrd: + image_arg: -initrd {initrd} + url: ${INITRD_URL} + +- boot: + method: qemu + media: tmpfs + timeout: + minutes: 2 + prompts: + - '\(initramfs\)' + |