Bug 589967

Summary: AttributeError: 'NoneType' object has no attribute 'rfind'
Product: Red Hat Enterprise Linux 6 Reporter: Marian Ganisin <mganisin>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED CURRENTRELEASE QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: andriusb, atodorov, bmarson, james.brown, jstodola, prashant.s, richard.johnson, scofeldm, Sean.Stewart, tcallawa
Target Milestone: rc   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: anaconda_trace_hash:70830a4ddc54d7a2d028c8ba1e0bafb772be84d61881e3bdfd1eed52897dbfba
Fixed In Version: anaconda-13.21.38-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-02 20:48:42 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: 582286    
Attachments:
Description Flags
Attached traceback automatically from anaconda.
none
anaconda.log
none
syslog none

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.