Bug 1226065

Summary: AttributeError: 'DiskDevice' object has no attribute 'disk'
Product: [Fedora] Fedora Reporter: Peter Gsellmann <pgsellmann>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: anaconda-maint-list, bcl, dlehman, g.kaviyarasu, johnsson, jonathan, lnie, ttomasz, vanmeeuwen+fedora, vgoyal, vpodzime
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9a413b806830f05e9534b4d2e93e57b97a5811cd41bc4495294a6609dbad580d
Fixed In Version: python-blivet-2.1.1-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-24 18:43:21 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
proposed patch to properly handle disklabel commit errors on disks none

Description Peter Gsellmann 2015-05-28 21:57:14 UTC
Description of problem:
installing F22 to an empty SSD-disk

soon after entering root-password:
progressbar is about 5%, labeled 'create disklabel on /dev/sdc'
installation stopped with error

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

The following was filed automatically by anaconda:
anaconda 22.20.13-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 369, in processActions
    if dep.exists and dep.dependsOn(action.device.disk):
  File "/usr/lib/python2.7/site-packages/blivet/blivet.py", line 162, in doIt
    self.devicetree.processActions(callbacks)
  File "/usr/lib/python2.7/site-packages/blivet/osinstall.py", line 1057, in turnOnFilesystems
    storage.doIt(callbacks)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 196, 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 244, in run
    threading.Thread.run(self, *args, **kwargs)
AttributeError: 'DiskDevice' object has no attribute 'disk'

Additional info:
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-3 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.0.4-301.fc22.x86_64
other involved packages: python-libs-2.7.9-6.fc22.x86_64, python-blivet-1.0.9-1.fc22.noarch
product:        Fedora
release:        Fedora release 22 (Twenty Two)
type:           anaconda
version:        22

Comment 1 Peter Gsellmann 2015-05-28 21:57:22 UTC
Created attachment 1031473 [details]
File: anaconda-tb

Comment 2 Peter Gsellmann 2015-05-28 21:57:24 UTC
Created attachment 1031474 [details]
File: anaconda.log

Comment 3 Peter Gsellmann 2015-05-28 21:57:25 UTC
Created attachment 1031475 [details]
File: environ

Comment 4 Peter Gsellmann 2015-05-28 21:57:30 UTC
Created attachment 1031476 [details]
File: journalctl

Comment 5 Peter Gsellmann 2015-05-28 21:57:31 UTC
Created attachment 1031477 [details]
File: lsblk_output

Comment 6 Peter Gsellmann 2015-05-28 21:57:33 UTC
Created attachment 1031478 [details]
File: nmcli_dev_list

Comment 7 Peter Gsellmann 2015-05-28 21:57:34 UTC
Created attachment 1031479 [details]
File: os_info

Comment 8 Peter Gsellmann 2015-05-28 21:57:37 UTC
Created attachment 1031480 [details]
File: program.log

Comment 9 Peter Gsellmann 2015-05-28 21:57:41 UTC
Created attachment 1031481 [details]
File: storage.log

Comment 10 Peter Gsellmann 2015-05-28 21:57:42 UTC
Created attachment 1031482 [details]
File: ifcfg.log

Comment 11 Vivek Goyal 2015-06-09 15:11:53 UTC
Another user experienced a similar problem:

I am trying to install F22 in a virtual machine. Host is F21. After selecting the root disk and automatic partitioning, this error happened.

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-3 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
hashmarkername: anaconda
kernel:         4.0.4-301.fc22.x86_64
other involved packages: python-libs-2.7.9-6.fc22.x86_64, python-blivet-1.0.9-1.fc22.noarch
package:        anaconda-core-22.20.13-1.fc22.x86_64
packaging.log:  
product:        Fedora
reason:         AttributeError: 'DiskDevice' object has no attribute 'disk'
release:        Fedora release 22 (Twenty Two)
version:        22

Comment 12 Vivek Goyal 2015-06-10 15:33:13 UTC
I could not create partition on root disk manually using fdisk. Or could not finish dd successfully of a single block. I opened another bug to track that problem.

https://bugzilla.redhat.com/show_bug.cgi?id=1230304

Comment 13 Fedora Admin XMLRPC Client 2015-09-28 20:26:47 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 14 David Lehman 2015-10-01 16:08:27 UTC
*** Bug 1266702 has been marked as a duplicate of this bug. ***

Comment 15 David Lehman 2015-10-01 16:09:04 UTC
Created attachment 1079195 [details]
proposed patch to properly handle disklabel commit errors on disks

Comment 16 David Lehman 2015-10-26 14:42:51 UTC
*** Bug 1274896 has been marked as a duplicate of this bug. ***

Comment 17 Jan Kurik 2016-02-24 13:24:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 18 Richard Johnsson 2016-05-14 18:25:10 UTC
Another user experienced a similar problem:

Just clicked on Begin Installation. About 15 seconds later it crashed. Seems to be reproducible.

cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-LXDE-x86_64-23-10 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
hashmarkername: anaconda
kernel:         4.2.3-300.fc23.x86_64
other involved packages: python3-libs-3.4.3-5.fc23.x86_64, python3-blivet-1.12.8-1.fc23.noarch
package:        anaconda-core-23.19.10-1.fc23.x86_64
packaging.log:  
product:        Fedora
reason:         AttributeError: 'DiskDevice' object has no attribute 'disk'
release:        Fedora release 23 (Twenty Three)
version:        23

Comment 19 Richard Johnsson 2016-05-14 19:43:28 UTC
Taking a hint from some of the other comments, I used fdisk to create a couple of partitions on the previously fresh-out-of-the-box SSD I was using. Then I was able to delete those in the install configuration and the install proceeded successfully.