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 589967 - AttributeError: 'NoneType' object has no attribute 'rfind'
Summary: AttributeError: 'NoneType' object has no attribute 'rfind'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: David Cantrell
QA Contact: Release Test Team
URL:
Whiteboard: anaconda_trace_hash:70830a4ddc54d7a2d...
: 590058 590548 590885 591254 591275 591315 592099 592279 592867 592868 592869 593215 (view as bug list)
Depends On:
Blocks: 582286
TreeView+ depends on / blocked
 
Reported: 2010-05-07 12:26 UTC by Marian Ganisin
Modified: 2010-07-02 20:48 UTC (History)
10 users (show)

Fixed In Version: anaconda-13.21.38-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-02 20:48:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Attached traceback automatically from anaconda. (52.63 KB, text/plain)
2010-05-07 12:26 UTC, Marian Ganisin
no flags Details
anaconda.log (7.17 KB, text/plain)
2010-05-07 15:54 UTC, James G. Brown III
no flags Details
syslog (342.33 KB, text/plain)
2010-05-07 15:55 UTC, James G. Brown III
no flags Details

Description Marian Ganisin 2010-05-07 12:26:13 UTC
The following was filed automatically by anaconda:
anaconda 13.21.36 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.6/posixpath.py", line 111, in basename
    i = p.rfind('/') + 1
  File "/usr/lib/anaconda/storage/devicetree.py", line 1360, in handleUdevDiskLabelFormat
    bypath = os.path.basename(deviceNameToDiskByPath(device.name))
  File "/usr/lib/anaconda/storage/devicetree.py", line 1715, in handleUdevDeviceFormat
    self.handleUdevDiskLabelFormat(info, device)
  File "/usr/lib/anaconda/storage/devicetree.py", line 1299, in addUdevDevice
    self.handleUdevDeviceFormat(info, device)
  File "/usr/lib/anaconda/storage/devicetree.py", line 1965, in populate
    self.addUdevDevice(dev)
  File "/usr/lib/anaconda/storage/__init__.py", line 379, in reset
    self.devicetree.populate()
  File "/usr/lib/anaconda/storage/__init__.py", line 103, in storageInitialize
    storage.reset()
  File "/usr/lib/anaconda/dispatch.py", line 205, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/gui.py", line 1348, in setScreen
    self.anaconda.dispatch.gotoNext()
  File "/usr/lib/anaconda/gui.py", line 1261, in nextClicked
    self.setScreen ()
AttributeError: 'NoneType' object has no attribute 'rfind'

Comment 1 Marian Ganisin 2010-05-07 12:26:16 UTC
Created attachment 412329 [details]
Attached traceback automatically from anaconda.

Comment 2 Marian Ganisin 2010-05-07 12:46:07 UTC
This happens with virtio disk

Comment 4 RHEL Program Management 2010-05-07 14:08:06 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 5 Chris Lumens 2010-05-07 15:53:02 UTC
*** Bug 590058 has been marked as a duplicate of this bug. ***

Comment 6 James G. Brown III 2010-05-07 15:54:39 UTC
Created attachment 412387 [details]
anaconda.log

Comment 7 James G. Brown III 2010-05-07 15:55:06 UTC
Created attachment 412388 [details]
syslog

Comment 9 David Cantrell 2010-05-07 22:02:44 UTC
This bug is related to the changes made for bug #589713.  Fix is quite simple.  Here's the patch:

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 1ed73c1..c171968 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1357,10 +1357,12 @@ class DeviceTree(object):
             initcb = lambda: True
         else:
             description = device.description or device.model
-            bypath = os.path.basename(deviceNameToDiskByPath(device.name))
+            bypath = deviceNameToDiskByPath(device.name)
             if bypath:
+                bypath = os.path.basename(bypath)
                 details = "\n\nDevice details:\n%s" % (bypath,)
             else:
+                bypath = device.name
                 details = ""
 
             initcb = lambda: self.intf.questionInitializeDisk(bypath,

Can I get a qa_ack on this one?

Comment 10 Marian Ganisin 2010-05-10 08:07:21 UTC
qa_ack granted

Comment 11 Hans de Goede 2010-05-10 08:55:06 UTC
*** Bug 590548 has been marked as a duplicate of this bug. ***

Comment 15 David Cantrell 2010-05-10 23:38:25 UTC
*** Bug 590885 has been marked as a duplicate of this bug. ***

Comment 17 Chris Lumens 2010-05-11 18:46:37 UTC
*** Bug 591254 has been marked as a duplicate of this bug. ***

Comment 18 David Cantrell 2010-05-11 20:27:54 UTC
*** Bug 591275 has been marked as a duplicate of this bug. ***

Comment 19 Alexander Todorov 2010-05-11 21:04:54 UTC
*** Bug 591315 has been marked as a duplicate of this bug. ***

Comment 21 Bill Nottingham 2010-05-13 20:56:13 UTC
*** Bug 592099 has been marked as a duplicate of this bug. ***

Comment 22 Alexander Todorov 2010-05-14 09:41:10 UTC
With anaconda-13.21.39-1.el6 and steps to reproduce from duplicate bug:
https://bugzilla.redhat.com/show_bug.cgi?id=591275#c2

Install completes successfully. Moving to VERIFIED.

Comment 23 Chris Lumens 2010-05-14 13:51:42 UTC
*** Bug 592279 has been marked as a duplicate of this bug. ***

Comment 24 Hans de Goede 2010-05-17 11:03:31 UTC
*** Bug 592869 has been marked as a duplicate of this bug. ***

Comment 25 Hans de Goede 2010-05-17 11:03:35 UTC
*** Bug 592868 has been marked as a duplicate of this bug. ***

Comment 26 Hans de Goede 2010-05-17 11:03:39 UTC
*** Bug 592867 has been marked as a duplicate of this bug. ***

Comment 27 Bill Nottingham 2010-05-18 14:56:17 UTC
*** Bug 593215 has been marked as a duplicate of this bug. ***

Comment 29 releng-rhel@redhat.com 2010-07-02 20:48:42 UTC
Red Hat Enterprise Linux Beta 2 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


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