Bug 1663147
Summary: | [3.11] Recycler refuses to recycle PVs when a pod has a different PV using the same PVC | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Tomas Smetana <tsmetana> | |
Component: | Storage | Assignee: | Tomas Smetana <tsmetana> | |
Status: | CLOSED ERRATA | QA Contact: | Chao Yang <chaoyang> | |
Severity: | low | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 3.7.0 | CC: | aos-bugs, aos-storage-staff, bchilds, lxia | |
Target Milestone: | --- | |||
Target Release: | 3.11.z | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | No Doc Update | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | 1663145 | |||
: | 1663149 (view as bug list) | Environment: | ||
Last Closed: | 2019-01-30 15:19:31 UTC | Type: | --- | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 1663149 | |||
Bug Blocks: | 1663145 |
Comment 1
Tomas Smetana
2019-01-03 11:36:49 UTC
This is verified on oc v3.11.66 kubernetes v1.11.0+d4cacc0 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://ip-172-18-12-68.ec2.internal:8443 openshift v3.11.66 kubernetes v1.11.0+d4cacc0 1.Create two nfs recyled pv [root@ip-172-18-12-68 ~]# oc get pv NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE nfs-1 5Gi RWX Recycle Available 2m nfs-2 5Gi RWX Recycle Available 2.Create a pvc nfsc-1, and bound to one pv nfs-1 [root@ip-172-18-12-68 ~]# oc get pv NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE nfs-1 5Gi RWX Recycle Bound s4l93/nfsc-1 9m nfs-2 5Gi RWX Recycle Available 10m 3.Create pod nfs-1, using pvc nfsc-1 4.Prepare the pvc yaml file, make the pvc nfs-1 bound to pv nfs-2 { "apiVersion": "v1", "kind": "PersistentVolumeClaim", "metadata": { "name": "nfsc-1" }, "spec": { "volumeName": "nfs-2", "accessModes": [ "ReadWriteMany" ], "resources": { "requests": { "storage": "5Gi" } } } } ~ 5.Re-create pvc nfsc-1 [root@ip-172-18-12-68 ~]# ./test.sh pod "nfs-1" deleted persistentvolumeclaim "nfsc-1" deleted persistentvolumeclaim/nfsc-1 created pod/nfs-1 created 6.Check pv status [root@ip-172-18-12-68 ~]# oc get pv NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE nfs-1 5Gi RWX Recycle Available 12m nfs-2 5Gi RWX Recycle Bound s4l93/nfsc-1 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/RHBA-2019:0096 |