Bug 1226065 - AttributeError: 'DiskDevice' object has no attribute 'disk'
Summary: AttributeError: 'DiskDevice' object has no attribute 'disk'
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 24
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9a413b806830f05e9534b4d2e93...
: 1266702 1274896 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-28 21:57 UTC by Peter Gsellmann
Modified: 2016-08-24 18:43 UTC (History)
11 users (show)

Fixed In Version: python-blivet-2.1.1-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-24 18:43:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (1.02 MB, text/plain)
2015-05-28 21:57 UTC, Peter Gsellmann
no flags Details
File: anaconda.log (38.20 KB, text/plain)
2015-05-28 21:57 UTC, Peter Gsellmann
no flags Details
File: environ (690 bytes, text/plain)
2015-05-28 21:57 UTC, Peter Gsellmann
no flags Details
File: journalctl (451.59 KB, text/plain)
2015-05-28 21:57 UTC, Peter Gsellmann
no flags Details
File: lsblk_output (4.11 KB, text/plain)
2015-05-28 21:57 UTC, Peter Gsellmann
no flags Details
File: nmcli_dev_list (1.73 KB, text/plain)
2015-05-28 21:57 UTC, Peter Gsellmann
no flags Details
File: os_info (500 bytes, text/plain)
2015-05-28 21:57 UTC, Peter Gsellmann
no flags Details
File: program.log (85.26 KB, text/plain)
2015-05-28 21:57 UTC, Peter Gsellmann
no flags Details
File: storage.log (390.17 KB, text/plain)
2015-05-28 21:57 UTC, Peter Gsellmann
no flags Details
File: ifcfg.log (5.21 KB, text/plain)
2015-05-28 21:57 UTC, Peter Gsellmann
no flags Details
proposed patch to properly handle disklabel commit errors on disks (868 bytes, patch)
2015-10-01 16:09 UTC, David Lehman
no flags Details | Diff

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.


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