[Git][qa/jenkins.debian.net][master] switch from openqa cacheservice to nfs/cachefilesd

Holger Levsen (@holger) gitlab at salsa.debian.org
Wed Jun 5 10:51:17 BST 2024



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


Commits:
c5bb6bb8 by Philip Hands at 2024-06-05T11:50:04+02:00
switch from openqa cacheservice to nfs/cachefilesd

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

- - - - -


2 changed files:

- hosts/osuosl3-amd64/etc/openqa/workers.ini
- update_jdn.sh


Changes:

=====================================
hosts/osuosl3-amd64/etc/openqa/workers.ini
=====================================
@@ -13,7 +13,7 @@ HOST = https://openqa.debian.net
 # via the TESTPOOLSERVER variable in the webui sections as shown below
 # If no CACHEDIRECTORY is specified these files are supposed to be mounted
 # at the SHARE_DIRECTORY (by default /var/lib/openqa/share) via e.g. NFS
-CACHEDIRECTORY = /var/lib/openqa/cache
+#CACHEDIRECTORY = /var/lib/openqa/cache
 
 # Limit size of CACHEDIRECTORY to the specified value in GiB (50 GiB by default)
 #CACHELIMIT = 50


=====================================
update_jdn.sh
=====================================
@@ -497,7 +497,27 @@ if [ -f /etc/debian_version ] ; then
 			DEBS="$DEBS
 				 openqa-worker
 				 apt-cacher-ng
-				 apt-show-versions"
+				 apt-show-versions
+				 nfs-common
+				 cachefilesd"
+			sudo systemctl disable --now openqa-worker-cacheservice-minion.service
+			sudo systemctl disable --now openqa-worker-cacheservice.service
+			if ! grep -q '/var/lib/openqa/share' /etc/fstab; then
+				cat <<-EOF
+					In order to get the caching NFS for openqa to work, do this by hand
+					(I'm not quite brave enough to let this run automatically - Phil)
+					=-=-=-=
+					echo 'openqa.debian.net:/var/lib/openqa/share /var/lib/openqa/share nfs ro,fsc,soft,bg 0 0' | sudo tee -a /etc/fstab > /dev/null
+					sudo systemctl daemon-reload
+					grep -q '^RUN=yes' /etc/default/cachefilesd || echo 'RUN=yes' | sudo tee -a /etc/default/cachefilesd > /dev/null
+					sudo service cachefilesd stop
+					sudo service cachefilesd start
+					# check /var/lib/openqa/share is an empty directory, then:
+					sudo mount /var/lib/openqa/share
+					=-=-=-=
+				EOF
+				exit 1
+			fi
 			;;
 		jenkins)
 			DEBS="$DEBS ffmpeg python3-popcon dose-extra"



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/c5bb6bb837293a025cffff89adf4a4f66bb3ceb1

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/c5bb6bb837293a025cffff89adf4a4f66bb3ceb1
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/20240605/1a200051/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list