-
Notifications
You must be signed in to change notification settings - Fork 799
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
Helm chart 4.0.0-beta.2 cannot find existing pvc for user home dir. #3536
Comments
Thank you @dragz for trying out the beta release and reporting this back!!! The key parts from this report is that kubespawner 7.0.0b2 in z2jh 4.0.0-beta.2 resulted in...
@minrk it seems from this that kubespawner was smart and concluded it should re-use the old PVC, but that it at the same time failed to do so. |
Note from the default values of z2jh, we have this btw @minrk, so we have explicit and defaults overriding the kubespawner defaults. storage:
type: dynamic
extraLabels: {}
extraVolumes: []
extraVolumeMounts: []
static:
pvcName:
subPath: "{username}"
capacity: 10Gi
homeMountPath: /home/jovyan
dynamic:
storageClass:
pvcNameTemplate: claim-{username}{servername}
volumeNameTemplate: volume-{username}{servername}
storageAccessModes: [ReadWriteOnce]
subPath: |
pvcNameTemplate should probably be removed, since that's already the default. I'll investigate the tests to see why they don't cover this case, I thought they did. |
(unless pvcNameTemplate is consumed in the chart, which I suspect it actually is. In that case, it should stay and be updated to |
I think I understand it now, the chart actually defines the volume:pvc mount, so even though the pvc itself is correct, the volume mount points to the pvc name that doesn't exist. Fortunately, the updated templates address this, because there is a |
Thank you @minrk!! @dragz could you try if this resolved things for you by using the latest development release of the chart? It will be listed soon at https://hub.jupyter.org/helm-chart/#development-releases-jupyterhub It is version 4.0.0-beta.2.git.6792.hc3e818e9 |
Yes, this fixed the issue. Home dir is now found and mounted correctly. (I'm impressed with the speed here) |
Thank you for testing, reporting, and verifying the attempted fix @dragz!! 4.0.0-beta.3 released for this fix btw |
Bug description
Just ran an upgrade from version 3.3.7 and found that the spawn fails because it cannot find the users home dir PVC.
How to reproduce
Expected behaviour
It should look for a PVC named claim-abc000-40uit-2eno which was created before the upgrade.
Actual behaviour
It tries to find a PVC named claim-abc000-uit-no---1ea1e26d which does not exist
Your personal set up
Rather straight forward setup with Azure Kubernetes Service using zero-to-jupyterhub with autoscaling and EntraID for authentication.
Configuration
# jupyterhub_config.py
Logs
The text was updated successfully, but these errors were encountered: