Closed tblazina closed 4 years ago
I'm having the same issue with one pod running git-sync on azure-files mounted volume. @tblazina have you found any workaround for this problem?
one workaround could be delete that pod and azure file volume would be remounted.
@carbolymer, unfortunately I have not found a workaround. What appears to be happening is that after 2 times of executing the copy, AFS marks it as having a file conflict.
@carbolymer, unfortunately I have not found a workaround. What appears to be happening is that after 2 times of executing the copy, AFS marks it as having a file conflict.
pls file a support ticket to azure file team, thanks.
pls follow this guide to delete that azure file in problem: https://docs.microsoft.com/en-us/azure/storage/files/storage-troubleshoot-windows-file-connection-problems#unable-to-delete-a-file-or-directory-in-an-azure-file-share Let me know if you have any question.
Great, I'll check out the link. thanks for the help @andyzhangx!
@tblazina I had a similar issue, and found out:
"Version 4.15.0-1063 of the Ubuntu kernel doesn’t have the fix for the handle leak problem related to renaming files. The fix went into version 4.15.0-1064. Please upgrade your kernel to any version starting from that one to see if it resolves the issue in your scenario. "
Once I had a AKS cluster with the new kernel the problem disappeared. Be good to know if works for you too.
What happened: I have copied a local file to a directory in a pod which is VolumeMount of a PVC linked to an Azure File Share using
kubectl cp some_file <some-namespace>/<some-pod>:/volume_mounted/directory/in/pod
, changed the file once copied it again, and changed and copied it a third time and received the following error:After this if I
exec
into the container and go to where the file should be, the file shows up when i runls
but if I try to do anything to the file (e.g.rm k8s_example2.py
,cat k8s_example2.py
,head k8s_example2.py
, etc.), I get an error telling me the file does not exist (e.g. rm: cannot remove 'k8s_example2.py': No such file or directory).When I run
ls -la
the file has the following info:What you expected to happen: I would expect that the file could be copied repeatedly.
How to reproduce it (as minimally and precisely as possible):
kubectl cp
Anything else we need to know?:Also if I exec into the container and run
dmesg | tail -n100
I see[446995.438278] CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-5
repeated many times, Maybe this is related to #1030?Environment:
kubectl version
): 1.15