Bug 495077

Summary: AttributeError: 'NoneType' object has no attribute 'getSize'
Product: [Fedora] Fedora Reporter: James Laska <jlaska>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: anaconda-maint-list, hdegoede, jturner, pjones, rmaximo, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: anaconda_trace_hash:6f0426dc945a3cabc5a52d42b66159dbc399ae6ce9ebbbb30afafc1c7cb7c3ac
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-10 09:54:08 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:    
Bug Blocks: 446452    
Attachments:
Description Flags
Attached traceback automatically from anaconda. none

Description James Laska 2009-04-09 16:44:01 UTC
The following was filed automatically by anaconda:
anaconda 11.5.0.41 exception report
Traceback (most recent call first):
  File "/usr/lib/anaconda/storage/devices.py", line 1225, in _getSize
    size = self.partedPartition.getSize()
  File "/usr/lib/anaconda/storage/devices.py", line 566, in <lambda>
    size = property(lambda x: x._getSize(),
  File "/usr/lib/anaconda/storage/partitioning.py", line 375, in partitionCompare
    ret -= cmp(part1.size, part2.size) * 100
  File "/usr/lib/anaconda/storage/partitioning.py", line 603, in allocatePartitions
    new_partitions.sort(cmp=partitionCompare)
  File "/usr/lib/anaconda/storage/partitioning.py", line 977, in growPartitions
    allocatePartitions(disks, partitions)
  File "/usr/lib/anaconda/storage/partitioning.py", line 563, in doPartitioning
    growPartitions(disks, partitions)
  File "/usr/lib/anaconda/storage/partitioning.py", line 186, in doAutoPartition
    exclusiveDisks=anaconda.id.storage.clearPartDisks)
  File "/usr/lib/anaconda/dispatch.py", line 205, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 128, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/dispatch.py", line 227, in currentStep
    self.gotoNext()
  File "/usr/lib/anaconda/gui.py", line 1356, in setScreen
    (step, anaconda) = self.anaconda.dispatch.currentStep()
  File "/usr/lib/anaconda/gui.py", line 1519, in setup_window
    self.setScreen()
  File "/usr/lib/anaconda/gui.py", line 1529, in run
    self.setup_window(runres)
  File "/usr/lib/anaconda/gui.py", line 1276, in run
    self.icw.run (self.runres)
  File "/usr/bin/anaconda", line 968, in <module>
    anaconda.intf.run(anaconda)
AttributeError: 'NoneType' object has no attribute 'getSize'

Comment 1 James Laska 2009-04-09 16:44:05 UTC
Created attachment 338945 [details]
Attached traceback automatically from anaconda.

Comment 2 Hans de Goede 2009-04-10 09:54:08 UTC
Thanks for reporting!

This is fixed by this commit:
http://git.fedorahosted.org/git/?p=anaconda.git;a=commitdiff;h=684de1132bf76c6bc899f420e86d3e6267c41b81

Which will be in the next version of anaconda which will be 11.5.0.43.

Can you please retry with a boot.iso from rawhide once anaconda-11.5.0.43
has been build and has hit rawhide ?

As I believe this is fixed, I'm closing this, if this still happens with
anaconda >= anaconda-11.5.0.43, please reopen this bug. Note if you fail to
install again, but get a different backtrace now, please open a new bug.