action #54485
closed
worker can not read out worker class and reverts to default
Added by okurz over 5 years ago.
Updated over 5 years ago.
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
- 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.
Works for me, though. I need your full config.
The worker class is basically in most workers in the instance config
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)?
- Status changed from In Progress to Feedback
at best just tell me which ssh key to add.
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.
- 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.
- Status changed from In Progress to Resolved
- Target version changed from Current Sprint to Done
Also available in: Atom
PDF