Bug 624500 - "'NoneType' object has no attribute 'length'" exception when trying to install to existing partitions on multipath device
Summary: "'NoneType' object has no attribute 'length'" exception when trying to instal...
Status: CLOSED DUPLICATE of bug 624175
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Ales Kozumplik
QA Contact: Release Test Team
Depends On: 624505
TreeView+ depends on / blocked
Reported: 2010-08-16 17:03 UTC by Jeff Bastian
Modified: 2014-09-30 23:39 UTC (History)
3 users (show)

Clone Of:
Last Closed: 2010-08-19 15:03:01 UTC

Attachments (Terms of Use)
Debug patch for anaconda to treat singlepath SCSI devices as multipath device (626 bytes, patch)
2010-08-18 03:23 UTC, Jun'ichi NOMURA
no flags Details | Diff

Description Jeff Bastian 2010-08-16 17:03:15 UTC
Description of problem:
This is branching from bug 616273 comment 98.  Please see this bug for the
original context.

"'NoneType' object has no attribute 'length'' exception of anaconda when trying to install to existing partitions on multipath device

The same phenomenon has occurred with different operations / conditions.
See the following comment for details:

The problem was last confirmed with RHEL6 Snapshot10 with the bz616273.img
mentioned in this comment:

Version-Release number of selected component (if applicable):
anaconda 13.21.68
RHEL 6 Snapshot 10 + bz616273.img

How reproducible:
every time (?)

Steps to Reproduce:
1. Prepare 1 multipath device
2. Create partitions to install RHEL6 from rescue mode
3. Reboot and start RHEL6 installation
4. Select "Specialized Storage Device"
5. Select the multipath device in device selection
6. Select "Create Custom Layout"
7. Put "/" and "/boot" on the existing partitions created in the step 2
8. Click "Next"

Actual results:
anaconda crashes with the error "'NoneType' object has no attribute 'length'"

Expected results:
installation proceeds normally

Additional info:
17:04:27,667 CRITICAL: anaconda 13.21.68 exception report
Traceback (most recent call first):
  File "/tmp/updates/iw/partition_gui.py", line 383, in _createStripe
    / Decimal(str(drive.partedDevice.length)))
  File "/tmp/updates/iw/partition_gui.py", line 302, in setDisplayed
    self.stripe = self._createStripe(obj)
  File "/tmp/updates/iw/partition_gui.py", line 356, in __init__
  File "/tmp/updates/iw/partition_gui.py", line 1254, in treeSelectCB
    dcCB = self.barviewActivateCB)
AttributeError: 'NoneType' object has no attribute 'length'

Comment 3 Jun'ichi NOMURA 2010-08-18 03:23:29 UTC
Created attachment 439288 [details]
Debug patch for anaconda to treat singlepath SCSI devices as multipath device

The problem can be reproduced without real multipath hardware
using the attached patch.

Comment 4 Ales Kozumplik 2010-08-18 07:26:52 UTC

can you please try to retest with
in the kernel command line?

The patch ensures multipath parted objects are not torn down when they shouldn't.
Please zip and attach all log files in case of another traceback.

Many thanks.

Comment 5 Jun'ichi NOMURA 2010-08-18 07:57:19 UTC
With bz624175.img, I got "Invalid Device Specification" as in this BZ:
Logs uploaded in issuetracker.

Comment 8 Ales Kozumplik 2010-08-19 15:03:01 UTC
Scratch comment 7.

Since the patch from Comment 4 helped get past the point of error, I'm marking this as a dup of 624175.

I'll be tracking progress on the error Jun'ichi is reporting in Comment 5 in bug 624497.

*** This bug has been marked as a duplicate of bug 624175 ***

Note You need to log in before you can comment on or make changes to this bug.