Bug 1298846 - Some resources like pvc or template cannot be deleted via oc delete all --all
Summary: Some resources like pvc or template cannot be deleted via oc delete all --all
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 3.x
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Juan Vallejo
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-15 09:20 UTC by Wenjing Zheng
Modified: 2016-08-04 13:54 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-04 13:54:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Wenjing Zheng 2016-01-15 09:20:41 UTC
Description of problem:
Some resources like pvc or template cannot be deleted via oc delete all --all:
[root@ip-172-18-15-30 ~]# oc process -f https://raw.githubusercontent.com/openshift/mysql/master/5.5/examples/replica/mysql_replica.json | oc create -f -
persistentvolumeclaim "mysql-master" created
service "mysql-master" created
service "mysql-slave" created
deploymentconfig "mysql-master" created
deploymentconfig "mysql-slave" created

[root@ip-172-18-15-30 ~]# oc delete all --all
deploymentconfig "mysql-master" deleted
deploymentconfig "mysql-slave" deleted
service "mysql-master" deleted
service "mysql-slave" deleted
pod "mysql-slave-1-03e3c" deleted

Version-Release number of selected component (if applicable):
oc v1.1-793-gfa7cfe6
kubernetes v1.1.0-origin-1107-g4c8e6f4

How reproducible:
always

Steps to Reproduce:
1. Create a project
2. Create resources contained pvc
3. Delete all via oc delete all --all

Actual results:
pvc is not deleted.

Expected results:
pvc should also be deleted along with other resources.

Additional info:
Same for template

Comment 1 Wenjing Zheng 2016-01-15 09:25:34 UTC
According to the output of "oc status", all seems mean everything:
list everything with 'oc get all'

However, "oc get all" cannot list pvc or template either like "oc delete all". There is no define in "oc delete" help page, it's better to define what resources are included in this "all".

Comment 2 Xia Zhao 2016-04-12 10:03:53 UTC
Issue exist when doing "oc get all". pvc and template can not be listed by this way.

Comment 3 Juan Vallejo 2016-08-04 13:54:38 UTC
This is not a bug, per this discussion [1] and this explanation by David Eads [2], PVCs / templates not showing up and not being deleted by `oc get all --all` are intended behavior.

[1] https://github.com/kubernetes/kubernetes/pull/28955
[2] https://github.com/openshift/origin/issues/10185#issuecomment-237548071


Note You need to log in before you can comment on or make changes to this bug.