OK. I did it from the Django Administration:
This is what I did: root@stretch:/etc/lava-server/dispatcher-config/devices# lava-server manage devices add --device-type qemu01 --worker stretch.localdomain host1 root@stretch:/etc/lava-server/dispatcher-config/devices#
[There I deleted from the localhost:8080 admin interface, first adding qemu01 type as nonexistent host1 device]
root@stretch:/etc/lava-server/dispatcher-config/devices# lava-server manage device-types list -a Installed device types: * beaglebone-black (1 devices) * qemu (1 devices) Available V2 device types: [snap]
Now, my question is the following: how I add * qemu (1 devices) to the test? Actually, I see: lava-server manage devices add --device-type qemu --worker stretch.localdomain qemu01 lava-server manage devices add --device-type beaglebone-black --worker stretch.localdomain bbb01
From: root@stretch:/etc/lava-server/dispatcher-config/devices# ls -al total 16 drwxr-xr-x 2 lavaserver lavaserver 4096 Jan 30 12:45 . drwxr-xr-x 5 lavaserver lavaserver 4096 Feb 12 15:43 .. -rw-r--r-- 1 lavaserver lavaserver 136 Jan 30 12:45 bbb01.jinja2 -rw-r--r-- 1 lavaserver lavaserver 119 Jan 30 12:45 qemu01.jinja2 root@stretch:/etc/lava-server/dispatcher-config/devices#
Am I correct here? _______
Actually, I already have two devices in the following localhost web location: http://localhost:8080/admin/lava_scheduler_app/device/
I would like to submit the following test for my qemu01 hiost of device-type qemu: https://staging.validation.linaro.org/static/docs/v2/first-job.html
Where I do this on the http://localhost:8080/admin ?
Thank you, Zoran _______
On Mon, Feb 12, 2018 at 4:18 PM, Remi Duraffort remi.duraffort@linaro.org wrote:
[1] I moved qemu01.jinja2 from device-types/ to device/
That's right has qemu01.jinja2 describe a device and not a device-type.
Q1: how I can remove/delete qemu01 device-type I added by mistake?
In the admin interface: http://localhost/admin/lava_scheduler_app/device/
[5] Now, the following command: lava-server manage devices add --device-type qemu --worker stretch.localdomain qemu01 <<================
qemu01 here is "hostname". Could you, please, explain this? It seems to me that qemu01 (device type qemu) should be target, right???
The device "hostname" is just the name of the device.
-- RĂ©mi Duraffort