Project

General

Profile

Actions

action #54485

closed

worker can not read out worker class and reverts to default

Added by okurz over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Support
Target version:
Start date:
2019-07-20
Due date:
% Done:

0%

Estimated time:

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
Actions #1

Updated by mkittler over 4 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.

Actions #2

Updated by mkittler over 4 years ago

Works for me, though. I need your full config.

Actions #3

Updated by coolo over 4 years ago

The worker class is basically in most workers in the instance config

Actions #4

Updated by mkittler over 4 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)?

Actions #5

Updated by mkittler over 4 years ago

  • Status changed from In Progress to Feedback
Actions #6

Updated by okurz over 4 years ago

at best just tell me which ssh key to add.

Actions #7

Updated by okurz over 4 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.

Actions #8

Updated by mkittler over 4 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.

Actions #10

Updated by mkittler over 4 years ago

  • Status changed from In Progress to Resolved

PR has been merged

Actions #11

Updated by mkittler over 4 years ago

  • Target version changed from Current Sprint to Done
Actions

Also available in: Atom PDF