Bug 522609

Summary: AttributeError: 'NoneType' object has no attribute 'startswith'
Product: [Fedora] Fedora Reporter: Jay Turner <jturner>
Component: anacondaAssignee: Hans de Goede <hdegoede>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: atodorov, dcantrell, ddumas, jlaska, mbanas, srevivo, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: anaconda_trace_hash:c48177fb010f7dae6cbcef7698d797aa000ee87bf3df0023b2c8b49e95c73472
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-21 07:42:26 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: 473303    
Attachments:
Description Flags
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda. none

Description Jay Turner 2009-09-10 20:00:48 UTC
The following was filed automatically by anaconda:
anaconda 12.21 exception report
Traceback (most recent call first):
  File "/usr/lib/anaconda/storage/__init__.py", line 686, in formatByDefault
    if device.format.mountpoint.startswith(p):
  File "/usr/lib/anaconda/iw/raid_dialog_gui.py", line 275, in run
    self.storage.formatByDefault(self.origrequest):
  File "/usr/lib/anaconda/iw/partition_gui.py", line 1093, in editRaidArray
    actions = raideditor.run()
  File "/usr/lib/anaconda/iw/partition_gui.py", line 1076, in editCB
    self.editRaidArray(device)
AttributeError: 'NoneType' object has no attribute 'startswith'

Comment 1 Jay Turner 2009-09-10 20:00:52 UTC
Created attachment 360563 [details]
Attached traceback automatically from anaconda.

Comment 2 James Laska 2009-09-10 20:03:25 UTC
This bug was discovered while attempting to add several fedora partitions while leaving several existing RAID1 devices untouched.

Comment 3 James Laska 2009-09-10 20:09:23 UTC
Adding to F12Blocker list for consideration.  This defect seems to be related to having existing RAID members and devices that are left untouched during an install operation.

Comment 4 James Laska 2009-09-10 20:20:03 UTC
Changing to version=rawhide

Comment 5 Jesse Keating 2009-10-06 05:15:49 UTC
Created attachment 363776 [details]
Attached traceback automatically from anaconda.

Comment 6 Hans de Goede 2009-10-06 12:41:52 UTC
This should be fixed by this commit:
http://git.fedorahosted.org/git/?p=anaconda.git;a=commitdiff;h=ba96feb99d25b55c4b52abbb1c8e3b06ee17ccbc

Which will be in anaconda-12.34-1

Changing bug to MODIFIED

Comment 7 James Laska 2009-10-07 19:05:06 UTC
Created attachment 364021 [details]
Attached traceback automatically from anaconda.

Comment 8 James Laska 2009-10-07 19:07:00 UTC
Reproduced (see comment#7) using anaconda-12.34 (which doesn't yet have the fix). The reproducer for me was 'custom partitioning', then trying to format an existing /dev/md0 RAID device.

Comment 9 James Laska 2009-10-07 19:46:30 UTC
typo ... comment#8 should have read ...

(In reply to comment #8)
                                              VVVV
> Reproduced (see comment#7) using anaconda-12.33 (which doesn't yet have the
                                              ^^^^
> fix). The reproducer for me was 'custom partitioning', then trying to format an
> existing /dev/md0 RAID device.

Comment 10 Martin Banas 2009-10-08 11:20:39 UTC
Created attachment 364086 [details]
Attached traceback automatically from anaconda.

Comment 11 Hans de Goede 2009-10-21 07:42:26 UTC
rawhide has been using a newer anaconda with the fix in for a while now, closing.