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

Devfile not validated on workspace update #13526

Closed
metlos opened this issue Jun 12, 2019 · 5 comments
Closed

Devfile not validated on workspace update #13526

metlos opened this issue Jun 12, 2019 · 5 comments
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@metlos
Copy link
Contributor

metlos commented Jun 12, 2019

Description

When a workspace is updated and contains an updated version of the backing devfile, the content of the devfile is not validated. This can lead to failed workspace startup once such workspace is restarted after the update.

Reproduction Steps

  1. Create a devfile-backed workspace using a valid devfile.
  2. Send an update request containing an invalid devfile.
  3. Observe the update succeeding.
  4. Restart the workspace.
  5. Observe the startup errors stemming from the wsmaster trying to interpret the invalid devfile (it might even be syntactically valid but internally inconsistent).

#13527 is most probably a prerequisite for this to work reliably.

@metlos metlos added kind/bug Outline of a bug - must adhere to the bug report template. team/platform labels Jun 12, 2019
@skabashnyuk skabashnyuk added the severity/P1 Has a major impact to usage or development of the system. label Jun 12, 2019
@sleshchenko sleshchenko added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Aug 16, 2019
@sleshchenko
Copy link
Member

I think this is a quite important issue it's why I added need-triage label.
People from time to time ask me why some behavior does not work, and the reason for it is that devfile is incorrect but Che Server neither Dashboard do not tell the user about it.

@tolusha
Copy link
Contributor

tolusha commented Aug 16, 2019

I've just tried to set env variables for a sidecar container.
It was very hard to understand why it didn't work, because there wasn't any validation :(

@mmorhun
Copy link
Contributor

mmorhun commented Aug 16, 2019

My +1 to fix it.
We encourage users to write devfiles and so we should provide good UX for this. But now when a user copy-paste some part of devfile which is yaml-valid, but has some logical mistakes (for example reference for non-existing component) it will be accepted.

@ibuziuk ibuziuk removed the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Aug 26, 2019
@ibuziuk
Copy link
Member

ibuziuk commented Aug 26, 2019

@skabashnyuk @metlos could you please put the milestone based on the team priorities ?

@mshaposhnik
Copy link
Contributor

Done & merged;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

7 participants