Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1390879 - NFS PV is failed with Recycle policy after delete the pvc
NFS PV is failed with Recycle policy after delete the pvc
Status: CLOSED CURRENTRELEASE
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage (Show other bugs)
3.4.0
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Matthew Wong
Jianwei Hou
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-11-02 03:58 EDT by chaoyang
Modified: 2017-03-08 13 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-12-14 10:33:52 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0066 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 12:23:26 EST

  None (edit)
Description chaoyang 2016-11-02 03:58:47 EDT
Description of problem:
NFS PV is failed with Recycle policy after delete the pvc

Version-Release number of selected component (if applicable):
openshift v3.4.0.18+ada983f
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0


How reproducible:
Always

Steps to Reproduce:
1.Create a nfs server
2.Create a pv 
{
  "apiVersion": "v1",
  "kind": "PersistentVolume",
  "metadata": {
    "name": "nfs1",
    "labels": {
      "usedFor": "tc522215"
    }
  },
  "spec": {
    "capacity": {
        "storage": "5Gi"
    },
    "accessModes": [ "ReadWriteMany" ],
    "nfs": {
        "path": "/",
        "server": "172.30.208.33"
    },
    "persistentVolumeReclaimPolicy": "Recycle"
  }
}

3.Create a pvc
oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/persistent-volumes/nfs/claim-rwx.json
4.Check pv and pvc status
pv and pvc is bound
5.Delete pvc
6. Check pv status 

Actual results:
PV is failed

Expected results:
PV is available

Additional info:
oc describe pv nfs1
Name:		nfs1
Labels:		usedFor=tc522215
StorageClass:	
Status:		Failed
Claim:		default/nfsc
Reclaim Policy:	Recycle
Access Modes:	RWX
Capacity:	5Gi
Message:	Recycler failed: User "system:serviceaccount:openshift-infra:pv-binder-controller" cannot watch events in
project "openshift-infra"
Source:
    Type:	NFS (an NFS mount that lasts the lifetime of a pod)
    Server:	172.30.208.33
    Path:	/
    ReadOnly:	false
Events:
  FirstSeen	LastSeen	Count	From				SubobjectPath	Type		Reason			Message
  ---------	--------	-----	----				-------------	--------	------			-------
  11s		11s		1	{persistentvolume-controller }			Warning		VolumeFailedRecycle	Recycler failed: User
"system:serviceaccount:openshift-infra:pv-binder-controller" cannot watch events in project "openshift-infra"
Comment 1 Matthew Wong 2016-11-02 13:43:44 EDT
PR will be merged today https://github.com/openshift/origin/pull/11731
Comment 2 Troy Dawson 2016-11-04 14:47:24 EDT
This has been merged into ose and is in OSE v3.4.0.22 or newer.
Comment 4 chaoyang 2016-11-07 04:01:15 EST
This is passed on the
openshift v3.4.0.22+5c56720
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0

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