Skip to content

[Bug] Frontend sometimes displays invalid disk size #974

@AleTopp

Description

@AleTopp

Describe the bug
On persistent templates (like workspace-sid/vscode-python-nomarket) when you hover "Info", a Tooltip is shown with CPU/RAM/Disk information. On the template above the disk size is shown as: unavailableB.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Experimental Workspace 1'
  2. Scroll down to 'Visual Studio Code - Python (marketplace disabled)'
  3. Hover 'Info'
  4. See error

Expected behavior
It should display the real size of the persistent disk.
Or missing line if unavailable.

Screenshots
Image

Desktop

  • OS: All
  • Browser: All
  • Version All

Additional context
Inspecting the template's definition (k describe template vscode-python-nomarket -n workspace-sid), under Resources there is no Disk size specified.
As a matter of fact, when creating an instance of that template it goes in CreationLoopBackoff with reason

Warning  EnvironmentEnforcementFailed  22s (x15 over 104s)  Instance  Failed to enforce environment vscode-environment

So this issue is due to a template yaml error (since it was hand-written).
I don't know if the frontend should handle also cases like this or we have to suppose templates are correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions