Bug 1038969

Summary: DeviceCreateError: ('lvcreate failed for fedora/swap: running lvm lvcreate -L 819m -n swap fedora failed', 'fedora-swap')
Product: [Fedora] Fedora Reporter: Alexey Torkhov <atorkhov>
Component: python-blivetAssignee: Brian Lane <bcl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: amulhern, awilliam, dlehman, g.kaviyarasu, jonathan, jsedlak, kparal, mruckman, robatino, vanmeeuwen+fedora, vpodzime
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AcceptedBlocker
Fixed In Version: anaconda-20.25.15-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-13 05:33:33 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: 980656    
Attachments:
Description Flags
anaconda-tb-tuZwze
none
anaconda.log
none
ifcfg.log
none
program.log
none
storage.log none

Description Alexey Torkhov 2013-12-06 09:19:26 UTC
Description of problem:

Unable to install system with following parition layout:
vda1 /boot
vda2 LVM (encrypted)
` / fedora-root
` swap fedora-swap
vda3 LVM (encrypted)
` /var fedora00-00
` /home fedora00-01

Version-Release number of selected component (if applicable):
anaconda-20.25.14-1.fc20.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Start installer
2. Select default encrypted LVM layout
3. Decrease / size by 2G
4. Add /var
5. Add /home
6. Add new encrypted VG for /var
7. Swap /home to new VG

Actual results:
Crash

Comment 1 Alexey Torkhov 2013-12-06 09:20:18 UTC
Created attachment 833484 [details]
anaconda-tb-tuZwze

Comment 2 Alexey Torkhov 2013-12-06 09:20:39 UTC
Created attachment 833485 [details]
anaconda.log

Comment 3 Alexey Torkhov 2013-12-06 09:21:02 UTC
Created attachment 833486 [details]
ifcfg.log

Comment 4 Alexey Torkhov 2013-12-06 09:21:53 UTC
Created attachment 833487 [details]
program.log

Comment 5 Alexey Torkhov 2013-12-06 09:22:25 UTC
Created attachment 833488 [details]
storage.log

Comment 6 Alexey Torkhov 2013-12-06 09:24:57 UTC
This bug is considered as dup 1021507 by anaconda's bug reported, but submitted new one, as this does not have thinp.

Proposing this as final blocker:

The installer must be able to create and install to any workable partition layout using any file system and/or container format combination offered in a default installer configuration.

Comment 7 Adam Williamson 2013-12-06 17:22:47 UTC
04:07:10,133 INFO program: Running... lvm lvcreate -L 819m -n swap fedora
04:07:10,264 INFO program:   Rounding up size to full physical extent 820.00 MiB
04:07:10,265 INFO program:   Volume group "fedora" has insufficient free space (204 extents): 205 required.

Comment 8 Kamil Páral 2013-12-09 16:17:37 UTC
I reproduced this according to comment 0, but my report has been marked as a duplicate of bug 1021507 - see bug 1021507 comment 31.

Comment 9 Kamil Páral 2013-12-09 17:35:44 UTC
Tried to reproduce bug 1038969 once again, this time creating an _unencrypted_ second VG with /data LV. - see bug 1021507 comment 32.

Comment 10 Kamil Páral 2013-12-09 17:36:55 UTC
Sorry, bcl. Wrong button.

Comment 11 Mike Ruckman 2013-12-09 17:38:48 UTC
Discussed in 2013-12-09 Blocker Review meeting [1]. Voted as an AcceptedBlocker for violating the final criteria: "The installer must be able to create and install to any workable partition layout using any file system and/or container format combination offered in a default installer configuration." [2]

[1] http://meetbot.fedoraproject.org/fedora-blocker-review/2013-12-09/
[2] http://fedoraproject.org/wiki/Fedora_20_Final_Release_Criteria#Disk_layouts

Comment 12 Brian Lane 2013-12-10 20:14:48 UTC
Please give this updates.img a try:

http://bcl.fedorapeople.org/updates/1038969.1.img

It also fixes 2 other related (I think) issues -- creating too many luks partitions, and always decrementing the desired size when updating a mountpoint.

Comment 13 Alexey Torkhov 2013-12-10 20:46:20 UTC
(In reply to Brian C. Lane from comment #12)
> Please give this updates.img a try:

Looks like it fixes current bug and bug 1038847, not sure which bug# is about creating too many luks partitions.

But it also changes behaviour of creating new partitions - before "Encrypted" was checked for new partitions too, so if /var and /home are added they became double-encrypted. With this update it becomes only one-time encrypted by default. Probably sane thing to do, but was it intended?

Comment 14 Brian Lane 2013-12-10 22:07:12 UTC
Yes, and I'm also going to disable the encrypt checkbox when the container is already encrypted.

Comment 15 Alexey Torkhov 2013-12-11 08:22:37 UTC
Oh, this actually does not fix bug 1038847 - still crashing.

Comment 16 Vratislav Podzimek 2013-12-11 11:06:02 UTC
Please try this updates.img:
http://vpodzime.fedorapeople.org/f20_blockers_updates.img

Comment 17 Jan Sedlák 2013-12-11 12:28:54 UTC
I have tested updates.img from comment 16 and it works now.

Comment 18 Fedora Update System 2013-12-11 22:54:16 UTC
anaconda-20.25.15-1.fc20, python-blivet-0.23.9-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-blivet-0.23.9-1.fc20,anaconda-20.25.15-1.fc20

Comment 19 Kamil Páral 2013-12-12 14:51:32 UTC
Verified fixed in RC1.

Comment 20 Fedora Update System 2013-12-13 05:33:33 UTC
anaconda-20.25.15-1.fc20, python-blivet-0.23.9-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.