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

Namespace stuck in the 'Terminating' state forever when Eclipse Che is uninstalled on OSD v4 and there is no way to fully remove it #17132

Closed
ibuziuk opened this issue Jun 10, 2020 · 4 comments
Labels
area/install Issues related to installation, including offline/air gap and initial setup area/ux Issues related to User Experience Design kind/bug Outline of a bug - must adhere to the bug report template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@ibuziuk
Copy link
Member

ibuziuk commented Jun 10, 2020

Describe the bug

Namespace stuck in the 'Terminating' state when Eclipse Che is uninstalled on OSD v4

Steps to reproduce

pre-requirement OSD v4 cluster + dedicated admin / enhanced dedicated admin permissions

  1. create a namespace
  2. install Eclipse Che via OperatorHub
  3. wait until all the resources are provisioned
  4. delete the operator
  5. delete the namespace
  6. ERROR: namespace stuck in the "Terminating" state:

image

Expected behavior

The namespace is deleted correctly

Runtime

  • OSD v4

Installation method

  • OperatorHub with enhanced dedicated admin permissions

Additional context

IMPORTANT

Documentation

https://kubernetes.io/docs/reference/access-authn-authz/rbac/

@ibuziuk ibuziuk added the kind/bug Outline of a bug - must adhere to the bug report template. label Jun 10, 2020
@ibuziuk ibuziuk changed the title Namespace stuck in the 'Terminating' state when Eclipse Che is uninstalled on OSD v4 Namespace stuck in the 'Terminating' state forever when Eclipse Che is uninstalled on OSD v4 and there is no way to fully remove it Jun 10, 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 10, 2020
@ibuziuk ibuziuk added area/install Issues related to installation, including offline/air gap and initial setup area/ux Issues related to User Experience Design labels Jun 10, 2020
@tolusha tolusha added severity/P1 Has a major impact to 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 10, 2020
@ibuziuk
Copy link
Member Author

ibuziuk commented Jun 16, 2020

Looks like on OSD admin must delete CheCluster from the namespace before uninstalling the operator. If the operator is uninstalled first there is no way to clean up the namespace since user will not have the required rights:

[ibuziuk@fedora ~]$ oc edit CheCluster eclipse-che
error: checlusters.org.eclipse.che "eclipse-che" could not be patched: checlusters.org.eclipse.che "eclipse-che" is forbidden: User "ibuziuk" cannot patch resource "checlusters" in API group "org.eclipse.che" in the namespace "eclipse-che"

Reinstalling the operator in the Terminating namespace also will not work:

operatorgroups.operators.coreos.com is forbidden: User "ibuziuk" cannot create resource "operatorgroups" in API group "operators.coreos.com" in the namespace "eclipse-che"

So, two important outcomes:

  • dedicated admin must delete CheCluster CR before uninstalling the operator
  • it looks if a namespace stuck in the terminating phase due to finalizer in CR it will not be possible to do anything for cleanup with the dedicated admin permissions

@dmytro-ndp
Copy link
Contributor

Che removal sequence:

oc project <project-name>
oc delete deployment che-operator
oc delete checluster eclipse-che
oc delete project <project-name>
  • how to delete terminating Che project

oc patch checluster eclipse-che -p '{ "metadata": { "finalizers": null }}' --type merge -n

  • how to delete terminating custom resource definition removal

oc patch customresourcedefinition/checlusters.org.eclipse.che -p '{ "metadata": { "finalizers": null }}' --type merge

@ibuziuk
Copy link
Member Author

ibuziuk commented Jun 17, 2020

@dmytro-ndp dedicated admin on OSD 4 does not have perms for patching

@tolusha tolusha added this to the Backlog - Deploy milestone Jul 30, 2020
@tolusha tolusha mentioned this issue Jul 30, 2020
42 tasks
@tolusha tolusha modified the milestones: Backlog - Deploy, 7.18 Aug 4, 2020
@tolusha tolusha added severity/P2 Has a minor but important impact to the usage or development of the system. and removed severity/P1 Has a major impact to usage or development of the system. labels Aug 20, 2020
@tolusha tolusha removed this from the 7.18 milestone Aug 26, 2020
@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 24, 2021
@che-bot
Copy link
Contributor

che-bot commented Feb 24, 2021

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot closed this as completed Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/install Issues related to installation, including offline/air gap and initial setup area/ux Issues related to User Experience Design kind/bug Outline of a bug - must adhere to the bug report template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. 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

4 participants