Mountvolume. Setup Failed for Volume “…”: Mount Failed: Exit Status 32

Mountvolume. Setup Failed for Volume “…”: Mount Failed: Exit Status 32

My OS is Ubuntu, using openshift, and one pod keep pending, because nfs server cannot be mounted (nfs server is able to be mounted by mannually using command line, but cannot be mounted from the Pod)

I have installed nfs-common, so it's not the root cause. I trying to install nfs-utils, but I was failed, the error message is:

E: Unable to locate package: nfs-utils.

I also tried libnfs12 and libnfs-utils, they were the same as nfs-utils. I also used apt-get install upgade and update to solve the package locating problem, but they were useless.

I'm going to show the yaml file for connecting the nfs server

apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv-test01
  lables:
    disktype: baas
spec:
  capacity:
    storage: 1Gi
  accessModes:
    - ReadWriteMany
  nfs:
    path: /baas
    server: 9.111.140.47
    readOnly: false
  persistentVolumeReclaimPolicy: Recycle

after using "oc describe pod/mypod" for the pending Pod, below is the feedback:

Warning  FailedMount  14s  kubelet, localhost  MountVolume.SetUp failed for volume "pv-test01" : mount failed: exit status 32
Mounting command: systemd-run
Mounting arguments: --description=Kubernetes transient mount for /var/lib/origin/cluster-up/root/ --scope -- mount -t nfs 9.111.140.47:/baas /var/lib/origin/cluster-up/root/
Output: Running scope as unit run-28094.scope.
mount: wrong fs type, bad option, bad superblock on 9.111.140.47:/baas,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

so how can I mount to nfs server from the Pod?

4
Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.