-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Deleting projects is leaving projects on zombie state #18125
Comments
Does it only reproducible when you removes project via UI? In other words, would it go to a zombie state if you remove it from CLI ( |
I checked with OC command and the result is the same as the UI; Do you know what is the cause of this issue? |
@gbaufake No, I don't. I hope that @juanvallejo knows or at least could know who knows :) Meanwhile, did you check logs? Is there something that could be related to the issue? |
Was able to reproduce using a 3.9 client against a 3.9 cluster.
The project is finally deleted after a minute or so, and no longer appears in the output of @gbaufake I suspect that maybe one or more resources that are created as part of deploying an application in your project are taking a bit longer than normal to be deleted (or maybe there are a lot of resources to delete in the first place). Since all resources belonging to a project must be deleted before the project itself can be deleted, the project will continue to exist until everything in it is gone. However since the project has been marked for deletion already (when you deleted it through the webconsole), attempting to delete it a second time (as seen in my example above), will render the Can you confirm that you are no longer able to list the deleted project (through |
@juanvallejo Projects can be listed with oc |
"oc get all" returns "No resources found." for the "terminating" state projects. |
@liggitt service atomic-openshift-master-controllers status -l -f would do the work? |
@ironcladlou since you're the GC expert, any ideas what might be stuck when removing a project in a 3.7 version? |
The controller logs already requested should help reveal the problem. |
Not the original poster, but we are having the same problem. The controller logs obtained via
|
Some Logs from https://paste.fedoraproject.org/paste/QgJ3S1QTiGRVvhREEEnoDQ |
@gbaufake if you have an API group that is unresponsive (as you do), the namespace controller cannot guarantee it has cleaned up all the resources in the namespace. It is expected that the namespace will remain in Terminating state until the controller can ensure it has discovered and removed all the resources in that namespace. |
@liggitt Is there a way to restart API group specifically? |
It's the problem of the 'Service Catalog' API group under the |
Your log shows there is a certificate problem of the |
Seems like the cert issue is related to #17952. From https://bugzilla.redhat.com/show_bug.cgi?id=1525014#c14 one possible solution was to re-create the service catalog. |
@soltysh Using this workaround that you mentioned may lead to openshift/openshift-ansible#6572? |
After correcting the certs, I brought a new cluster up
and still faced the same problem on deleting projects. I used @soltysh workaround The only problem is the serviceBinding which is staying behind.
Also I tried to delete the first serviceBinding with force=true
On controller-manager I saw this log.
Also for the other serviceBinding (
|
This looks like a problem that @openshift/team-service-catalog should look into |
Looks similar to https://bugzilla.redhat.com/show_bug.cgi?id=1535902 |
"Forbidden: currentOperation must not be present when reconciledGeneration and generation are equal" looks to be the same issue that is causing https://bugzilla.redhat.com/show_bug.cgi?id=1535902 (try to delete an instance or binding while it is being provisioned async). |
fixed in 3.9 via upstream kubernetes-retired/service-catalog#1708 and re-vendored into OpenShift with #18633 |
I'm seeing the same thing
The project is denoted as
in the web console. |
I'm seeing this in Minishift 3.11 |
This is still an issue on some 3.11 clusters. It's because of the finalizer 'kubernetes' not being removed from the project:
I cleared up 1000's of projects by following these steps:
4.Run this script to remove finalizer from running config:
Terminating projects should be gone. |
We too got hit by this today. Quite stumped until we found this post.
|
Spoke too soon... our team tried reusing that project name today and it immediately went back into the same FWIW, it is almost exactly the same issue reported here: https://bugzilla.redhat.com/show_bug.cgi?id=1507440#c45 Right down to it being a persistent Jenkins
I have now read a number of reports that indicate the 'fix' from @pyates86 above will just hide the issue for you, but not resolve it. |
The cleanup procedure from @pyates86 works fine with minishift
|
for OCP 4.1 working with |
@vtlrazin Thanks your comment helped when the original suggestion was giving me |
Similar issue and workaround described at https://access.redhat.com/solutions/4165791. |
FYI, that issue is not accessible. I only have a redhat developer account. :/ Thanks! |
Someone made a script to help with this, using the solution mentioned by @pyates86 above. |
Can I know How I can get access to this link. Even I'm facing the same issues with one of my project in 3.11 cluster Thanks! |
I am also facing same issue.
|
A solution is already in this thread. |
If Any one is still facing any issue. pass your namespace as argument to script. |
Corrected 'cleanprojectopenshift.sh' URL for sarvjeetrajvansh formalization Thanks for posting it! |
Here the instructions from @pyates86 updated (pay attention on step 5): This is still an issue on some 3.11 clusters. It's because of the finalizer 'kubernetes' not being removed from the project: finalizers:
I cleared up 1000's of projects by following these steps:
Terminating projects should be gone. |
After deleting projects via openshift UI, the project is not being deleted. Trying via oc command generates:
Error from server (Conflict): Operation cannot be fulfilled on namespaces "istio-system": The system is ensuring all content is removed from this namespace. Upon completion, this namespace will automatically be purged by the system
Version
oc v3.7.23
kubernetes v1.7.6+a08f5eeb62
features: Basic-Auth GSSAPI Kerberos SPNEGO
openshift v3.7.18
kubernetes v1.7.6+a08f5eeb62
Steps To Reproduce
Current Result
Expected Result
Additional Information
Screenshots
The text was updated successfully, but these errors were encountered: