Bug 1245446 - Adding swap partition in custom partitioning fails with 'invalid value NotImplemented for size'
Summary: Adding swap partition in custom partitioning fails with 'invalid value NotImp...
Keywords:
Status: CLOSED DUPLICATE of bug 1245854
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 23
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-22 06:11 UTC by Adam Williamson
Modified: 2015-07-23 06:57 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-07-23 06:57:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
storage.log from an affected run (note: there's more stuff later when it hits #1245219) (195.09 KB, text/plain)
2015-07-22 06:13 UTC, Adam Williamson
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1245854 0 unspecified CLOSED blivet.errors.DeviceFactoryError: invalid value NotImplemented for size 2021-02-22 00:41:40 UTC

Internal Links: 1245854

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 ***


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