Bug 1293850
Summary: | Failed to delete dynamically provisioned PV when PVC is deleted | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Chao Yang <chaoyang> |
Component: | Storage | Assignee: | Jan Safranek <jsafrane> |
Status: | CLOSED ERRATA | QA Contact: | Liang Xia <lxia> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.1.0 | CC: | aos-bugs, bchilds, jhou, jsafrane, tdawson |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-05-12 16:26:24 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
Chao Yang
2015-12-23 09:32:16 UTC
I think we hit a race here - the pod is still running (or it's being slowly deleted) at the point when volume controller deletes the volume. We need some way how to retry the volume deletion if the first attempt did not succeed. Or synchronize pod and pvc deletion. > Expected results:
> pv should be sucessfully released and deleted. The volume should also be deleted from its provider
Just to clarify the use case... The PV should be deleted (bug) but not the the actual volume & data. If you have a PV pointing at an AWS volume the PV should delete but not the physical AWS volume and data.
Thanks. Will update the test case results (In reply to Bradley Childs from comment #2) > > Expected results: > > pv should be sucessfully released and deleted. The volume should also be deleted from its provider > > Just to clarify the use case... The PV should be deleted (bug) but not the > the actual volume & data. If you have a PV pointing at an AWS volume the PV > should delete but not the physical AWS volume and data. No, dynamically created AWS EBS volumes _should_ be deleted when user deletes appropriate claim that created id. IMO that's the point of dynamic provisioning - create and _delete_ volumes on demand. (In reply to Jan Safranek from comment #4) > (In reply to Bradley Childs from comment #2) > > > Expected results: > > > pv should be sucessfully released and deleted. The volume should also be deleted from its provider > > > > Just to clarify the use case... The PV should be deleted (bug) but not the > > the actual volume & data. If you have a PV pointing at an AWS volume the PV > > should delete but not the physical AWS volume and data. > > No, dynamically created AWS EBS volumes _should_ be deleted when user > deletes appropriate claim that created id. IMO that's the point of dynamic > provisioning - create and _delete_ volumes on demand. Yes, I think so. When I was testing cinder for this feature, if pvc is deleted, the pv will be deleted too, and the physical cinder volume will be deleted from openstack as well. Yes this was my mistake- the volume is deleted when it's not set to retain. The default / unspecified value should be to retain though. Reassigning to Jan for EBS testing. Kubernetes PR: https://github.com/kubernetes/kubernetes/pull/19365 Origin PR merged Verification is passed on oc v1.1.2-274-g6187dc3 kubernetes v1.2.0-origin Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2016:1064 |