Bug 1464234 - PV size is not updated when the backing EBS volume is grown.
Summary: PV size is not updated when the backing EBS volume is grown.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 3.4.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Bradley Childs
QA Contact: Jianwei Hou
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-22 18:22 UTC by bmorriso
Modified: 2017-06-23 14:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-23 14:00:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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!


Note You need to log in before you can comment on or make changes to this bug.