-
Notifications
You must be signed in to change notification settings - Fork 138
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
can't see any content in mnt #818
Comments
what's the |
hi, Andy Thanks for your response. cd /mnt/pfs-lablsdf -hFilesystem Size Used Avail Use% Mounted on mount | grep cifsexitfrom the node where the pod test-pfs-lab-jyu is running on:$ df -h |
there is no cifs mount on the node, does manual mount work on the node?
|
$ dig smbserver-fqdn # return the IP properly running the following manually on the cluster node:This works: sudo mount -t cifs -o username=myaccount,password='mypassword',domain=mydomain,vers=2.0 //smbserver-ip/share /mnt/share |
I have installed cift-utils on each of the cluster nodes, then sudo mount -t cifs -o username=myaccount,password='mypassword',domain=mydomain,vers=2.0 //smbserver-fqdn/share /mnt/share, then I can see /mnt/share contents on the host nodes directly. But I still can't see the contents within the pod after created the secret, sc, pvc/pv, pod. |
in the end, I got this working. But still something does not make sense to me. Initally, when I can't see the any contents within the pod under /mnt/share, I did the following to find out where the problem lands. I tried to manually mount the share on the k8s cluster node: At least at this stage, I can tell the problem is not related to networking/firewall, nor DNS. then I tried: apiVersion: v1
volumes:
in the end, I must manually run "umount /mnt/share" then "sudo mount -t cifs -o username=myaccount,password='mypassword',domain=mydomain,vers=2.0 //smbserver-fqdn/share /mnt/share", Finally I can see the content when run "ls /mnt/share" Even it is working now. But I do not understand why I must run "umount /mnt/share" and "sudo mount -t cifs -o username=myaccount,password='mypassword',domain=mydomain,vers=2.0 //smbserver-fqdn/share /mnt/share"" within the pod? Be aware that I have already created the storagclass used proper credetial, with the proper mountOptions, I have created the pvc, and the pod mounted with the proper pvc. After the pod was created, I should be able to see the content under /mnt/share without manually mount it. |
Anyone can help with this bug? The manual umount and manually mount just help us to lock where this problem fall into. But this won't be a fix. |
@andyzhangx I saw this old issue: #705 But that was very old one. I have install SMB v0.15.0. |
fyi. I have used: |
I FINALLY got this working. For Microk8s cluster, we need to add the last one. Could anyone who has write access to the /csi-driver-smb/charts/README.md/Tips section? |
Even it looks much better now. But still something not right. when I used the following: Even with this error message, the smb mount inside of the pod behavior properly. I can see the content of the mount as expected. No error messages for each csi-smab-node : "kubectl logs csi-smb-node-xxx -n kube-system"one thing important here is that I did not see pod csi-smb-controller-xxx running !!
when I used the following:
" Warning FailedScheduling 92s default-scheduler 0/3 nodes are available: 3 node(s) didn't match Pod's node affinity/selector. preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling." kubectl get nodes --show-labels |
@pbs-jyu can you remove |
hi, Andy Thanks for your response. I have done the following tests and the results are as follows: #: This does not work This works:kubectl label node your-cluster-nodes node-role.kubernetes.io/control-plane- This works:kubectl label node your-cluster-nodes node-role.kubernetes.io/control-plane="" |
Thank you for your help, Andy. I will close the case. |
What happened: installed smb csi in two cluster, used the same secret, same code created sc, pvc, and a test pod. in one cluster, I can see all the content under /mnt/share in the pod, but did not see anything in the other cluster. I can reach the SMB server, ping works from the problematic cluster nodes.
What you expected to happen: Contents are definitely there, existing. should see my content after exec -it the pod; when run ls.
How to reproduce it: run the same code over and over again. even tried different share from the same SMB server, as long as tested in problematic cluster A, I just can't see it.
Anything else we need to know?:
Environment:
image: registry.k8s.io/sig-storage/smbplugin:v1.15.0CSI Driver version: 1.15.0
Kubernetes version (use
kubectl version
): v1.29.7OS (e.g. from /etc/os-release):
- PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
Kernel (e.g.
uname -a
): 127-Ubuntu SMP Fri Jul 5 20:13:28 UTC 2024 x86_64 x86_64 x86_64 GNU/LinuxInstall tools: [Microk8s](my codes.txt)
Others:
The text was updated successfully, but these errors were encountered: