Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Oct 4, 2023
1 parent c4f484e commit e824915
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -93,12 +101,23 @@ jobs:

- name: add cvmfs
run: |
sudo apt-get install autofs
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
ls -l /etc/cvmfs
whoami
sudo touch /etc/cvmfs/default.local
ls -l /etc/cvmfs
sudo echo "CVMFS_REPOSITORIES=lhcb.cern.ch" > /etc/cvmfs/default.local
sudo 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:
Expand All @@ -109,8 +128,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
Expand Down

0 comments on commit e824915

Please sign in to comment.