RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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...
Keywords:
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
high
high
Target Milestone: rc
: ---
Assignee: Ales Kozumplik
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On: 624505
Blocks:
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)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-19 15:03:01 UTC
Target Upstream Version:
Embargoed:


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:
https://bugzilla.redhat.com/show_bug.cgi?id=616273#c96

The problem was last confirmed with RHEL6 Snapshot10 with the bz616273.img
mentioned in this comment:
https://bugzilla.redhat.com/show_bug.cgi?id=616273#c93


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__
    self.setDisplayed(drive)
  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
Jun'ichi,

can you please try to retest with
updates=http://akozumpl.fedorapeople.org/bz624175.img
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.
Ales

Comment 5 Jun'ichi NOMURA 2010-08-18 07:57:19 UTC
With bz624175.img, I got "Invalid Device Specification" as in this BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=624497
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.