Bug 974770

Summary: AttributeError: 'NoneType' object has no attribute 'type'
Product: [Fedora] Fedora Reporter: moshe nahmias <moshegrey>
Component: python-blivetAssignee: Brian Lane <bcl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: bcl, dlehman, dshea, g.kaviyarasu, jonathan, mkolman, sbueno, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:5eb25a59b656b539f68f6f653e8edec11a1cc121304d9b0fd08ce08f3d5d1ff2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-01 01:02:52 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.log
none
File: backtrace
none
File: environ
none
File: ifcfg.log
none
File: lsblk_output
none
File: messages
none
File: nmcli_dev_list
none
File: program.log
none
File: storage.log
none
File: anaconda-tb none

Description moshe nahmias 2013-06-15 16:05:56 UTC
Description of problem:
While trying to install F19 and on partition selection I tried to let the software to do it by itself after a few attempts to do it by myself and re-entering by mistake without cancelation option.
The following was filed automatically by anaconda:
anaconda 19.30.5-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 297, in _removeDevice
    if dev.partedPartition.type == parted.PARTITION_EXTENDED and \
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 344, in registerAction
    self._removeDevice(action.device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1179, in destroyDevice
    self.devicetree.registerAction(action)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2019, in _destroy_device
    self.__storage.destroyDevice(device)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2143, in on_remove_clicked
    self._destroy_device(device)
AttributeError: 'NoneType' object has no attribute 'type'

Version-Release number of selected component:
anaconda-19.30.5-1.fc19.x86_64

Additional info:
reporter:       libreport-2.1.4
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   BOOT_IMAGE=/isolinux/vmlinuz0 root=live:LABEL=Fedora-Live-Desktop-x86_64-19-TC ro rd.live.image quiet rhgb
core_backtrace: 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.4-301.fc19.x86_64
other involved packages: python-blivet-0.15-1.fc19.noarch
packaging.log:  
product:        Fedora
release:        Fedora release 19 (Schrödinger’s Cat)
type:           anaconda
version:        19

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2143, in on_remove_clicked
    self._destroy_device(device)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2019, in _destroy_device
    self.__storage.destroyDevice(device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1179, in destroyDevice
    self.devicetree.registerAction(action)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 344, in registerAction
    self._removeDevice(action.device)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 297, in _removeDevice
    if dev.partedPartition.type == parted.PARTITION_EXTENDED and \
AttributeError: 'NoneType' object has no attribute 'type'

Comment 1 moshe nahmias 2013-06-15 16:06:02 UTC
Created attachment 761639 [details]
File: anaconda.log

Comment 2 moshe nahmias 2013-06-15 16:06:06 UTC
Created attachment 761640 [details]
File: backtrace

Comment 3 moshe nahmias 2013-06-15 16:06:10 UTC
Created attachment 761641 [details]
File: environ

Comment 4 moshe nahmias 2013-06-15 16:06:15 UTC
Created attachment 761642 [details]
File: ifcfg.log

Comment 5 moshe nahmias 2013-06-15 16:06:20 UTC
Created attachment 761643 [details]
File: lsblk_output

Comment 6 moshe nahmias 2013-06-15 16:06:31 UTC
Created attachment 761644 [details]
File: messages

Comment 7 moshe nahmias 2013-06-15 16:06:35 UTC
Created attachment 761645 [details]
File: nmcli_dev_list

Comment 8 moshe nahmias 2013-06-15 16:06:40 UTC
Created attachment 761646 [details]
File: program.log

Comment 9 moshe nahmias 2013-06-15 16:07:05 UTC
Created attachment 761647 [details]
File: storage.log

Comment 10 moshe nahmias 2013-06-15 16:07:48 UTC
Created attachment 761648 [details]
File: anaconda-tb

Comment 11 Brian Lane 2013-06-21 22:25:08 UTC
Could you a) retry with TC6 and b) narrow it down to a limited number of steps? I wasn't able to follow exactly what you did, and couldn't reproduce it.

Comment 12 Brian Lane 2014-02-01 01:02:52 UTC
This is likely fixed in f19/20.