Project

General

Profile

Actions

action #63766

closed

Handle HDD* vars in generalhw backend

Added by ggardet_arm about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
2020-02-24
Due date:
% Done:

0%

Estimated time:

Description

Currently, vars in /etc/openqa/workers.ini are not expanded, so, for example, you cannot use %HDD_1% in other variables.

My use case is for generalhw backend used with System-Under-Test (SUT), here Raspberry Pi 3 boards.
If you have an openQA MACHINE (e.g. RPi3) matching a single openQA worker, you can define all the required vars in MACHINE.
But to scale, we need an openQA MACHINE which matches multiple openQA workers, with each worker limited to a single SUT (worker 1 => Raspberry Pi 3 board number 1, etc.) and you need to define things in the worker config (main vars are IP related).
So, for now, we cannot use %HDD_1%, FLASHER_IP or SUT_IP variables in /etc/openqa/workers.ini and cannot have something like GENERAL_HW_FLASH_ARGS = /var/lib/openqa/factory/hdd/%HDD_1% %FLASHER_IP%:/tmp/
For the IPs, it could be workarounded with copy/paste as it will not be changed from one run to another, but %HDD_1% will change with each test.

Actions

Also available in: Atom PDF