Bug 1040716 - LVMError: pvcreate failed for /dev/md/00: running lvm pvcreate --dataalignment 1024k /dev/md/00 failed
Summary: LVMError: pvcreate failed for /dev/md/00: running lvm pvcreate --dataalignmen...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7384922cbbebf30bcfb19fa9662...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 00:44 UTC by Adam Williamson
Modified: 2015-04-14 19:07 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-14 19:07:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (548.33 KB, text/plain)
2013-12-12 00:44 UTC, Adam Williamson
no flags Details
File: anaconda.log (33.08 KB, text/plain)
2013-12-12 00:44 UTC, Adam Williamson
no flags Details
File: environ (440 bytes, text/plain)
2013-12-12 00:44 UTC, Adam Williamson
no flags Details
File: journalctl (179.58 KB, text/plain)
2013-12-12 00:44 UTC, Adam Williamson
no flags Details
File: lsblk_output (3.55 KB, text/plain)
2013-12-12 00:44 UTC, Adam Williamson
no flags Details
File: nmcli_dev_list (4.33 KB, text/plain)
2013-12-12 00:44 UTC, Adam Williamson
no flags Details
File: os_info (375 bytes, text/plain)
2013-12-12 00:44 UTC, Adam Williamson
no flags Details
File: program.log (37.11 KB, text/plain)
2013-12-12 00:44 UTC, Adam Williamson
no flags Details
File: storage.log (263.21 KB, text/plain)
2013-12-12 00:44 UTC, Adam Williamson
no flags Details
File: ifcfg.log (1.77 KB, text/plain)
2013-12-12 00:44 UTC, Adam Williamson
no flags Details
anaconda-tb for comment 16 (1.05 MB, text/plain)
2013-12-12 14:11 UTC, Alexey Torkhov
no flags Details

Description Adam Williamson 2013-12-12 00:44:04 UTC
Description of problem:
So far, my reproducer steps for this are:

Start with two blank 15GB disks.
1. Installation Destination, select both, Done
2. "Encrypt my data", "I want to review/modify", Continue
3. Enter passphrase
4. Add 500MB /boot
5. Add 12GB / : appears as 'luks-fedora-00', 'encrypt' checkbox checked
6. Click 'Modify...' for VG 'fedora', set RAID level to RAID-1, check 'encrypt', uncheck it, Save
7. Click 'Update settings'
8. Add 2GB swap, appears as 'luks-fedora-01', 'encrypt' box checked
9. Done
10. Accept changes
11. Save passphrase (again)
12. Begin installation

Crash occurs during partitioning. Of interest, if I leave out step 7 - clicking 'update settings' after setting the RAID level and checking/unchecking 'encrypt' in the VG properties - it does not crash, and creates the intended layout.

I'll see if I can simplify the reproducer at all; I'm not yet sure which is the key part.

Version-Release number of selected component:
anaconda-20.25.15-1.fc20.x86_64

The following was filed automatically by anaconda:
anaconda 20.25.15-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devicelibs/lvm.py", line 214, in pvcreate
    raise LVMError("pvcreate failed for %s: %s" % (device, msg))
  File "/usr/lib/python2.7/site-packages/blivet/formats/lvmpv.py", line 111, in create
    lvm.pvcreate(self.device)
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 473, in execute
    options=self.device.formatArgs)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 239, in processActions
    action.execute()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 308, in doIt
    self.devicetree.processActions()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 167, in turnOnFilesystems
    storage.doIt()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 142, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall)
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 192, in run
    threading.Thread.run(self, *args, **kwargs)
LVMError: pvcreate failed for /dev/md/00: running lvm pvcreate --dataalignment 1024k /dev/md/00 failed

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=20131211-prerc1-desktop-x86_64 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.11.10-301.fc20.x86_64
other involved packages: python-blivet-0.23.9-1.fc20.noarch, python-libs-2.7.5-9.fc20.x86_64
product:        Fedora
release:        Fedora release 20 (Heisenbug)
type:           anaconda
version:        20

Potential duplicate: bug 950145

Comment 1 Adam Williamson 2013-12-12 00:44:07 UTC
Created attachment 835519 [details]
File: anaconda-tb

Comment 2 Adam Williamson 2013-12-12 00:44:09 UTC
Created attachment 835520 [details]
File: anaconda.log

Comment 3 Adam Williamson 2013-12-12 00:44:10 UTC
Created attachment 835521 [details]
File: environ

Comment 4 Adam Williamson 2013-12-12 00:44:12 UTC
Created attachment 835522 [details]
File: journalctl

Comment 5 Adam Williamson 2013-12-12 00:44:13 UTC
Created attachment 835523 [details]
File: lsblk_output

Comment 6 Adam Williamson 2013-12-12 00:44:15 UTC
Created attachment 835524 [details]
File: nmcli_dev_list

Comment 7 Adam Williamson 2013-12-12 00:44:16 UTC
Created attachment 835525 [details]
File: os_info

Comment 8 Adam Williamson 2013-12-12 00:44:18 UTC
Created attachment 835526 [details]
File: program.log

Comment 9 Adam Williamson 2013-12-12 00:44:19 UTC
Created attachment 835527 [details]
File: storage.log

Comment 10 Adam Williamson 2013-12-12 00:44:20 UTC
Created attachment 835528 [details]
File: ifcfg.log

Comment 11 Adam Williamson 2013-12-12 00:53:50 UTC
OK, so it can be simplified by dropping the 'check/uncheck encrypt checkbox in VG properties' step:

1. Installation Destination, select both, Done
2. "Encrypt my data", "I want to review/modify", Continue
3. Enter passphrase
4. Add 500MB /boot
5. Add 12GB / : appears as 'luks-fedora-00', 'encrypt' checkbox checked
6. Click 'Modify...' for VG 'fedora', set RAID level to RAID-1, Save
7. Click 'Update settings'
8. Add 2GB swap, appears as 'luks-fedora-01', 'encrypt' box checked
9. Done
10. Accept changes
11. Save passphrase (again)
12. Begin installation

it doesn't seem to happen if you don't create another partition after step 7, though. if I leave the swap partition out, it doesn't crash. As already mentioned, it also doesn't crash if I create / and swap, but don't hit 'Update settings' after creating /.

Comment 12 Adam Williamson 2013-12-12 01:20:34 UTC
Note, whether it crashes or not, if I create the mount points manually this way, they are created as encrypted LVs within an unencrypted VG. If I use the 'autopart' button in custom partitioning ('create them for me'), I get an encrypted VG with unencrypted LVs. (If I do it that way - use autopart, then change the RAID level of the VG that's created - I don't hit any crashes, it works). This inconsistency I've filed as https://bugzilla.redhat.com/show_bug.cgi?id=1040720 .

Comment 13 Jóhann B. Guðmundsson 2013-12-12 13:07:06 UTC
This one looks like it fails the following blocker bug criteria hence proposing...

"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." as well as the raid criteria...

Comment 14 Adam Williamson 2013-12-12 13:10:14 UTC
I disagree, which is why I didn't propose it. you can certainly create precisely the layout I was trying to create, in several different ways. it only crashes on one specific path.

Comment 15 Jóhann B. Guðmundsson 2013-12-12 13:35:56 UTC
You can disagree about that precise criteria choosing but anaconda should not crash

Comment 16 Alexey Torkhov 2013-12-12 14:09:40 UTC
Reproducing bug 1021507 comment 37 again.

cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=Fedora-Live-KDE-x86_64-20-1 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
hashmarkername: anaconda
kernel:         3.11.10-301.fc20.x86_64
other involved packages: python-blivet-0.23.9-1.fc20.noarch, python-libs-2.7.5-9.fc20.x86_64
package:        anaconda-20.25.15-1.fc20.x86_64
packaging.log:  
product:        Fedora
reason:         LVMError: pvcreate failed for /dev/md/00: running lvm pvcreate --dataalignment 1024k /dev/md/00 failed
release:        Fedora release 20 (Heisenbug)
version:        20

Comment 17 Alexey Torkhov 2013-12-12 14:11:09 UTC
Created attachment 835813 [details]
anaconda-tb for comment 16

Comment 18 Alexey Torkhov 2013-12-12 14:41:15 UTC
Both crashes at command:

19:41:23,608 INFO program: Running... lvm pvcreate --dataalignment 1024k /dev/md/00
19:41:23,711 INFO program:   Can't open /dev/md/00 exclusively.  Mounted filesystem?
19:41:23,712 DEBUG program: Return code: 5

Comment 19 Kamil Páral 2013-12-12 15:43:44 UTC
(In reply to Adam Williamson from comment #11)
> OK, so it can be simplified by dropping the 'check/uncheck encrypt checkbox
> in VG properties' step:
> 
> 1. Installation Destination, select both, Done
> 2. "Encrypt my data", "I want to review/modify", Continue
> 3. Enter passphrase
> 4. Add 500MB /boot
> 5. Add 12GB / : appears as 'luks-fedora-00', 'encrypt' checkbox checked
> 6. Click 'Modify...' for VG 'fedora', set RAID level to RAID-1, Save
> 7. Click 'Update settings'
> 8. Add 2GB swap, appears as 'luks-fedora-01', 'encrypt' box checked
> 9. Done
> 10. Accept changes
> 11. Save passphrase (again)
> 12. Begin installation

I haven't reproduced this. I used a bit different sizes though - two 10GB drives, and 8GB / with 2GB swap.

Comment 20 Kamil Páral 2013-12-12 15:53:54 UTC
(In reply to Kamil Páral from comment #19)
> I haven't reproduced this. I used a bit different sizes though - two 10GB
> drives, and 8GB / with 2GB swap.

Tested with adamw's sizes, still no crash.

Comment 21 Kamil Páral 2013-12-12 18:02:36 UTC
Discussed at Go/No-Go meeting on 2013-12-12 [1]. This is a RejectedBlocker. This bug hasn't been reproduced and the same end result can be achieved via two other methods.

[1] http://meetbot.fedoraproject.org/fedora-meeting-2/2013-12-12/

Comment 22 Adam Williamson 2013-12-13 02:37:36 UTC
I think this is too intricate to even commonbugs if kparal can't reproduce it as described. 'It may crash if you do this very particular thing...or it may not'? meh.

Comment 23 David Shea 2015-04-14 19:07:43 UTC
Closing due to lack of reproducer.


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