Bug 1028374

Summary: AttributeError: 'NoneType' object has no attribute 'type'
Product: [Fedora] Fedora Reporter: Juan Orti <jorti>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: anaconda-maint-list, g.kaviyarasu, jonathan, jorti, vanmeeuwen+fedora, vpodzime
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: 2013-11-13 12:21:57 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: 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 Juan Orti 2013-11-08 10:16:42 UTC
Description of problem:
I created a GPT table partition in my blank disk using the text console, then switch back to the GUI and see a unknown partition, when I tried to delete it, it crashed.

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

The following was filed automatically by anaconda:
anaconda 20.25.6-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 302, in _removeDevice
    if dev.partedPartition.type == parted.PARTITION_EXTENDED and \
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 351, in registerAction
    self._removeDevice(action.device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1218, in destroyDevice
    self.devicetree.registerAction(action)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2077, in _destroy_device
    self.__storage.destroyDevice(device)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2201, 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\x2020-Beta\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.11.6-301.fc20.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        20-Beta

Comment 1 Juan Orti 2013-11-08 10:16:50 UTC
Created attachment 821498 [details]
File: anaconda-tb

Comment 2 Juan Orti 2013-11-08 10:16:54 UTC
Created attachment 821499 [details]
File: anaconda.log

Comment 3 Juan Orti 2013-11-08 10:16:58 UTC
Created attachment 821500 [details]
File: environ

Comment 4 Juan Orti 2013-11-08 10:17:02 UTC
Created attachment 821501 [details]
File: lsblk_output

Comment 5 Juan Orti 2013-11-08 10:17:06 UTC
Created attachment 821502 [details]
File: nmcli_dev_list

Comment 6 Juan Orti 2013-11-08 10:17:10 UTC
Created attachment 821503 [details]
File: os_info

Comment 7 Juan Orti 2013-11-08 10:17:14 UTC
Created attachment 821504 [details]
File: program.log

Comment 8 Juan Orti 2013-11-08 10:17:17 UTC
Created attachment 821505 [details]
File: storage.log

Comment 9 Juan Orti 2013-11-08 10:17:21 UTC
Created attachment 821506 [details]
File: syslog

Comment 10 Juan Orti 2013-11-08 10:17:25 UTC
Created attachment 821507 [details]
File: ifcfg.log

Comment 11 Juan Orti 2013-11-08 10:17:31 UTC
Created attachment 821508 [details]
File: packaging.log

Comment 12 Vratislav Podzimek 2013-11-12 13:50:55 UTC
Did you use the 'Reload storage configuration from disk' button next to the minus button below the list mountpoints/systems after doing that change in console?

Comment 13 Juan Orti 2013-11-13 09:48:34 UTC
(In reply to Vratislav Podzimek from comment #12)
> Did you use the 'Reload storage configuration from disk' button next to the
> minus button below the list mountpoints/systems after doing that change in
> console?

I think I didn't use that button.

Comment 14 Vratislav Podzimek 2013-11-13 12:21:57 UTC
Well, then this won't be fixed, because Anaconda cannot/won't automatically find out something has changed on the disks. That's the purpose of the (maybe a bit hidden) button. I think the Installation Guide should stress that out.