Bug 1269124

Summary: anaconda-ks.cfg uses logvol incorrectly
Product: Red Hat Enterprise Linux 7 Reporter: Tristan hoar <tris.hoar>
Component: python-blivetAssignee: Blivet Maintenance Team <blivet-maint-list>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: jason.gerfen, jstodola, jvavra, lmiksik, mbanas, sbueno, tris.hoar
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-blivet-0.61.15.57-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-03 23:51:09 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 Tristan hoar 2015-10-06 11:50:44 UTC
Description of problem:
If you kickstart a RHEL7 build using the following command for a volume:
logvol / --fstype="xfs" --name=lv_root --vgname=vg_master --percent=75
the anaconda-ks.cfg at the end has --percent and --size commands for that volume. --percent and --size are mutually exclusive and cant be used together.

example output:
logvol /  --fstype="xfs" --percent=75 --size=24192 --name=lv_root --vgname=vg_master

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


How reproducible:
Always

Steps to Reproduce:
1.Kickstart build using following command for root volume
logvol / --fstype="xfs" --name=lv_root --vgname=vg_master --percent=75

2. Check anaconda-ks.cfg once build is complete 
3.

Actual results:
logvol /  --fstype="xfs" --percent=75 --size=24192 --name=lv_root --vgname=vg_master


Expected results:
Either
logvol /  --fstype="xfs" --percent=75 --name=lv_root --vgname=vg_master
or
logvol /  --fstype="xfs" --size=24192 --name=lv_root --vgname=vg_master


Additional info:

Comment 2 Jason 2016-03-24 19:54:35 UTC
I can confirm this as changed in the minor release RHEL 6.7.

Comment 3 David Lehman 2016-09-06 16:32:12 UTC
https://github.com/rhinstaller/blivet/pull/501

Comment 5 Jakub Vavra 2016-09-13 09:04:39 UTC
Reproduced on released RHEL 7.2, fix not present in Snapshot.3 (RHEL-7.3-20160908.3).

Comment 9 errata-xmlrpc 2016-11-03 23:51:09 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://rhn.redhat.com/errata/RHBA-2016-2168.html