Bug 1202124

Summary: FormatCreateError: ('invalid device specification', '/dev/mapper/rootvg-swap')
Product: [Fedora] Fedora Reporter: Pavel Zhukov <pzhukov>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: amulhern, anaconda-maint-list, bcl, davidzgumberg, dlehman, g.kaviyarasu, jonathan, vanmeeuwen+fedora, vpodzime
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:db093ea1d0026324749eab470e0de72f04b740e97477a796e19710566c47032e
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 12:35:24 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:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: dnf.log
none
File: dnf.rpm.log
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log
none
File: program.log none

Description Pavel Zhukov 2015-03-15 17:13:50 UTC
Description of problem:
Use existing partions (reformatting)

Version-Release number of selected component:
anaconda-22.20.2-1

The following was filed automatically by anaconda:
anaconda 22.20.2-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/formats/__init__.py", line 374, in create
    raise FormatCreateError("invalid device specification", self.device)
  File "/usr/lib/python2.7/site-packages/blivet/formats/swap.py", line 192, in create
    DeviceFormat.create(self, **kwargs)
  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 361, in processActions
    action.execute(callbacks)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 252, in doIt
    self.devicetree.processActions(callbacks)
  File "/usr/lib/python2.7/site-packages/blivet/osinstall.py", line 1063, in turnOnFilesystems
    storage.doIt(callbacks)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 188, 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 "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 238, in run
    threading.Thread.run(self, *args, **kwargs)
FormatCreateError: ('invalid device specification', '/dev/mapper/rootvg-swap')

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python2  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-WS-22_A-x86_64 quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.0.0-0.rc1.git0.1.fc22.x86_64
product:        Fedora"
release:        Cannot get release name.
type:           anaconda
version:        Fedora

Comment 1 Pavel Zhukov 2015-03-15 17:13:55 UTC
Created attachment 1001999 [details]
File: anaconda-tb

Comment 2 Pavel Zhukov 2015-03-15 17:13:58 UTC
Created attachment 1002000 [details]
File: anaconda.log

Comment 3 Pavel Zhukov 2015-03-15 17:13:59 UTC
Created attachment 1002001 [details]
File: dnf.log

Comment 4 Pavel Zhukov 2015-03-15 17:14:01 UTC
Created attachment 1002002 [details]
File: dnf.rpm.log

Comment 5 Pavel Zhukov 2015-03-15 17:14:02 UTC
Created attachment 1002003 [details]
File: environ

Comment 6 Pavel Zhukov 2015-03-15 17:14:03 UTC
Created attachment 1002004 [details]
File: lsblk_output

Comment 7 Pavel Zhukov 2015-03-15 17:14:05 UTC
Created attachment 1002005 [details]
File: nmcli_dev_list

Comment 8 Pavel Zhukov 2015-03-15 17:14:06 UTC
Created attachment 1002006 [details]
File: os_info

Comment 9 Pavel Zhukov 2015-03-15 17:14:08 UTC
Created attachment 1002007 [details]
File: storage.log

Comment 10 Pavel Zhukov 2015-03-15 17:14:10 UTC
Created attachment 1002008 [details]
File: syslog

Comment 11 Pavel Zhukov 2015-03-15 17:14:12 UTC
Created attachment 1002009 [details]
File: ifcfg.log

Comment 12 Pavel Zhukov 2015-03-15 17:14:13 UTC
Created attachment 1002010 [details]
File: packaging.log

Comment 13 Pavel Zhukov 2015-03-15 17:14:15 UTC
Created attachment 1002011 [details]
File: program.log

Comment 14 davidzgumberg 2015-03-19 03:57:14 UTC
Another user experienced a similar problem:

Problem occurred while installing, the installer was hanging on "Preparing Install Environment" and none of the buttons were working, and then the "Force Quit / Wait" menu came up and I chose to wait. I connected to WiFi, and a few moments later ABRT came up asking me to report this error. 

cmdline:        /usr/bin/python2  /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-22_A-3 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
hashmarkername: anaconda
kernel:         4.0.0-0.rc1.git0.1.fc22.x86_64
other involved packages: python-blivet-1.0-1.fc22.noarch, python-libs-2.7.9-5.fc22.x86_64
package:        anaconda-core-22.20.2-1.fc22.x86_64
packaging.log:  
product:        Fedora"
reason:         FormatCreateError: ('invalid device specification', '/dev/mapper/fedora-swap')
release:        Fedora release 22 (Twenty Two)
version:        Fedora

Comment 15 mulhern 2015-03-19 12:26:59 UTC
Note that the FormatCreateError is raised because os.path.exists('/dev/mapper/fedora-swap") is False. Tentatively reassigning to blivet.

Comment 16 mulhern 2015-03-19 12:35:24 UTC

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