-
Notifications
You must be signed in to change notification settings - Fork 140
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
PVC stuck in Pending due to "An operation with the given Volume ID nas.example.com/kube#pvc-13d... already exists" #915
Comments
what's the csi driver controller logs? |
Hey, unfortunately not much...
Note: I have a single-node cluster at the moment, so that the only pod. |
@barbu110 you need to get the csi controller logs |
I’m sorry if I’m misunderstanding, but I believe the logs you’re looking for are in the description of the issue
On Sun, Jan 26, 2025 at 10:40, Andy Zhang - notifications at github.com ***@***.***> wrote: @barbu110 you need to get the csi controller logs —
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
the issue is in CreateVolume in controller pod:
|
Sorry for the delayed response. Thanks to you explaining what logs I had to investigate, I'm pleased to say the issue has gone away completely and volumes can now be successfully bound. Hopefully, this will serve as good material for future readers. Logs indicated that a route to the host could not be found. Then, I tried replacing the DNS name with an IP and was getting a logon failure:
Both issues have gone away after installing the Then, a new one appeared that could be traced in the logs of the controller:
Now, trying the mount command on the node, I had to run it with root permissions, because that's how So, my StorageClass now looks like:
Before we close this, please let me know if the addition of the |
What happened:
I have configured a StorageClass to provision persistent storage on my NAS (external to the Kubernetes cluster). There is already a Samba share there and proper credentials configured. When enabling the
provisioner-secret-name
andprovisioner-secret-namespace
annotations on the StorageClass, PVCs are stuck in pending.Now, it's important to mention that, if the two annotations mentioned above are not included on the StorageClass, volumes are successfully provisioned and containers are able to write to them. However, files end up on the root of the Samba share which is not desirable.
Also, important to mention is that, when the two annotations are included, a directory in the Samba share is created with the ID of the PVC, e.g.
pvc-13dbd013-e3d9-4f47-a54b-7339068161a0
, however, again, the PVC is stuck in Pending.Exact errors are from the controller logs are:
What you expected to happen: have volumes successfully provisioned
How to reproduce it:
Anything else we need to know?:
I have tried both versions 1.16 and 1.15. I could not install 1.17 as images are seemingly not available to download as of 2025-01-25.
Environment:
kubectl version
): v1.31.4+rke2r1uname -a
): 6.8.0-51-genericThe text was updated successfully, but these errors were encountered: