Bug 1120406

Summary: FormatCreateError: ('device does not exist', '/dev/sda2')
Product: [Fedora] Fedora Reporter: Chris Murphy <bugzilla>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: abyss.7, aj.werkman, amulhern, anaconda-maint-list, bcl, dlehman, g.kaviyarasu, jonathan, vanmeeuwen+fedora, vpodzime
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c67baa6f44671736fa85b5507c8c1402b04876b1bf7e3477f79aab16ee845d46
Fixed In Version: python-blivet-0.68-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-02 21:06: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:
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

Description Chris Murphy 2014-07-16 20:41:49 UTC
Version-Release number of selected component:
anaconda-core-21.46-2.fc21.x86_64

The following was filed automatically by anaconda:
anaconda 21.46-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/formats/fs.py", line 383, in doFormat
    raise FormatCreateError("device does not exist", self.device)
  File "/usr/lib/python2.7/site-packages/blivet/formats/fs.py", line 815, in create
    return self.doFormat(options=kwargs.get('options'))
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 554, in execute
    options=self.device.formatArgs)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 354, in processActions
    action.execute()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 357, in doIt
    self.devicetree.processActions()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 216, in turnOnFilesystems
    storage.doIt()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 179, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall)
  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 227, in run
    threading.Thread.run(self, *args, **kwargs)
FormatCreateError: ('device does not exist', '/dev/sda2')

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-Workstation-x86_64-r rootfstype=auto ro rd.live.image elevator=deadline enforcing=0 rd.luks=0 rd.md=0 rd.dm=0 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.16.0-0.rc3.git2.1.fc21.x86_64
other involved packages: python-libs-2.7.7-2.fc21.x86_64, python-blivet-0.60-1.fc21.noarch
product:        Fedora
release:        Fedora release 21 (Rawhide)
type:           anaconda
version:        rawhide

Comment 1 Chris Murphy 2014-07-16 20:41:52 UTC
Created attachment 918521 [details]
File: anaconda-tb

Comment 2 Chris Murphy 2014-07-16 20:41:53 UTC
Created attachment 918522 [details]
File: anaconda.log

Comment 3 Chris Murphy 2014-07-16 20:41:53 UTC
Created attachment 918523 [details]
File: environ

Comment 4 Chris Murphy 2014-07-16 20:41:55 UTC
Created attachment 918524 [details]
File: journalctl

Comment 5 Chris Murphy 2014-07-16 20:41:55 UTC
Created attachment 918525 [details]
File: lsblk_output

Comment 6 Chris Murphy 2014-07-16 20:41:56 UTC
Created attachment 918526 [details]
File: nmcli_dev_list

Comment 7 Chris Murphy 2014-07-16 20:41:57 UTC
Created attachment 918527 [details]
File: os_info

Comment 8 Chris Murphy 2014-07-16 20:41:58 UTC
Created attachment 918528 [details]
File: program.log

Comment 9 Chris Murphy 2014-07-16 20:41:59 UTC
Created attachment 918529 [details]
File: storage.log

Comment 10 Chris Murphy 2014-07-16 20:41:59 UTC
Created attachment 918530 [details]
File: ifcfg.log

Comment 11 Chris Murphy 2014-07-16 21:34:30 UTC
Succeeds with anaconda-21.47-1, python-blivet-0.61-1. Uncertain if the update fixes this or if the problem is transient.

Comment 12 David Lehman 2014-07-17 15:05:45 UTC
This is very similar to 1109244. It seems like a race related to commiting new flags to the partition prior to formatting it. There is an updates for testing in https://bugzilla.redhat.com/show_bug.cgi?id=1109244#c21 if you want to test it.

Comment 13 Brian Lane 2014-07-21 21:40:51 UTC
*** Bug 1121398 has been marked as a duplicate of this bug. ***

Comment 14 Orion Poplawski 2014-08-08 15:56:29 UTC
*** Bug 1126684 has been marked as a duplicate of this bug. ***