Bug 701228

Summary: AttributeError: 'NoneType' object has no attribute 'active'
Product: [Fedora] Fedora Reporter: Ales Kozumplik <akozumpl>
Component: anacondaAssignee: David Lehman <dlehman>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jonathan, jzeleny, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: anaconda_trace_hash:49aca9acce05f10090134b63bacde810b45e364fe4caa6e9e4193edfc1698dfd
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-09 17:28:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Attached traceback automatically from anaconda. none

Description Ales Kozumplik 2011-05-02 08:00:32 UTC
The following was filed automatically by anaconda:
anaconda 16.6.20110502.6b5d exception report
Traceback (most recent call first):
  File "/tmp/updates/pyanaconda/bootloader.py", line 449, in _is_valid_target_device
    not device.partedPartition.active):
  File "/tmp/updates/pyanaconda/bootloader.py", line 486, in target_devices
    if self._is_valid_target_device(device):
  File "/tmp/updates/pyanaconda/bootloader.py", line 262, in stage1_device
    self.stage1_device = self.target_devices[0]
  File "/tmp/updates/pyanaconda/storage/partitioning.py", line 965, in allocatePartitions
    if bootloader and disk == bootloader.stage1_device.disks[0]:
  File "/tmp/updates/pyanaconda/storage/partitioning.py", line 859, in doPartitioning
    allocatePartitions(storage, disks, partitions, free, bootloader=bootloader)
  File "/tmp/updates/pyanaconda/storage/partitioning.py", line 222, in doAutoPartition
    doPartitioning(anaconda.storage, bootloader=anaconda.bootloader)
  File "/tmp/updates/pyanaconda/dispatch.py", line 224, in dispatch
    self.dir = step_func(self.anaconda)
  File "/tmp/updates/pyanaconda/gui.py", line 94, in return_false
    func(*args, **kwargs)
AttributeError: 'NoneType' object has no attribute 'active'

Comment 1 Ales Kozumplik 2011-05-02 08:00:38 UTC
Created attachment 496184 [details]
Attached traceback automatically from anaconda.

Comment 2 Ales Kozumplik 2011-05-02 08:15:15 UTC
I am seeing this with the Friday rawhide compose and a kickstart. Guessing: related to the new bootloader.

Comment 3 David Lehman 2011-05-17 21:04:36 UTC
The offending line is gone as of anaconda-16.8, but there are some other places in the bootloader code where we assume a PartitionDevice will have a partedPartition that is not None. I'll try a kickstart to see how it behaves.