Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bug: unable to delete workspace using mixed parameters after upgrade to v17.0 #6088

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

Closed
pratheekrebala opened this issue Feb 7, 2023 · 4 comments
Assignees
Labels
s0 Major regression, all-hands-on-deck to fix

Comments

@pratheekrebala
Copy link

Good Afternoon!

I just upgrade to v17.0 and was trying to delete a workspace that also used legacy parameters so I could make the switch to entirely using rich parameters. However, I am unable to delete them using either the CLI or the UI. I receive the following message when trying to remove the workspace:

CLI: coder delete user/workspace

image

UI:

image

I believe this was because I added rich parameters to an existing workspace back in v16.0. Is there any path for me to delete this workspace? (Outside of just deleting with --orphan and removing resources manually?)

Thank you,
Pratheek

Related: #5974, #5574.

@kylecarbs
Copy link
Member

@pratheekrebala sorry we broke this for you! This was an arbitrary gate on our side but intentional because we plan on forking the UX while users transfer over.

Is there a missing feature in rich parameters that prevents you from moving legacy ones over?

@pratheekrebala
Copy link
Author

Thanks for the context @kylecarbs!

I don't have any missing features with rich parameters. I do however use variables with sensitive = true to manage template level parameters.

I ran into this issue while I was working on migrating workspaces to rich parameters. I also tried to delete the workspace using --orphan but I get the same error (Rich paramters can't be used together with legacy parameters.)

Is there anyway for me to delete the workspace while the gate is in place? I am also unable to update the template associated with the workspace because of the same error. The message on the CLI is different but on the server side I get the same message as before.

Output from coder template push [template_name] [template_dir]

CLI:

image

UI:
image

@mtojek
Copy link
Member

mtojek commented Feb 9, 2023

Hey @pratheekrebala! Could you please update to the latest release and see if you can remove the affected workspace?

@bpmct bpmct added bug s0 Major regression, all-hands-on-deck to fix labels Feb 9, 2023
@pratheekrebala
Copy link
Author

Hey @mtojek, I just tried this and was able to delete both templates and workspaces through both the UI & the CLI.

Thank you for patching this so quickly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s0 Major regression, all-hands-on-deck to fix
Projects
None yet
Development

No branches or pull requests

5 participants