Skip to content

resource request behavior difference within Z2jh 1.2 and2.0 #3400

Closed as not planned
@linlol

Description

@linlol

Bug description

I override user's resource allocation via c.KubeSpawner.options_form with a default profile (by default, I have cpu 0.5/2, memory 2gi/8gi)

In z2jh 1.2 and jupyterhub 2, I can spawn user in admin page, with default profile.

In z2jh 2.0 and jupyterhub 3, looks like if I spawm user in admin page, jupyterhub would not load my profile override, with limit resource unspecified and got error from k8s API server

Also, it works if I open spawn page and select profile

How to reproduce

  1. In z2jh 2 and jhub 3
  2. Specify CPU/memory via set profile _list in c.KubeSpawner.options_form
  3. Open admin page and select user there

Expected behaviour

Actual behaviour

Your personal set up

  • OS:
    Ubuntu 22.04, k8s 1.28.3
Full environment
# paste output of `pip freeze` or `conda list` here
Configuration
# jupyterhub_config.py
Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions