-
Notifications
You must be signed in to change notification settings - Fork 451
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
"File name too long" errors when deleting Minio volumes with huge paths #229
Comments
Seems like it's not necessarily the fault of the busybox image itself, despite getting a busybox-specific repro in the above description. I manually configured
But again I was able to delete the directory just fine on the host, even switching to use the absolute path as the container is doing. It's a bit of a mystery to me what the difference is here:
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
I had created a Minio instance in my k3s cluster and noticed that the
helper-pod-delete-pvc
pods were failing with errors like the following (output is shortened here and below to avoid flooding the ticket, but you get the idea):It looks like the root cause is due to a lower max filename lengths in busybox.
I found that I was able to reproduce the error on the host machine via
busybox rm -rf
against the PVC directory:However if I use GNU
rm -rf
from the same shell then the same delete works fine:From this, the solution might be to replace the use of busybox images with something else? I haven't yet dug into why the path is failing on busybox specifically but that feels like the easiest solution.
Also to be clear I don't know why Minio is creating huge paths like this but I'm consistently seeing it across deployments so it seems to be "standard". In any case it'd be better if
local-path-provisioner
was able to successfully clean up the volumes under this scenario.For reference the
helper-pod-delete-pvc
definition is as follows:And the
teardown
script is defined as follows:The text was updated successfully, but these errors were encountered: