From daa820771954121ad34a6e5f85bc2067d2c76ac9 Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Wed, 4 Oct 2023 10:37:04 +0200 Subject: [PATCH] debug --- .github/workflows/integration.yml | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 061dc1ca..be87cc2b 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -24,13 +24,21 @@ jobs: env: HOSTCERT_BASE64: ${{ secrets.HOSTCERT_BASE64 }} HOSTKEY_BASE64: ${{ secrets.HOSTKEY_BASE64 }} + KRB_PASSWORD: ${{ secrets.KRB_PASSWORD }} run: | cd Pilot mkdir -p etc/grid-security - echo $HOSTCERT_BASE64 | base64 --decode > etc/grid-security/hostcert.pem - echo $HOSTKEY_BASE64 | base64 --decode > etc/grid-security/hostkey.pem + echo "$HOSTCERT_BASE64" | wc + echo "$HOSTKEY_BASE64" | wc + echo "KRB_PASSWORD" | wc + base64 --version + echo "$HOSTCERT_BASE64" | base64 --decode + echo "$HOSTKEY_BASE64" | base64 --decode + echo "$HOSTCERT_BASE64" | base64 --decode > etc/grid-security/hostcert.pem + echo "$HOSTKEY_BASE64" | base64 --decode > etc/grid-security/hostkey.pem chmod 440 etc/grid-security/hostcert.pem chmod 400 etc/grid-security/hostkey.pem + ls -l etc/grid-security - name: tests run: | cd Pilot @@ -45,12 +53,12 @@ jobs: python dirac-pilot.py --modules https://github.com/DIRACGrid/DIRAC.git:::DIRAC:::${{ matrix.dirac_version }} -M 1 -S DIRAC-Certification -N jenkins.cern.ch -Q jenkins-queue_not_important -n DIRAC.Jenkins.ch --cert --certLocation=${GITHUB_WORKSPACE}/Pilot/etc/grid-security --debug cat pilot.cfg + matching: runs-on: ubuntu-latest container: python:3.9.17-slim - - + steps: - uses: actions/checkout@v4 - name: Retrieve the secret and decode it to a file @@ -60,8 +68,8 @@ jobs: run: | cd Pilot mkdir -p etc/grid-security - echo $HOSTCERT_BASE64 | base64 --decode > etc/grid-security/hostcert.pem - echo $HOSTKEY_BASE64 | base64 --decode > etc/grid-security/hostkey.pem + echo "$HOSTCERT_BASE64" | base64 --decode > etc/grid-security/hostcert.pem + echo "$HOSTKEY_BASE64" | base64 --decode > etc/grid-security/hostkey.pem chmod 440 etc/grid-security/hostcert.pem chmod 400 etc/grid-security/hostkey.pem - name: tests @@ -93,12 +101,19 @@ jobs: - name: add cvmfs run: | + sudo apt-get install autofs systemctl wget https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest_all.deb sudo dpkg -i cvmfs-release-latest_all.deb rm -f cvmfs-release-latest_all.deb sudo apt-get update sudo apt-get install cvmfs sudo cvmfs_config setup + sudo systemctl restart autofs + echo "CVMFS_REPOSITORIES=lhcb.cern.ch" > /etc/cvmfs/default.local + echo "CVMFS_CLIENT_PROFILE=single" >> /etc/cvmfs/default.local + + ls /cvmfs/ + ls /cvmfs/lhcb.cern.ch/ ls /cvmfs/lhcb.cern.ch/lhcbdirac - name: Retrieve the secret and decode it to a file env: @@ -109,8 +124,8 @@ jobs: mkdir -p etc/grid-security/vomses mkdir -p etc/grid-security/vomsdir mkdir -p etc/grid-security/certificates - echo $HOSTCERT_BASE64 | base64 --decode > etc/grid-security/hostcert.pem - echo $HOSTKEY_BASE64 | base64 --decode > etc/grid-security/hostkey.pem + echo "$HOSTCERT_BASE64" | base64 --decode > etc/grid-security/hostcert.pem + echo "$HOSTKEY_BASE64" | base64 --decode > etc/grid-security/hostkey.pem chmod 440 etc/grid-security/hostcert.pem chmod 400 etc/grid-security/hostkey.pem - name: tests