Bug 977279

Summary: poor handling of disks that report no media present
Product: [Fedora] Fedora Reporter: Dan Mashal <dan.mashal>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: anaconda-maint-list, dshea, g.kaviyarasu, jonathan, mkolman, robatino, sbueno, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a608d184ffc75f1191872e71c5233e549d5d7a9d12becb8536bb70d1864ac7fc
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-25 00:47:54 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: 960794    
Bug Blocks: 834090    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log none

Description Dan Mashal 2013-06-24 08:24:36 UTC
Description of problem:
Deleted a partition in custom partitioning

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

The following was filed automatically by anaconda:
anaconda 19.30.9-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/platform.py", line 107, in bestDiskLabelType
    labelType = self.requiredDiskLabelType(device.partedDevice.type)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 816, in initializeDisk
    labelType = _platform.bestDiskLabelType(disk)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2022, in _destroy_device
    self.__storage.initializeDisk(device)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2148, in on_remove_clicked
    self._destroy_device(device)
AttributeError: 'NoneType' object has no attribute 'type'

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019-TC6\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-TC6

Comment 1 Dan Mashal 2013-06-24 08:24:41 UTC
Created attachment 764492 [details]
File: anaconda-tb

Comment 2 Dan Mashal 2013-06-24 08:24:45 UTC
Created attachment 764493 [details]
File: anaconda.log

Comment 3 Dan Mashal 2013-06-24 08:24:49 UTC
Created attachment 764494 [details]
File: environ

Comment 4 Dan Mashal 2013-06-24 08:24:52 UTC
Created attachment 764495 [details]
File: lsblk_output

Comment 5 Dan Mashal 2013-06-24 08:24:56 UTC
Created attachment 764496 [details]
File: nmcli_dev_list

Comment 6 Dan Mashal 2013-06-24 08:24:59 UTC
Created attachment 764497 [details]
File: os_info

Comment 7 Dan Mashal 2013-06-24 08:25:04 UTC
Created attachment 764498 [details]
File: program.log

Comment 8 Dan Mashal 2013-06-24 08:25:08 UTC
Created attachment 764499 [details]
File: storage.log

Comment 9 Dan Mashal 2013-06-24 08:25:11 UTC
Created attachment 764500 [details]
File: syslog

Comment 10 Dan Mashal 2013-06-24 08:25:14 UTC
Created attachment 764501 [details]
File: ifcfg.log

Comment 11 Dan Mashal 2013-06-24 08:25:18 UTC
Created attachment 764502 [details]
File: packaging.log

Comment 12 David Lehman 2013-06-24 16:06:19 UTC
Looks like we need to better protect against devices that somehow appear as disks yet also report no media present.

In the meantime, you can unplug your iphone while you are installing an OS on your system.

Comment 13 Dan Mashal 2013-06-24 17:03:17 UTC
Nominating as a blocker as anaconda fails to install.

Comment 14 Adam Williamson 2013-06-24 17:03:53 UTC
dlehman: is #960794 the same? the tracebacks look almost identical.

Comment 15 Brian Lane 2013-06-25 00:47:54 UTC

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