From ac4d9352f65a15e9e3fb6c4f15db7c5db4caaa10 Mon Sep 17 00:00:00 2001 From: Loic Poulain Date: Tue, 2 Jul 2019 10:54:57 +0200 Subject: lava-server: Add health-check overlay with qemu health-check Signed-off-by: Loic Poulain --- docker-compose.yml | 1 + .../dispatcher-config/health-checks/qemu.yaml | 44 ++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 overlays/lava-server/etc/lava-server/dispatcher-config/health-checks/qemu.yaml 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\)' + -- cgit v1.2.3