Red Hat Bugzilla – Bug 1298846
Some resources like pvc or template cannot be deleted via oc delete all --all
Last modified: 2016-08-04 09:54:38 EDT
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):
Steps to Reproduce:
1. Create a project
2. Create resources contained pvc
3. Delete all via oc delete all --all
pvc is not deleted.
pvc should also be deleted along with other resources.
Same for template
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".
Issue exist when doing "oc get all". pvc and template can not be listed by this way.
This is not a bug, per this discussion  and this explanation by David Eads , PVCs / templates not showing up and not being deleted by `oc get all --all` are intended behavior.