Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1464234

Summary: PV size is not updated when the backing EBS volume is grown.
Product: OpenShift Container Platform Reporter: bmorriso
Component: StorageAssignee: Bradley Childs <bchilds>
Status: CLOSED NOTABUG QA Contact: Jianwei Hou <jhou>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4.1CC: aos-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-23 14:00:11 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 bmorriso 2017-06-22 18:22:25 UTC
Description of problem:

We have had a few instances where we have filled up a PV and wanted to grow it instead of creating a new larger PV and copying data off of the existing smaller one.

To do this, I resized the underlying EBS volume to a larger size, and then I "oc rsh" into the pod where the PV is mounted and run "resize2fs <mountpoint of the PV>" . This works fine and the pod can now access the additional storage. However, OpenShift is unaware that the volume has changed size and an "oc get pvc <name of PVC>" returns the size of the PV when it was first created, not its current size. 

It would be helpful for the reported PV size to be updated when the underlying volume changes size, especially since those values can have an impact on any clusterresourcequotas limiting requests.storage that may be in place on a cluster. 

Version-Release number of selected component (if applicable):

oc v3.4.1.18
kubernetes v1.4.0+776c994


How reproducible:
always

Steps to Reproduce:
1. 
2.
3.

Actual results:


Expected results:

Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

StorageClass Dump (if StorageClass used by PV/PVC):

Additional info:

Comment 1 Bradley Childs 2017-06-22 18:38:01 UTC
The behavior reported is expected.  We have an RFE to change this here: https://trello.com/c/WC1urO9c/138-5-create-design-proposal-in-order-to-provide-a-means-to-increase-the-storage-capacity-of-a-pv-openshift-onlineops-rfe-resize

And we would LOVE more specific use cases for the RFE. Do you have access to trello such that you could leave comments on the card directly? If so i'll close out the bug, if not i'll leave it open (but low priority so it doesn't block)..

Comment 2 bmorriso 2017-06-22 19:08:52 UTC
Bradley, 

Thanks for your response. I do have access to that trello card. I will add our use case there. Thanks!