Skip to content

Controler failed to make subdirectory: mkdir /tmp/pvc-xxxx: read-only file system  #246

@seb-835

Description

@seb-835

What happened:

The CSI-NFS controler refused to create the mount directory in container :

E1122 16:36:41.400529       1 utils.go:91] GRPC error: rpc error: code = Internal desc = failed to make subdirectory: mkdir /tmp/pvc-68f3e65a-b286-4d97-94d3-534e260f0568/pvc-68f3e65a-b286-4d97-94d3-534e260f0568: read-only file system

But when i attach to the container

kubectl exec -it csi-nfs-controller-57594f8fd-pr9d7 -n kube-system -c nfs -- /bin/sh

and make a mkdir /tmp/test, it works , and i can mount the sharing.

I am sure , i forget something, but i can´t put the finger on, could you help please ?

Environment:

  • CSI Driver version: 3.0.0

  • Kubernetes version : 1.21.4

  • OS : CENTOS 7.9

  • Kernel : 5.13.0-21-generic

  • sestatus

SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   permissive
Mode from config file:          permissive
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      31

CSI installed using HELM-3 :

helm install csi-driver-nfs csi-driver-nfs/csi-driver-nfs --namespace kube-system --set controller.runOnMaster=true --set controller.replicas=3

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