Bug 1245446

Summary: Adding swap partition in custom partitioning fails with 'invalid value NotImplemented for size'
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 23CC: anaconda-maint-list, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-23 06:57:48 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:
Attachments:
Description Flags
storage.log from an affected run (note: there's more stuff later when it hits #1245219) none

Description Adam Williamson 2015-07-22 06:11:48 UTC
To reproduce:

1. Start with two empty disks
2. Boot the 2015-07-17 nightly boot.iso
3. Select both disks as targets and go to custom partitioning
4. Add a 200M /boot partition
5. Attempt to add a 2GB swap partition

Result: a red bar 'Failed to add new device. Click for details.' Clicking the bar shows an error: "invalid value NotImplemented for size".

Comment 1 Adam Williamson 2015-07-22 06:13:02 UTC
Created attachment 1054597 [details]
storage.log from an affected run (note: there's more stuff later when it hits #1245219)

Comment 2 Adam Williamson 2015-07-22 06:17:26 UTC
The /boot partition isn't necessary, but the two disks *are* necessary. I can reproduce with these steps:

1. Start with two empty disks
2. Boot the 2015-07-17 nightly boot.iso
3. Select both disks as targets and go to custom partitioning
4. Attempt to add a 2GB swap partition

But not like this:

1. Start with one empty disk
2. Boot the 2015-07-17 nightly boot.iso
3. Leave the disk selected as the target and go to custom partitioning
4. Attempt to add a 2GB swap partition

Comment 3 Adam Williamson 2015-07-23 00:56:23 UTC
Something very similar happens if you do this:

1. Start with two empty disks
2. Boot the 2015-07-17 nightly boot.iso with an updates.img containing all changes to current git master for anaconda and blivet
3. Select both disks as targets and go to custom partitioning
4. Click 'create them automatically'
5. Select the / partition, change its type to RAID
6. Click Update Settings

This causes the usual 'An unknown error has occurred' dialog to pop up (not a red error bar), but with the same trace: "invalid value NotImplemented for size". I filed a libreport bug for that case: https://bugzilla.redhat.com/show_bug.cgi?id=1245854 .

Comment 4 Adam Williamson 2015-07-23 06:57:48 UTC
Yep, this turns out to have the same underlying cause as 1245854, which has better logs and info, so closing this one. I figured out the cause and have posted a fix.

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