Bug 1663149

Summary: [4.1] 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: StorageAssignee: Tomas Smetana <tsmetana>
Status: CLOSED ERRATA QA Contact: Wenqi He <wehe>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.7.0CC: aos-bugs, aos-storage-staff, bchilds, lxia
Target Milestone: ---   
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1663147 Environment:
Last Closed: 2019-06-04 10:41:28 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:    
Bug Blocks: 1663147    

Comment 5 Wenqi He 2019-04-15 10:16:37 UTC
The function of recycler is working:
But I found it use an upstream image of recycler

$ oc describe pv nfs
Name:            nfs
Labels:          <none>
Annotations:     pv.kubernetes.io/bound-by-controller: yes
Finalizers:      [kubernetes.io/pv-protection]
StorageClass:    
Status:          Bound
Claim:           nfs/nfsc
Reclaim Policy:  Recycle
Access Modes:    RWX
VolumeMode:      Filesystem
Capacity:        1Gi
Node Affinity:   <none>
Message:         
Source:
    Type:      NFS (an NFS mount that lasts the lifetime of a pod)
    Server:    172.30.122.248
    Path:      /
    ReadOnly:  false
Events:
  Type    Reason          Age   From                         Message
  ----    ------          ----  ----                         -------
  Normal  RecyclerPod     55s   persistentvolume-controller  Recycler pod: Successfully assigned default/recycler-for-nfs to compute-0
  Normal  RecyclerPod     47s   persistentvolume-controller  Recycler pod: Pulling image "busybox:1.27"
  Normal  RecyclerPod     41s   persistentvolume-controller  Recycler pod: Successfully pulled image "busybox:1.27"
  Normal  RecyclerPod     41s   persistentvolume-controller  Recycler pod: Created container pv-recycler
  Normal  RecyclerPod     41s   persistentvolume-controller  Recycler pod: Started container pv-recycler
  Normal  VolumeRecycled  41s   persistentvolume-controller  Volume recycled

Should I open a new bug or it will be tacked on this one? Or we should say it is fixed?

Comment 6 Tomas Smetana 2019-04-15 12:33:19 UTC
Please open a new bug -- the wrong recycler image needs to be fixed in a different place (if at all). This bug is about something else.

Comment 7 Wenqi He 2019-04-16 02:00:00 UTC
Thanks, Tomas! Verified based on comment#5

Comment 9 errata-xmlrpc 2019-06-04 10:41:28 UTC
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:0758