-
Notifications
You must be signed in to change notification settings - Fork 176
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
Unable to delete environment #1567
Comments
Was able to reproduce inside Vagrant test environment
I've not assigned anything to this environment. Based on #333 I checked resources and what I found is a test asset with no environment shows up when I query with
I don't know if this is the resource keeping the environment held but I can't delete the asset as that doesn't yet seem supported. |
We'd have to resolve the issue with assets not being able to be deleted first. See #988 |
Does an asset belong to all environments? I don't recall seeing an explicit environment assigned to assets when testing, only an organization. |
Looking at this again it appears you're correct! We are needlessly checking for the presence of assets when the environment is being deleted. Thanks. 👍 |
This commit fixes a bug where environments could not be deleted if the organization they reside in has one or more assets. Assets do not exist within environments, so there is no reason to consider them when deleting environments. This commit also stops the environment store from reporting an error when an environment that doesn't exist is deleted. Closes #1567 Signed-off-by: Eric Chlebek <[email protected]>
This commit fixes a bug where environments could not be deleted if the organization they reside in has one or more assets. Assets do not exist within environments, so there is no reason to consider them when deleting environments. This commit also stops the environment store from reporting an error when an environment that doesn't exist is deleted. Closes #1567 Signed-off-by: Eric Chlebek <[email protected]>
This commit fixes a bug where environments could not be deleted if the organization they reside in has one or more assets. Assets do not exist within environments, so there is no reason to consider them when deleting environments. This commit also stops the environment store from reporting an error when an environment that doesn't exist is deleted. Closes #1567 Signed-off-by: Eric Chlebek <[email protected]>
Expected Behavior
I'd expect to delete an environment that has only been created during tests.
Current Behavior
Possible Solution
It would be handy if the resource keeping an environment from being deleted is printed. I can imagine this would be very expensive or verbose with lots of resources but in this case there should be nothing, see below.
Steps to Reproduce (for bugs)
Unsure how to reproduce as my acceptance testing will create resources then delete them so nothing should be persisting long enough to stay in a test environment.
Context
I am running acceptance tests for Puppet sensu module and an environment is created, modified then deleted and the deletion is failing. This only manifests itself when other resources before this environment are created. What's making this strange is nothing is added or modified while between environment creation and deletion attempt.
I'm unsure how to debug this issue as seems like this environment should have no resources associated with it and thus should be allowed to be deleted.
CC: @ghoneycutt
Your Environment
The text was updated successfully, but these errors were encountered: