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

[BUG] - Jupyter scheduler doesn't run successfully unless users are in developer group. #2444

Closed
Adam-D-Lewis opened this issue May 3, 2024 · 4 comments
Labels
type: bug 🐛 Something isn't working

Comments

@Adam-D-Lewis
Copy link
Member

Adam-D-Lewis commented May 3, 2024

Describe the bug

https://www.nebari.dev/docs/tutorials/jupyter-scheduler/ states
Only users in the admin or developer groups will have access to create notebook jobs. For more information regarding users and groups, please visit [How to configure Keycloak](https://www.nebari.dev/docs/how-tos/configuring-keycloak)
but I had a user that was a member of /users, /analyst, and /admin groups, but Jupyter scheduler would fail for him. After I added him to developer group, things worked as expected for him.

Expected behavior

Update docs or fix bug

OS and architecture in which you are running Nebari

Linux x86-64

How to Reproduce the problem?

See above

Command output

No response

Versions and dependencies used.

No response

Compute environment

None

Integrations

No response

Anything else?

v2024.4.1 of Nebari

@Adam-D-Lewis Adam-D-Lewis added type: bug 🐛 Something isn't working needs: triage 🚦 Someone needs to have a look at this issue and triage labels May 3, 2024
@marcelovilla marcelovilla removed the needs: triage 🚦 Someone needs to have a look at this issue and triage label May 9, 2024
@nkaretnikov
Copy link

@Adam-D-Lewis Hey Adam, I couldn't reproduce the behavior your describe (Nebari and images 2024.5.1). For me, it works with admin, without developer. I can think of two reasons as to why you ran into this:

Error message:

jupyter-scheduler-permission-error

The code that sets the token is in src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/jupyterhub/files/jupyterhub/03-profiles.py. See the argo_sa part that's set based on available groups:

Please let me know if there are any questions. Otherwise, I think this can be closed.

@Adam-D-Lewis
Copy link
Member Author

Thanks for looking into it Nikita. I'm confident the issue wasn't with paper mill. I don't think it was a restart issue either, but if we can't reproduce I'm fine to have it closed for now.

@kcpevey
Copy link
Contributor

kcpevey commented May 27, 2024

@nkaretnikov can you confirm that admin is required? If so, I will likely open up a new issue to fix that. Or, rather, adjust it to a more fine grained permission model once the permissions revamp is further along.

@nkaretnikov
Copy link

@kcpevey I apologize for not being clear. It's either admin or developer as the current docs say.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
Development

No branches or pull requests

4 participants