-
Notifications
You must be signed in to change notification settings - Fork 263
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
Access denied occurs when delete a dynamically created PV (DeleteVolumeRequest does not have VolumeCapabilities) #260
Comments
does manual mount on that agent node works? it said permission denied error: mount -v -t nfs 192.168.1.188:/home/codinghuang/nfs/pipeline-volume /tmp/pvc-3bb08883-6f23-4016-ad15-9607971b68cd |
at the master node: sudo mount -v -t nfs 192.168.1.188:/home/codinghuang/nfs/pipeline-volume /tmp/pvc-3bb08883-6f23-4016-ad15-9607971b68cd
[sudo] password for codinghuang:
mount.nfs: mount point /tmp/pvc-3bb08883-6f23-4016-ad15-9607971b68cd does not exist
[codinghuang@k8s-master-node ~]$ mkdir /tmp/pvc-3bb08883-6f23-4016-ad15-9607971b68cd
[codinghuang@k8s-master-node ~]$ sudo mount -v -t nfs 192.168.1.188:/home/codinghuang/nfs/pipeline-volume /tmp/pvc-3bb08883-6f23-4016-ad15-9607971b68cd
mount.nfs: timeout set for Fri Dec 31 01:20:09 2021
mount.nfs: trying text-based options 'vers=4.1,addr=192.168.1.188,clientaddr=192.168.1.107'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'vers=4.0,addr=192.168.1.188,clientaddr=192.168.1.107'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'addr=192.168.1.188'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.188 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.188 prog 100005 vers 3 prot UDP port 30003 |
so it's permission denied , nfs server config issue? |
mount with sudo umount /tmp/pvc-3bb08883-6f23-4016-ad15-9607971b68cd
sudo mount -v -t nfs -o nfsvers=3 192.168.1.188:/home/codinghuang/nfs/pipeline-volume /tmp/pvc-3bb08883-6f23-4016-ad15-9607971b68cd
mount.nfs: timeout set for Fri Dec 31 01:26:35 2021
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.1.188'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.188 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.188 prog 100005 vers 3 prot UDP port 30003 |
then add |
I had add but Why didn't mount use the nfsvers=3 option I specified when deleting pv? |
@msau42 @jsafrane that's because |
related code: csi-driver-nfs/pkg/nfs/controllerserver.go Lines 130 to 133 in d6c19e7
|
add a new field |
Hi @andyzhangx, Is it what is expected? Thanks! |
@madhosoi do you know what's the non working mountOptions, and what's the error msg? I think that depends on the nfs server |
Hi @andyzhangx , thanks for the quick answer!
But I saw in the code a condition that compares the string mountOptions with nfsvers=3 or with nfsvers=4 . BTW, Thanks for the update, without your involvement, we cannot use it! Cheers, |
seems it's better we use soft mount according to https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/What_are_the_differences_between_hard_mount_and_soft_mount?msclkid=08a281b5d0fa11ec91c1711b4a0c890d
|
98f23071 Merge pull request kubernetes-csi#260 from TerryHowe/update-csi-driver-version e9d8712d Merge pull request kubernetes-csi#259 from stmcginnis/deprecated-kind-kube-root faf79ff6 Remove --kube-root deprecated kind argument 734c2b95 Merge pull request kubernetes-csi#265 from Rakshith-R/consider-main-branch f95c855b Merge pull request kubernetes-csi#262 from huww98/golang-toolchain 3c8d966f Treat main branch as equivalent to master branch e31de525 Merge pull request kubernetes-csi#261 from huww98/golang fd153a9e Bump golang to 1.23.1 a8b3d050 pull-test.sh: fix "git subtree pull" errors 6b05f0fc use new GOTOOLCHAIN env to manage go version 18b6ac6d chore: update CSI driver version to 1.15 git-subtree-dir: release-tools git-subtree-split: 98f23071d946dd3de3188a7e1f84679067003162
What happened:
I now dynamically created the PV through NFS StorageClass, but when I deleted the PVC, the NFS provisioner reported the following error:
it's my
storageclass
:What you expected to happen:
The PVC can be successfully deleted when the PV is deleted.
How to reproduce it:
install nfs server:
sudo vim /etc/exports /home/codinghuang/nfs/pipeline-volume *(rw,no_root_squash,async)
install csi
install csi from here
create
storageclass
create
pvc
when I delete pvc:
and the log:
Anything else we need to know?:
Environment:
CSI Driver version:
Kubernetes version (use
kubectl version
): 1.20.2OS (e.g. from /etc/os-release):
uname -a
):uname -a Linux k8s-worker-node-1 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: