Bug 1703521
| Summary: | Deleted projects are stuck in "Terminating" state, even if there are no associated resources with them | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Udi Kalifon <ukalifon> |
| Component: | openshift-apiserver | Assignee: | Lukasz Szaszkiewicz <lszaszki> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Xingxing Xia <xxia> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.1.0 | CC: | aos-bugs, eparis, gblomqui, jokerman, mfojtik, mmccomas, sttts |
| Target Milestone: | --- | ||
| Target Release: | 4.3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-09-05 09:06:46 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Udi Kalifon
2019-04-26 15:56:34 UTC
can you send `oc get -o yaml namespace $NAMESPACE` oc get -o yaml namespace blah
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/description: ""
openshift.io/display-name: ""
openshift.io/requester: kube:admin
openshift.io/sa.scc.mcs: s0:c24,c4
openshift.io/sa.scc.supplemental-groups: 1000560000/10000
openshift.io/sa.scc.uid-range: 1000560000/10000
creationTimestamp: "2019-04-26T13:39:55Z"
deletionTimestamp: "2019-04-26T13:40:53Z"
name: blah
resourceVersion: "1438747"
selfLink: /api/v1/namespaces/blah
uid: c6ad3776-6828-11e9-98d6-525400cdbd46
spec:
finalizers:
- kubernetes
status:
phase: Terminating
I'm unable to reproduce the issue with the following version:
oc version
Client Version: version.Info{Major:"4", Minor:"2+", GitVersion:"v4.2.0-201908071853+7b9a22b-dirty", GitCommit:"7b9a22b", GitTreeState:"dirty", BuildDate:"2019-08-07T23:34:07Z", GoVersion:"go1.12.6", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.0+ea1bbc7", GitCommit:"ea1bbc7", GitTreeState:"clean", BuildDate:"2019-08-16T00:00:58Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
OpenShift Version: 4.2.0-0.ci-2019-08-16-072837
I did:
1. oc new-project blah
Already on project "blah" on server "https://api.ci-ln-0ygjbd2-d5d6b.origin-ci-int-aws.dev.rhcloud.com:6443".
You can add applications to this project with the 'new-app' command. For example, try:
oc new-app django-psql-example
to build a new example application in Python. Or use kubectl to deploy a simple Kubernetes application:
kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node
2.oc delete project blah
project.project.openshift.io "blah" deleted
3.oc get -o yaml namespace blah
Error from server (NotFound): namespaces "blah" not found
I'm going to try with "4.1"
I'm unable to reproduce the issue with "4.1" version, I did:
1. oc version
Client Version: version.Info{Major:"4", Minor:"1+", GitVersion:"v4.1.0+89b3000-215-dirty", GitCommit:"89b3000", GitTreeState:"dirty", BuildDate:"2019-08-13T01:49:54Z", GoVersion:"go1.11.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.4+89b3000", GitCommit:"89b3000", GitTreeState:"clean", BuildDate:"2019-08-13T01:46:32Z", GoVersion:"go1.11.9", Compiler:"gc", Platform:"linux/amd64"}
2.oc new-project blah
Now using project "blah" on server "https://api.polynomial-po.devcluster.openshift.com:6443".
You can add applications to this project with the 'new-app' command. For example, try:
oc new-app django-psql-example
to build a new example application in Python. Or use kubectl to deploy a simple Kubernetes application:
kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node
3.oc delete project blah
project.project.openshift.io "blah" deleted
4. oc get -o yaml namespace blah
Error from server (NotFound): namespaces "blah" not found
@Udi, could you increase the verbosity of kube controller manager (-v=5) and then run the steps you mentioned? I'd like to examine the logs from the namespace controller. Udi, see comment #9 This is no longer an issue in current openshift versions. Closing. |