Skip to content
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

Mounted files using singleuser.extraFiles partially remain after re-naming #3218

Open
M4C4R opened this issue Sep 13, 2023 · 0 comments
Open
Labels

Comments

@M4C4R
Copy link

M4C4R commented Sep 13, 2023

Bug description

When I mount a file using singleuser.extraFiles onto the user's home directory, then decide to rename the file using mountPath.
The old file remains when the user restarts their server, albeit it is empty.

How to reproduce

  1. Download the latest release from https://hub.jupyter.org/helm-chart/ (3.0.3 for me), extract it, and change directory to it
  2. Deploy the helm chart:
helm upgrade --install jupyterhub . \
--set singleuser.extraFiles.test.mountPath="/home/jovyan/test" \
--set singleuser.extraFiles.test.stringData="abc"
  1. Launch a user's server using the UI and notice the file test exists
  2. Re-name the file and deploy again:
helm upgrade --install jupyterhub . \
--set singleuser.extraFiles.test.mountPath="/home/jovyan/test2" \
--set singleuser.extraFiles.test.stringData="abc"
  1. Restart the user's server and notice that there are now two files, one being the original, which is now empty.

Expected behaviour

I expected the original file to disappear as it is no longer being mounted.

Actual behaviour

The (now empty) file remains after being re-named.

Your personal set up

Distribution: zero-to-jupyterhub

I've observed this issue on a local Minikube cluster, as well as GKE on GCP.

@M4C4R M4C4R added the bug label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant