Bug 1390879 - NFS PV is failed with Recycle policy after delete the pvc
Summary: NFS PV is failed with Recycle policy after delete the pvc
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Matthew Wong
QA Contact: Jianwei Hou
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-02 07:58 UTC by Chao Yang
Modified: 2017-03-08 18:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2016-12-14 15:33:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0066 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 17:23:26 UTC

Description Chao Yang 2016-11-02 07:58:47 UTC
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 17:43:44 UTC
PR will be merged today https://github.com/openshift/origin/pull/11731

Comment 2 Troy Dawson 2016-11-04 18:47:24 UTC
This has been merged into ose and is in OSE v3.4.0.22 or newer.

Comment 4 Chao Yang 2016-11-07 09:01:15 UTC
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.