[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: openQA configuration

Holger Levsen (@holger) gitlab at salsa.debian.org
Wed Mar 29 13:29:40 BST 2023



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
962a721f by Roland Clobus at 2023-03-29T14:29:12+02:00
openQA configuration

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -
84b81812 by Philip Hands at 2023-03-29T14:29:26+02:00
osuosl3: restart openqa workers regularly

This ensures that one can apply configuration changes without
needing to do anything to make the worker notice.  It also avoids
the possibility that a long-running worker might somehow "rot".

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


3 changed files:

- INSTALL
- + hosts/osuosl3-amd64/etc/openqa/workers.ini
- + hosts/osuosl3-amd64/etc/systemd/system/openqa-worker-plain\@.service.d/override.conf


Changes:

=====================================
INSTALL
=====================================
@@ -74,6 +74,8 @@ cd jenkins.debian.net
 
 'vncdotool' is the only software which is not installed by packages and is not covered by this script.
 
+The configuration of the openQA secrets is done manually. The file `/etc/openqa/client.conf` (on osuosl3) contains the API key for accessing the openQA server.
+
 === IRC notification configuration using kgb-client
 
 The jenkins jobs are configured to send email to 'jenkins+$IRC_CHANNEL' (like 'jenkins+debian-qa'), this is parsed by a script ('/srv/jenkins/bin/email2irc.sh') run through 'procmail' which then in turn notifies 'kgb-client', which notfies 'kgb-server'(s) on the internet, which are the bots notifying the IRC channels.


=====================================
hosts/osuosl3-amd64/etc/openqa/workers.ini
=====================================
@@ -0,0 +1,62 @@
+# Configuration of the workers and their backends.
+#
+# Global section to enter webui hosts and optional caching
+
+[global]
+# space separated list of webuis to connect to (empty defaults to localhost)
+HOST = https://openqa.debian.net
+
+# per webui you can define if you want to get the assets and tests over NFS
+# (define a SHARE_DIRECTORY, default /var/lib/openqa/share) or http/rsync.
+# For the later you need to define a cache directory that is big enough.
+# Additionally you need to define the rsync URI to get
+# /var/lib/openqa/tests/ (TESTPOOLSERVER) in the webui section
+CACHEDIRECTORY = /var/lib/openqa/cache
+# max. cache size in GiB, defaults to 50
+# On osuosl168 the limit was 300 GiB
+CACHELIMIT = 50
+# min. free disk space to preserve in percent
+CACHE_MIN_FREE_PERCENTAGE = 10
+# number of parallel cache minion workers, defaults to 5
+CACHEWORKERS = 5
+
+# host address (domain name or IP address) the web UI can reach the worker by
+# (required by the web UI's developer mode and backends using jump-hosts to
+#  reach back to os-autoinst; set if the automatically deduced value is not
+#  sufficient)
+#WORKER_HOSTNAME = openqa-worker.example.host
+
+# Optimize asset uploads. Enabled by default. When enabled the worker will
+# try to copy assets on the file system instead of uploading them to the
+# webui via HTTP, for much better performance (webui and worker need to be
+# running on the same host). For best performance it is also recommended to
+# have /var/lib/openqa/pool and /var/lib/openqa/share/factory on the same file
+# system.
+#LOCAL_UPLOAD = 0
+
+# Whether to terminate after all assigned jobs have been processed. When
+# combined with auto-restarting on service manager level (e.g. configuring
+# Restart=always in the systemd service) this helps applying updates and config
+# changes without interrupting jobs. This setting can be overridden by setting
+# the environment variable OPENQA_WORKER_TERMINATE_AFTER_JOBS_DONE.
+TERMINATE_AFTER_JOBS_DONE = 10
+
+# Enable an investigation feature to compare the current list of installed
+# packages against the list of packages during the previous last good job.
+# Configuring this variable provides a command line to list the packages and
+# their versions in plain text.
+PACKAGES_CMD = apt list --installed
+
+# The section ids are the instance of the workers.
+# The key/value pairs will appear in vars.json
+[1]
+WORKER_CLASS = qemu_x86_64
+
+#[2]
+#WORKER_CLASS = qemu_x86_64_staging,qemu_x86_64
+
+#[localhost]
+# SHARE_DIRECTORY = /var/lib/openqa/share
+
+[https://openqa.debian.net]
+TESTPOOLSERVER = rsync://openqa.debian.net/tests


=====================================
hosts/osuosl3-amd64/etc/systemd/system/openqa-worker-plain\@.service.d/override.conf
=====================================
@@ -0,0 +1,6 @@
+[Service]
+# this file is maintained in the jenkins.debian.net git repo
+
+# This setting is needed to keep workers running, because of the
+# TERMINATE_AFTER_JOBS_DONE setting in /etc/openqa/workers.ini
+Restart=always



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/950256a89db565bd3797cd1da08dc0858b926c08...84b8181280e6ebda73a2201b1c9ff935e69b7532

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/950256a89db565bd3797cd1da08dc0858b926c08...84b8181280e6ebda73a2201b1c9ff935e69b7532
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20230329/53803dd9/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list