Bug 1364975

Summary: Get PVC show capacity is 0 and access mode as empty.
Product: OpenShift Container Platform Reporter: Liang Xia <lxia>
Component: StorageAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact: Liang Xia <lxia>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: aos-bugs, bchilds, jhou, jsafrane, tdawson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
this bug was not in any public OpenShift release.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-27 09:42:44 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:

Description Liang Xia 2016-08-08 10:04:45 UTC
Description of problem:
Run comand "oc get pvc", the output show capacity is 0,
and access mode is empty.
While command "oc get pvc -o yaml/json" show the correct value.

This is address in https://trello.com/c/B1K0kBKG

Version-Release number of selected component (if applicable):
openshift v3.3.0.16
kubernetes v1.3.0+507d3a7
etcd 2.3.0+git

How reproducible:
Always

Steps to Reproduce:
1.Create a PVC.
oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/persistent-volumes/nfs/auto/pvc.json
oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/persistent-volumes/misc/pvc.json
2.Run command "oc get pvc"
3.Run command "oc get pvc -o yaml/json"

Actual results:
In step 2, access mode is empty, capacity is 0.
In step 3, correct value show.

Expected results:
Step 2 show the correct value.

Additional info:
# oc get pvc --all-namespaces
NAMESPACE   NAME                 STATUS    VOLUME                                     CAPACITY   ACCESSMODES   AGE
5ajid       dynamic-pvc1-5ajid   Bound     pvc-c11dfda3-5d48-11e6-877a-0e3642f098ed   0                        15m
5ajid       dynamic-pvc2-5ajid   Bound     pvc-c250c257-5d48-11e6-877a-0e3642f098ed   0                        15m
5ajid       dynamic-pvc3-5ajid   Bound     pvc-c374f9dd-5d48-11e6-877a-0e3642f098ed   0                        15m
default     nfsc                 Pending   nfs                                        0                        10s

Comment 1 Jan Safranek 2016-08-08 13:38:20 UTC
Needs https://github.com/kubernetes/kubernetes/pull/29982, backporting shortly

Comment 2 Jan Safranek 2016-08-08 13:47:52 UTC
Filled https://github.com/openshift/origin/pull/10268

Comment 3 Troy Dawson 2016-08-18 20:33:22 UTC
This has been merged into ose and is in OSE v3.3.0.22 or newer.

Comment 5 Liang Xia 2016-08-19 02:10:21 UTC
Verified the issue has been fixed.

# oc get pvc --all-namespaces
NAMESPACE   NAME                 STATUS    VOLUME                                     CAPACITY   ACCESSMODES   AGE
tcblq       dynamic-pvc1-tcblq   Bound     pvc-d427dd9e-65b0-11e6-9c32-0e01a0b3d827   1Gi        RWO           6m
tcblq       dynamic-pvc2-tcblq   Bound pvc-d7edb345-65b0-11e6-9c32-0e01a0b3d827   2Gi        RWX           6m
tcblq       dynamic-pvc3-tcblq   Bound   pvc-da47a9e0-65b0-11e6-9c32-0e01a0b3d827   3Gi        ROX           6m

# openshift version
openshift v3.3.0.22
kubernetes v1.3.0+507d3a7
etcd 2.3.0+git

Comment 7 errata-xmlrpc 2016-09-27 09:42:44 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-2016:1933