action #54485
closedworker can not read out worker class and reverts to default
Description
Observation¶
On lord.arch, on current git master (6a8f9a53) I observed that starting a worker shows:
$ sudo -u _openqa-worker nice -n 4 ./script/worker --instance 10 --isotovideo /local/os-autoinst/isotovideo --verbose --no-cleanup
[info] [pid:1020] worker 10:
- worker hostname: lord
- isotovideo version: 14
- websocket API version: 1
- web UI hosts: localhost
- class: ?
so seemingly unable to readout the worker class from the config file which has:
[10]
WORKER_CLASS = qemu_x86_64_sle
Updated by mkittler over 5 years ago
- Status changed from New to In Progress
- Assignee set to mkittler
- Target version set to Current Sprint
I guess that's because the worker class is inside an instance section.
Updated by mkittler over 5 years ago
Works for me, though. I need your full config.
Updated by coolo over 5 years ago
The worker class is basically in most workers in the instance config
Updated by mkittler over 5 years ago
That's true and it also works for me locally. I needed the config @okurz is using no check. By the way, are you sure the right config is loaded (e.g. OPENQA_CONFIG
might point to the wrong place)?
Updated by mkittler over 5 years ago
- Status changed from In Progress to Feedback
Updated by okurz over 5 years ago
Starting the worker over the systemd service yields the same. Also, trying with
sudo -u _openqa-worker strace -f -eopen nice -n 4 ./script/worker --instance 10 --isotovideo /local/os-autoinst/isotovideo --verbose --no-cleanup >strace_open 2>&1
to find attempts to open a worker config actually shows no hits on /etc/openqa whatsoever.
Updated by mkittler over 5 years ago
- Status changed from Feedback to In Progress
The [global]
section in your config is out-commented and our INI parser doesn't like settings outside a section. So I'd just say your config is invalid. I'm going to create a PR for showing parsing errors and the location of the config file in the setup summary printed on worker startup.
Updated by mkittler over 5 years ago
Updated by mkittler over 5 years ago
- Target version changed from Current Sprint to Done