Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVMFS CSI tests #134

Open
meiyasan opened this issue Feb 22, 2024 · 1 comment
Open

CVMFS CSI tests #134

meiyasan opened this issue Feb 22, 2024 · 1 comment

Comments

@meiyasan
Copy link

Hello,

I have been setup a CVMFS CSI container. It is up and running in a K8S cluster on my Linux x86_64.
I also installed CVMFS on my linux computer and linked some tests repository to see if it is able to find them.
I mounted /cvmfs/software.igwn.org on my native machine and shared the directory on Docker Desktop (Kubernetes cluster features enabled)

I have tried to setup a test pod as following, but looking into it there is none of the pre-defined repositories.

$ cat test.yaml 
apiVersion: v1
kind: PersistentVolume
metadata:
  name: cvmfs-default
spec:
  csi:
    driver: cvmfs.csi.cern.ch
    volumeHandle: cvmfs-default
  accessModes:
  - ReadOnlyMany
  capacity:
    storage: 1
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: cvmfs
  namespace: default
spec:
  accessModes:
  - ReadOnlyMany
  resources:
    requests:
      storage: 1
  volumeName: cvmfs-default
  storageClassName: ""
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cvmfs-all-repos
  labels:
    app: cvmfs-all-repos
spec:
  replicas: 2
  selector:
    matchLabels:
      app: cvmfs-all-repos
  template:
    metadata:
      labels:
        app: cvmfs-all-repos
    spec:
      containers:
       - name: idle
         image: busybox
         imagePullPolicy: IfNotPresent
         command: [ "/bin/sh", "-c", "trap : TERM INT; (while true; do sleep 1000; done) & wait" ]
         volumeMounts:
           - name: my-cvmfs
             mountPath: /my-cvmfs
             # CVMFS automount volumes must be mounted with HostToContainer mount propagation.
             mountPropagation: HostToContainer
      volumes:
       - name: my-cvmfs
         persistentVolumeClaim:
           claimName: cvmfs

Could you maybe helping me setting up this part?

total 0
/my-cvmfs # ls -la
total 4
drwxr-xr-x    2 root     root             0 Feb 22 08:44 .
drwxr-xr-x    1 root     root          4096 Feb 22 08:43 ..
/my-cvmfs # cd software.igwn.org
/bin/sh: cd: can't cd to software.igwn.org: No such file or directory
@MohammadAliAmir
Copy link

I have been recently also trying to set this up but also unable to do so. However, it was seemingly trying to discover whats in my repo. Anyway, I noticed you didn't use a StorageClass and all the examples in the how-to-use file seem to use a StorageClass. Try the example with the StorageClass and pvc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants