Bug 1170785

Summary: LVMError: pvcreate failed for /dev/vda2: running lvm pvcreate --dataalignment 1024k /dev/vda2 --config devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] filter=["r|/vdb1$|","r|/vdb2$|","r|/vdb3$|","r|/vdb$|"] } failed
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, awilliam, g.kaviyarasu, jonathan, robatino, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9459138f9e835628256f76b32a24325f5a0b6bca2489aa23356bb13cfbbb6072
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-06 19:17:39 UTC Type: ---
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: 1043121    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: journalctl
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: ifcfg.log
none
File: packaging.log none

Description Adam Williamson 2014-12-04 20:42:07 UTC
Description of problem:
Tried an all-defaults install of the 2014-12-04 Rawhide nightly Workstation x86_64 with an updates.img to fix https://bugzilla.redhat.com/show_bug.cgi?id=1167036 (just cherry-picked the two relevant commits from clumens). Gets past that crash, then crashes during filesystem creation at the start of install.

Version-Release number of selected component:
anaconda-core-22.11-1.fc22.x86_64

The following was filed automatically by anaconda:
anaconda 22.11-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devicelibs/lvm.py", line 251, in pvcreate
    raise LVMError("pvcreate failed for %s: %s" % (device, msg))
  File "/usr/lib/python2.7/site-packages/blivet/formats/lvmpv.py", line 118, in create
    lvm.pvcreate(self.device)
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 577, in execute
    options=self.device.formatArgs)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 360, in processActions
    action.execute(callbacks)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 356, in doIt
    self.devicetree.processActions(callbacks)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 207, in turnOnFilesystems
    storage.doIt(callbacks)
  File "/tmp/updates/pyanaconda/install.py", line 186, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall, callbacks=callbacks_reg)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/tmp/updates/pyanaconda/threads.py", line 227, in run
    threading.Thread.run(self, *args, **kwargs)
LVMError: pvcreate failed for /dev/vda2: running lvm pvcreate --dataalignment 1024k /dev/vda2 --config  devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] filter=["r|/vdb1$|","r|/vdb2$|","r|/vdb3$|","r|/vdb$|"] }  failed

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-WS-x86_64-rawhide-20 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  inst.updates=https://www.happyassassin.net/updates/updates-1167036.img
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.18.0-0.rc7.git1.1.fc22.x86_64
other involved packages: python-blivet-0.71-1.fc22.noarch, python-libs-2.7.8-9.fc22.x86_64
product:        Fedora"
release:        Fedora release 22 (Rawhide)
type:           anaconda
version:        Fedora

Comment 1 Adam Williamson 2014-12-04 20:42:09 UTC
Created attachment 964820 [details]
File: anaconda-tb

Comment 2 Adam Williamson 2014-12-04 20:42:10 UTC
Created attachment 964821 [details]
File: anaconda.log

Comment 3 Adam Williamson 2014-12-04 20:42:11 UTC
Created attachment 964822 [details]
File: environ

Comment 4 Adam Williamson 2014-12-04 20:42:13 UTC
Created attachment 964823 [details]
File: journalctl

Comment 5 Adam Williamson 2014-12-04 20:42:13 UTC
Created attachment 964824 [details]
File: lsblk_output

Comment 6 Adam Williamson 2014-12-04 20:42:14 UTC
Created attachment 964825 [details]
File: nmcli_dev_list

Comment 7 Adam Williamson 2014-12-04 20:42:15 UTC
Created attachment 964826 [details]
File: os_info

Comment 8 Adam Williamson 2014-12-04 20:42:17 UTC
Created attachment 964827 [details]
File: program.log

Comment 9 Adam Williamson 2014-12-04 20:42:18 UTC
Created attachment 964828 [details]
File: storage.log

Comment 10 Adam Williamson 2014-12-04 20:42:19 UTC
Created attachment 964829 [details]
File: ifcfg.log

Comment 11 Adam Williamson 2014-12-04 20:42:20 UTC
Created attachment 964830 [details]
File: packaging.log

Comment 12 Adam Williamson 2014-12-04 20:53:15 UTC
Proposing as an Alpha blocker, criterion "The installer must be able to complete an installation to a single disk using automatic partitioning." - https://fedoraproject.org/wiki/Fedora_21_Alpha_Release_Criteria#Disk_layouts

Comment 13 David Shea 2015-01-06 15:58:58 UTC
pvcreate is claiming that the vda2 is in use. Does it show up in mount, or swapon -s, or lsof?

Comment 14 Adam Williamson 2015-01-06 19:17:39 UTC
I don't think I've seen this one since the initial report.