Bug 1231151
| Summary: | 'Reclaim Policy' and 'Message' can't show up correctly when using 'oc describe persistentvolumes' | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | xjia <xjia> |
| Component: | oc | Assignee: | Fabiano Franz <ffranz> |
| Status: | CLOSED ERRATA | QA Contact: | Xingxing Xia <xxia> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 3.0.0 | CC: | jokerman, libra-onpremise-devel, lxia, mmccomas, tdawson, xtian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-27 09:29:23 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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 |
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: