Skip to content

CVMFS CSI tests #134

Open
Open
@meiyasan

Description

@meiyasan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions