Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Space Deletion Function is not reliably deleting OpenShift resources #4657

Open
ldimaggi opened this issue Dec 19, 2018 · 11 comments
Open

Space Deletion Function is not reliably deleting OpenShift resources #4657

ldimaggi opened this issue Dec 19, 2018 · 11 comments

Comments

@ldimaggi
Copy link
Collaborator

ldimaggi commented Dec 19, 2018

As of today, human users and automated tests do not have a reliable way to remove a space, and all of its related OpenShift resources. The users/tests are able to work-around this by performing an environment reset, but this is problematic as the reset intermittently results in some resources not restarting. For example, issue #4598 describes an intermittent problem where Jenkins is not accessible after an environment reset.

In addition, the environment reset is a does not give the user fine-grained control over its actions. It is a destructive function that intentionally removes ALL user resources and restarts the user's pods. If a user wants to remove all resources associated with a single space, but not all resources associated with other spaces, then he/she cannot use the environment reset feature.

For automated tests, the environment reset function is also not reliable as after the reset, there are intermittent problems with Jenkins not starting. If a human user encounters this problem, the workaround is to reset the environment a second time. For automated tests, its less practical to reset the environment a variable number of times.

A reliable space deletion function that also removes all associated OpenShift resources is preferable for both human users and automated tests.

Related issues:
#4121
#4598
#4656

@christianvogt
Copy link
Collaborator

This is also important for devs to run e2e tests with their own accounts. We encourage devs to run e2e tests and also fix them up. However if they need to always reset their env it's a big ask depending on the setup they already have. It would best to have a cleaner solution.

@pmacik
Copy link
Collaborator

pmacik commented Dec 20, 2018

A reliable space deletion function that also removes all associated OpenShift resources is preferable for both human users and automated tests.

In addition, all the corresponding Che workspaces from the space's codebases should be removed as well.

@ldimaggi
Copy link
Collaborator Author

Will the fix to this issue:
fabric8-services/fabric8-tenant#710

Also solve our env reset issues?
@MatousJobanek

@ljelinkova
Copy link
Collaborator

If I understand it correctly, the reset of environment calls delete on all spaces. That means that if delete space does not work properly, the reset of environment does not work either.

That is why it is so annoying to have an issue like this where delete space does not delete Che workspaces.

#4559

It means we need to manually delete all che workspaces for all our testing accounts periodically (every few weeks) otherwise the Che tests stop to work properly.

Another issue is that neither work items are deleted

#4382

BTW, I do not think this is a feature request, the space deletion is broken and should be fixed.

@ppitonak
Copy link
Collaborator

ppitonak commented Jan 4, 2019

Pipelines are not removed on space delete, too #3802

@joshuawilson
Copy link
Member

@ppitonak do you agree with the change to the labels and setting of severity?

@michaelkleinhenz
Copy link
Collaborator

michaelkleinhenz commented Jan 4, 2019

Delete spaces seems to be broken or non complete in WIT. @kwk is already working on fixing this. As far as I collected from the issues linked here, deleting a space should:

  1. delete the Che workspaces via che-starter (Delete space does not delete che workspace #4559).
  2. delete the pipelines (Pipeline not removed when a space is removed #3802). PR here: deletes pipelines on space removal fabric8-services/fabric8-wit#2352.
  3. delete all work items (Work items are not deleted when space is removed #4382) and all other WIT resources that are connected to the space.

Is this list complete (minus the things already being done, see below)? The current implementation does the following as far as I can see:

  1. deletes the codebases.
  2. deletes deployments.
  3. deletes the space iteself.

@ppitonak
Copy link
Collaborator

ppitonak commented Jan 4, 2019

@joshuawilson yes, thanks for setting it

@michaelkleinhenz #2352 is talking about idling Jenkins jobs that are waiting on approval, it has nothing to do with #3802

@michaelkleinhenz
Copy link
Collaborator

@michaelkleinhenz #2352 is talking about idling Jenkins jobs that are waiting on approval, it has nothing to do with #3802

got it. Wanted to link to PR 2352, not issue 2352 :)

@ldimaggi ldimaggi changed the title Feature Request - Enhanced Space Deletion - To delete OpenShift resources and remove need for Env Reset Space Deletion Function is not reliably deleting OpenShift resources Jan 4, 2019
@ldimaggi
Copy link
Collaborator Author

ldimaggi commented Jan 4, 2019

+1 on Lucia's comment - changed the issue title to reflect that his is a bug and not a feature request. Thx!

@alexeykazakov
Copy link
Member

I've removed team/platform because I don't see what else platform services should remove during space deletion. Please let me know if I missed something. I added team/wit because it needs to remove codebases, workspaces, work items etc.

@stevengutz stevengutz added priority/P1 Critical and removed priority/P2 High labels Jan 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants