Bug 1654695

Summary: RHEL 7 anaconda installer allow max swap size of 128GB at time of installation using Graphical mode and kickstart mode
Product: Red Hat Enterprise Linux 7 Reporter: Parikshit Khedekar <pkhedeka>
Component: python-blivetAssignee: Blivet Maintenance Team <blivet-maint-list>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.1CC: jcastran, jkonecny, jmagrini
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1656485 (view as bug list) Environment:
Last Closed: 2020-01-15 16:39:49 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: 1656485    
Attachments:
Description Flags
The swapsize.tar.gz has Kickstart logs collected from the test system. none

Description Parikshit Khedekar 2018-11-29 12:54:42 UTC
Created attachment 1509801 [details]
The swapsize.tar.gz has Kickstart logs collected from the test system.

Description of problem:

The installer will take the max size as 128 GB for a swap partition.

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

Any Red Hat Enterprise Linux 7 Minor release.

How reproducible:

-->> Boot with ISO of Red Hat Enterprise Linux 7,

-->> Manual Partitioning

-->> Create a swap with more that 128 GB 

-->> The size will be loaded as default to 128 Gb

Steps to Reproduce:
1. Using graphical install with declaring a swap more than 128 Gb
2. Kickstart below will reproduce the issue,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
install
text
keyboard --vckeymap=se --xlayouts='se'
rootpw --plaintext anaconda
lang en_US.UTF-8
timezone --utc Europe/Stockholm

# Network information

# System bootloader configuration
bootloader --location=mbr --append="rhgb quiet crashkernel=auto"

clearpart --all --initlabel

part  /boot     --asprimary  --size=1024
part  /         --asprimary  --size=20000
part  /var 	--asprimary  --size=15000
part  /home                  --size=20000
part  /opt                   --size=5168
part  swap                   --size=150000

# Accept Eula
eula --agreed

%packages
@base
%end
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Actual results:

The installer will take default value of 128Gb for swap with below message,

12:40:25,094 DEBUG anaconda: new disk order: []
12:40:25,736 ERR anaconda: storage configuration failed: partition is too large for swap formatting (allowable size is 0 B to 128 GiB)
12:40:26,703 INFO anaconda: fs space: 0 B  needed: 2861.02 MiB



Expected results:

It should allow creating a swap of the desired size for the installation if we provide a swap size.

Additional info:


Adding kickstart logs from test.

Comment 2 Jiri Konecny 2018-11-30 09:08:06 UTC
This limit is set by blivet our storage library based on the bug 744129.

It is set by 

'_maxSize = Size("128 GiB")' 

in swap.py source file.


Switching components.

Comment 4 Jon Magrini 2020-01-15 16:39:49 UTC

*** This bug has been marked as a duplicate of bug 1444232 ***