Description of problem: After creating a persistent volume, check the persistent volume information. 'Reclaim Policy' and 'Message' can't show up correctly Version-Release number of selected component (if applicable): oc v0.6.0.1-38-g0e02a6b kubernetes v0.17.1-804-g496be63 How reproducible: always Steps to Reproduce: 1. Create a persistent volume persistent-volume.json: { "apiVersion": "v1", "kind": "PersistentVolume", "metadata": { "name": "pv0001" }, "spec": { "capacity": { "storage": "5Gi" }, "accessModes": [ "ReadWriteMany" ], "nfs": { "path": "/var/export/vol1", "server": "master.cluster.local" } } } [root@master beta4]# oc create -f persistent-volume.json persistentvolumes/pv0001 2. execute 'oc describe persistentvolumes/pv0001' Actual results: [root@master beta4]# oc describe persistentvolumes/pv0001 Name: pv0001 Labels: <none> Status: Available Claim: Reclaim Policy: %!d(api.PersistentVolumeReclaimPolicy=Retain) Message: %!d(string=) Expected results: 'Reclaim Policy' and 'Message' should show up correctly. Additional info:
Fixed in master.
Tested with oc v3.3.0.2, per steps in comment 0. Now the result is: $ oc describe persistentvolumes/pv0001 --config=vm2/admin.kubeconfig Name: pv0001 Labels: <none> Status: Failed Claim: xxia-proj/mypvc Reclaim Policy: Retain Access Modes: RWO Capacity: 5Gi Message: Recycling error: Pod was active on the node longer than specified deadline Source: Type: NFS (an NFS mount that lasts the lifetime of a pod) Server: <nfs server> Path: /invalid/path ReadOnly: false 'Reclaim Policy' and 'Message' display well.
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-2016:1933