-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
minikube mount
does not follow symlinks
#9757
Comments
/kind support |
Additionally:
And any attempt to fix or re-mount manually with the workaround command returns:
The only way I found to restore the permissions is to |
Hey @Pictor13 sorry for the delay in responding to your issue. I'm not very familiar with Looks like some users found a workaround, I wonder if this would work for you as well? #4621 (comment) |
@Pictor13 Did you try taking a look at the related issues linked above? |
Hi @Pictor13, we haven't heard back from you, do you still have this issue? I will close this issue for now but feel free to reopen when you feel ready to provide more information. |
Hi @spowelljr , hi @priyawadhwa , Yes, I've looked at the linked issue. The workaround solved the resolution of symlinks. However, as mentioned above, this is not a viable long-term solution since it requires the user to always remember to manually mount the volume. As commented in the linked issue, the workaround actually provokes other issues with permissions. Also, having to keep a terminal open for keeping the mount active doesn't play nicely with suspending the host machine or the virtual machine, for later resume of work. The parameter Last (personal) pain point is how time-wasting it is to figure that Finally, I tried to mount the volume manually via: but the owner:group is still set to I believe the
Thank you for your persistent work though. |
/reopen |
@Pictor13: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
A lot of the issues we've experienced with auto-mounting comes down to issues with 9p, which we can't really do much about. We've explored other options for mounting, but haven't had the capacity to implement something new. We'd be happy to review a PR that does this though. |
I totally understand. Would minikube team be able to redact a list of functioning workarounds or official recommendations, in the documentation, as long as there's no fix? In any case, to help for future action I think it might make sense to mention what exact project/repo provides the 9p implementation. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle frozen |
oops I misread that spowelljr's marking frozen as the k8s robot didn't read close enough sorry This is still an issue. Trying to set back to frozen, assuming that is the proper tag for it: /add-lifecycle frozen |
Premise: my workspace makes use of symlinks to make available the (below mentioned) Projects directory; it has something like
ln -s /Users/Shared/Projects /Users/myuser/Projects/
Steps to reproduce the issue:
0. there's already a service deployed
1.
minikube start
(performs automatically theminikube mount
)2.
minikube ssh -- ls -la /Users/myuser/Projects
returns👍 The symlink was followed correctly.
Unfortunately, by default,
minikube mount
s the hosthome (/Users
on macOS) using ownership from the minikube'sdocker
user, while my service needs a userapp
.This causes broken file permissions (in the pod's container of the running service) when trying to
kubectl exec
commands that need to execute & write inside the containers (this because the project folder is mounted asdocker:docker
instead ofapp:app
).3.
minikube mount /Users:/Users --uid 61234 --gid 61234
should solve the above issue, allowing to specifyUID
andGID
of the mounting user (the numbers correspond toapp:app
).BUT
after performing the fix to the mount..
4.
minikube ssh -- ls -la /Users/myuser/Projects/
returns5.
minikube ssh -- ls -la /Users/myuser/Projects
returns😖 The symlink functionality has been lost.
It says that it is not a directory, while it should follow the symlink and allow the mount to access its content.
Even more unfortunate is that, after terminating the manual
minikube mount
command, the mount is not being restored to the default automatic mount.Off-Topic, but maybe
--uid
and--gid
should be supported directly on theminikube start
command, so that the correct user is handled automatically.Workaround: it is possible to mount directly my project folder, executing from it, with
minikube mount $(pwd):$(pwd) --uid 61234 --gid 61234
to skip the need of the symlink.
However I repute this a bug and I thought it made sense to report it in an issue, to get that fixed.
Even though there's a workaround, this is not ideal because it requires the user to always remember to manually mount and because it makes the automatic behaviour inconsistent (hence unpredictable) and buggy (when closing the manual mount).
The text was updated successfully, but these errors were encountered: