Bug 1787624

Summary: [RHEL7][RFE]growpart fails to resize a root partition on LVM
Product: Red Hat Enterprise Linux 7 Reporter: Ryan Kimbrell <ryan.e.kimbrell>
Component: cloud-utils-growpartAssignee: Eduardo Otubo <eterrell>
Status: CLOSED DEFERRED QA Contact: Huijuan Zhao <huzhao>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.7CC: eterrell, huzhao, linl, litian, ribarry, xiachen, yacao, yuxisun
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1810878 (view as bug list) Environment:
Last Closed: 2020-06-22 11:49:34 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:
Bug Depends On:    
Bug Blocks: 1810878    

Description Ryan Kimbrell 2020-01-03 17:36:06 UTC
Description of problem: cloud-utils-growpart fails to resize a root partition on LVM.


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


How reproducible: Always


Steps to Reproduce:
1. Install cloud-utils-growpart in a VM image.
2. Create a new VM from the image with a drive larger than the original.
3. Boot the VM and allow cloud-init to run.

Actual results:
Root drive (/) is not resized.


Expected results:
Root (/) should take up the remaining space of the new, larger drive.


Additional info:
/var/log/cloud-init.log reports:

cc_growpart.py[DEBUG]: '/' SKIPPED: device_part_info(/dev/mapper/vg-lv_root) failed: /dev/mapper/vg-lv_root not a partition

Resizing / on LVM worked in RHEL 7.5, but now fails in RHEL 7.7. I have not tried RHEL 7.6.

Comment 2 Ryan Kimbrell 2020-01-03 18:15:44 UTC
I just tried growing the root partition on RHEL 7.5 again and I receive the same error. Now I am unsure how I got this to work on RHEL 7.5 six months.

Comment 9 Rick Barry 2020-06-22 11:49:34 UTC
It's too late to add this capability to RHEL 7.9 and RHEL 7 in general is in maintenance support phase. We'll look at this in RHEL-8 (refer to bug 1810878).