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

Align Get Started and Create Custom Workspace pages in propagating persistVolumes attribute #17170

Closed
1 of 22 tasks
vparfonov opened this issue Jun 17, 2020 · 4 comments
Closed
1 of 22 tasks
Assignees
Labels
area/dashboard kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@vparfonov
Copy link
Contributor

vparfonov commented Jun 17, 2020

Describe the bug

In settings had :

{
...
"che.workspace.persist_volumes.default":"false"
...
}

This is means that default behavior should be "Ephemeral Mode" so not needed add any attributes to workspace config related to the storage type.

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  1. Go to the Get Started
  2. Keep Temporary Storage turn on
  3. Create workspace with any sample
  4. No attribute should be added but got :
attributes:
  persistVolumes: 'false'

If create workspace form custom workspace tab all work as expected.

Expected behavior

No attribute should be added if create workspace in Ephemeral Mode

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Installation method

  • chectl
    • provide a full command that was used to deploy Eclipse Che (including the output)
    • provide an output of chectl version command
  • OperatorHub
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify

Eclipse Che Logs

Additional context

@vparfonov vparfonov added the kind/bug Outline of a bug - must adhere to the bug report template. label Jun 17, 2020
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jun 17, 2020
@vparfonov vparfonov self-assigned this Jun 17, 2020
@sleshchenko
Copy link
Member

@vparfonov Just to clarify that workspace start there is no unexpected behavior and issue is only that attribute appears when it's not needed?

che.workspace.persist_volumes.default is not expected to be changed frequently on Che Server side but still, I wonder if it makes even more sense to always set devfile.persistVolumes explicitly to avoid unexpected data lose - when user created workspace with default persistVolumes: true and then default is changed to persistVolumes: false.
@skabashnyuk Do you think it would be better to set the value explicitly or omit if it's the same as default provided by Che Server?

@benoitf benoitf added severity/P2 Has a minor but important impact to the usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jun 17, 2020
@vparfonov
Copy link
Contributor Author

@sleshchenko Yes workspace starts well, problem only in attribute. I worry because work on issue
#15960 and here my PR eclipse-che/che-dashboard#58. During testing, I met this strange behavior and think we need to align behavior.

@sleshchenko
Copy link
Member

I've found a bit more discussion here #15713 (comment)

So, seems there is a bug on Create Custom Workspace Page but Get started page works as expected.

@sleshchenko sleshchenko changed the title Get started page in dashboard propagate wrong attribute in case change Storage Mode Align Get Started and Create Custom Workspace pages in propagating persistVolumes attribute Jun 17, 2020
@ibuziuk
Copy link
Member

ibuziuk commented Jul 15, 2020

Closing in favour of #17230 (UD changes for new storage type)

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

No branches or pull requests

5 participants