Let me go with small steps (so you do not loose too much time):
[1] I moved qemu01.jinja2 from device-types/ to device/
[2] Now I have there two devices (device types are on parenthesis): root@stretch:/etc/lava-server/dispatcher-config/devices# lava-server manage devices list Available devices: * bbb01 (beaglebone-black) Idle * qemu01 (qemu) Idle
[3] 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) * qemu01 (0 devices) - No V2 template. <<=========================== how to remove/delete??? Available V2 device types: [snap]
Q1: how I can remove/delete qemu01 device-type I added by mistake?
[4] root@stretch:/etc/lava-server/dispatcher-config/devices# lava-server manage workers list Workers: * stretch.localdomain (2 devices) (master)
[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???
Thank you, Zoran _______
On Mon, Feb 12, 2018 at 3:38 PM, Remi Duraffort remi.duraffort@linaro.org wrote:
Hello,
0: The QEMU steps:
https://staging.validation.linaro.org/static/docs/v2/first-devices.html#addi...
I do the following: lava-server manage device-types add qemu
This is expected if the corresponding device-type (qemu) was already added. Which is the case in your instance.
It says that qemu device type is already added (python exception).
I sent a patch to print an error message instead of the python exception.
Then I do: lava-server manage device-types add qemu01
You are mixing "device-types" and "devices". You should add a device here.
There I see the qemu.jinja2. So I have created the new device, called qemu01.jinja2 as:
{% extends 'qemu.jinja2' %} {% set mac_addr = '52:54:00:12:34:59' %} {% set memory = '1024' %}
Same here, this is a device configuration that should go into /etc/lava-server/dispatcher-config/devices/
So then, if I do: root@stretch:/etc/lava-server/dispatcher-config/device-types# lava-server manage device-types list -a
I see the device qemu01 there. Newly created. But I do NOT see qemu device.
This command will only list the device-types not the devices. To list the devices, use
lava-server manage devices list
It says: On the command line, you can add device types (for instance a QEMU type device with a hostname qemu01) using: lava-server manage devices add --device-type qemu --worker <worker> qemu01
The worker (or dispatcher) is the name of the machine that will run the qemu or (for boards) which is connected to the device you are creating.
You can see the workers that are actually active in your instance with lava-server manage workers list
Rgds
-- RĂ©mi Duraffort