Bug 1641696

Summary: Deletion of Project stuck in Terminating phase
Product: OpenShift Container Platform Reporter: ikurniaw
Component: ocAssignee: Juan Vallejo <jvallejo>
oc sub component: oc QA Contact: Xingxing Xia <xxia>
Status: CLOSED NOTABUG Docs Contact:
Severity: low    
Priority: medium CC: aos-bugs, deads, emahoney, hgomes, ikurniaw, jokerman, mfojtik, mmccomas, rekhan
Version: 3.11.0Flags: ikurniaw: needinfo-
ikurniaw: needinfo-
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-23 12:07:13 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:
Attachments:
Description Flags
Master-api.log
none
Master-api-2.log
none
event-log none

Description ikurniaw 2018-10-22 14:26:24 UTC
Description of problem:
I create new project in OCP 3.11, and when I want to delete it (oc delete project test1), it's stuck in terminating state

Version-Release number of selected component (if applicable):
3.11.16

How reproducible:
I deploy new OCP cluster, did the same things, the condition also same

Steps to Reproduce:
1. Install new OCP Cluster
2. After completion, try to create new project
3. Delete the newly create project

Actual results:
Deletion process is stuck in Terminating

Expected results:
Deletion process is successfull, the newly created project should be deleted

Additional info:
The status : 
[root@test ~]# oc get project
NAME                    DISPLAY NAME   STATUS
default                                Active
kube-public                            Active
kube-service-catalog                   Active
kube-system                            Active
management-infra                       Active
openshift                              Active
openshift-console                      Active
openshift-infra                        Active
openshift-logging                      Active
openshift-monitoring                   Active
openshift-node                         Active
openshift-sdn                          Active
openshift-web-console                  Active
test1                                  Terminating
test2                                  Terminating
test3                                  Terminating

Comment 1 Juan Vallejo 2018-10-22 17:26:50 UTC
Is it stuck in "Terminating" indefinitely? Does the project eventually get removed? 

`oc delete` will finalize all resources in a project before that project can actually be deleted. You can check to see if there are any resources still being finalized by seeing if they are present in the output of `oc get all --all -n <PROJECT_NAME>`

Further, I'll need the output of `oc get events`, as well as your api server (master node) logs.

Comment 2 ikurniaw 2018-10-23 01:21:49 UTC
Created attachment 1496551 [details]
Master-api.log

Comment 3 ikurniaw 2018-10-23 01:22:56 UTC
Created attachment 1496552 [details]
Master-api-2.log

Comment 4 ikurniaw 2018-10-23 01:23:47 UTC
Created attachment 1496553 [details]
event-log

Comment 5 ikurniaw 2018-10-23 12:06:55 UTC
Hi Juan,

Sorry, this one is not a bug. I already can manage to find the root cause. I will close this bug ticket.
Thanks for your help.

Regards,
Indra