action #17704

workers Dead for real this time due to uninitialized values and permission denied

Added by ktsamis almost 3 years ago. Updated over 2 years ago.

Status:ClosedStart date:14/03/2017
Priority:NormalDue date:
Assignee:-% Done:


Category:Concrete Bugs
Target version:-


It can't access /proc/sys/kernel/osrelease, even though User=_openqa-worker which the worker's service runs as, has access to the file:

_openqa-worker@e59:~> cat /proc/sys/kernel/osrelease

and because of that there are uninitialized values in:

/usr/share/openqa/script/../lib/OpenQA/Worker/ line 398. 
/usr/share/openqa/script/../lib/OpenQA/Worker/ line 403.

The lines are:

398:    elsif ($cando{$worker_caps->{cpu_arch}}) {

403:        $worker_caps->{worker_class} = 'qemu_' . $worker_caps->{cpu_arch};

Not sure what Category this goes to. Putting scheduling because I can't start a job.


#1 Updated by coolo almost 3 years ago

the apparmor profile is a bit selective - I guess we can just allow the worker to access all of /proc for reading :)

#2 Updated by coolo over 2 years ago

  • Category changed from 122 to Concrete Bugs
  • Status changed from New to Closed

this doesn't seem to be a generic issue and with the available information it's hard to judge the best road to action

Also available in: Atom PDF