Mailinglist Archive: opensuse-buildservice (90 mails)

< Previous Next >
Re: [opensuse-buildservice] Questions about build workers (with some answers)
On Donnerstag, 16. Februar 2017, 16:48:27 CET wrote Greg Ward:
On Thu, Feb 16, 2017, at 02:49, Adrian Schröter wrote:
On Mittwoch, 15. Februar 2017, 17:02:22 CET wrote Greg Ward:
Q7) How do I add new build workers on a separate host? Does that host
have to be running openSUSE,


So I've found this bit of documentation on adding worker hosts:

but I cannot figure out how to do it on a non-openSUSE system. Here's
what I've done:

* copied /etc/init.d/obsworker from my OBS server appliance to a
different host, which is running Scientific Linux 6.7 (I have a couple
of CentOS 7 boxes around too if that would help, but most of our
infrastructure is still on SL 6)

* copied /etc/sysconfig/obs-server from the OBS server to the build host

* created /data/obs (/data has lots of space) and tweaked various
settings in /etc/sysconfig/obs-server to use dirs under /data/obs

* ran "/etc/init.d/obsworker status", expecting a "not running" message


* no such file /etc/rc.status. So I commented out the line that sources
* /etc/init.d/obsworker: line 234: rc_reset: command not found
-> defined empty rc_reset function
* Checking for obsworker: /etc/init.d/obsworker: line 401: checkproc:
command not found
-> hmmm: this probably contains non-trivial logic

Try to use the bs_worker directly. (or write your own init/systemd file).

You can run it with

bs_worker --root /space/... --statedir /space/...statedir --reposerver

Has anyone built a container for this? I want as few layers of
virtualization between my builds and the hardware as possible!

We have the OBS-WorkerOnly appliances in our projects.

A container (like Docker without an own kernel) is often not good
enough, since builds can depend on a kernel. The build instance also
tries to use an own kernel (within KVM or XEN) matching for the build process.


Adrian Schroeter
email: adrian@xxxxxxx

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284
(AG Nürnberg)

Maxfeldstraße 5
90409 Nürnberg

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >