Skip to content

Commit

Permalink
ci: initialize worker node
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Aug 11, 2023
1 parent f9622f2 commit e1a450d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .ci/run-grid-tests.sh
@@ -0,0 +1,16 @@
#!/bin/sh

AUTOCA_URL=https://ci.dcache.org/ca

yum -q install -y openssl libtool-ltdl glibmm24
rpm -i https://www.desy.de/~tigran/ca_dCacheORG-3.0-6.noarch.rpm
rpm -i https://linuxsoft.cern.ch/wlcg/centos7/x86_64/desy-voms-all-1.0.0-1.noarch.rpm

curl --silent https://raw.githubusercontent.com/kofemann/autoca/v1.0-py2/pyclient/autoca-client -o autoca-client && chmod a+x autoca-client
./autoca-client -n -k userkey.pem -c usercert.pem https://ci.dcache.org/ca "Kermit the frog"

. /cvmfs/grid.cern.ch/umd-c7wn-latest/etc/profile.d/setup-c7-wn-example.sh

arcproxy -C usercert.pem -K userkey.pem -T ${X509_CERT_DIR} --vomses=${VOMS_USERCONF} --vomsdir=/etc/grid-security/vomsdir/ --voms=desy
arcproxy -I

8 changes: 4 additions & 4 deletions .ci/wn-with-cvmfs.yaml
@@ -1,13 +1,13 @@
apiVersion: v1
kind: Pod
metadata:
name: cvmfs-demo
name: grid-tester
spec:
containers:
- name: demo
image: busybox
- name: tester
image: centos:7
imagePullPolicy: IfNotPresent
command: [ "/bin/sh", "-c", "trap : TERM INT; (while true; do sleep 1000; done) & wait" ]
command: [ "/bin/sleep", "inf"]
volumeMounts:
- name: cvmfs
mountPath: /cvmfs
Expand Down
7 changes: 5 additions & 2 deletions .gitlab-ci.yml
Expand Up @@ -340,8 +340,11 @@ grid_tests:
script:
- kubectl -n $K8S_NAMESPACE create -f .ci/cvmfs-volume-storageclass-pvc.yaml
- kubectl -n $K8S_NAMESPACE create -f .ci/wn-with-cvmfs.yaml
- while ! kubectl -n $K8S_NAMESPACE wait --for=condition=Ready pod cvmfs-demo; do sleep 1; done
- kubectl -n $K8S_NAMESPACE exec cvmfs-demo -- ls /cvmfs/grid.cern.ch/
- while ! kubectl -n $K8S_NAMESPACE wait --for=condition=Ready pod grid-tester; do sleep 1; done
- kubectl -n $K8S_NAMESPACE exec grid-tester -- ls /cvmfs/grid.cern.ch/umd-c7wn-latest/etc/profile.d/setup-c7-wn-example.sh
- kubectl -n $K8S_NAMESPACE cp .ci/run-grid-tests.sh grid-tester:/run-grid-tests.sh
- kubectl -n $K8S_NAMESPACE exec grid-tester -- /bin/sh /run-grid-tests.sh


pynfs_tests:
stage: testing
Expand Down

0 comments on commit e1a450d

Please sign in to comment.