Bug 680195

Summary: AttributeError: 'NoneType' object has no attribute 'path'
Product: [Fedora] Fedora Reporter: Dieter Vandenbroeck <dietervandenbroeck>
Component: anacondaAssignee: David Lehman <dlehman>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: jonathan, sandeepasingh, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: anaconda_trace_hash:e62f3f5144e3914904adb95cb421483f0fc8bec5512b70bcd68f8706a82ce57e
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-25 15:53:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda. none

Description Dieter Vandenbroeck 2011-02-24 15:59:38 UTC
The following was filed automatically by anaconda:
anaconda 14.22 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/__init__.py", line 2073, in mkDevRoot
    dev = "%s/%s" % (instPath, root.path)
  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/__init__.py", line 1169, in mkDevRoot
    self.fsset.mkDevRoot()
  File "/usr/lib/python2.7/site-packages/pyanaconda/upgrade.py", line 299, in upgradeMountFilesystems
    anaconda.storage.mkDevRoot()
  File "/usr/lib/python2.7/site-packages/pyanaconda/dispatch.py", line 212, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/python2.7/site-packages/pyanaconda/dispatch.py", line 131, in gotoNext
    self.moveStep()
  File "/usr/lib/python2.7/site-packages/pyanaconda/dispatch.py", line 235, in currentStep
    self.gotoNext()
  File "/usr/lib/python2.7/site-packages/pyanaconda/gui.py", line 1223, in setScreen
    (step, anaconda) = self.anaconda.dispatch.currentStep()
  File "/usr/lib/python2.7/site-packages/pyanaconda/gui.py", line 1411, in setup_window
    self.setScreen()
  File "/usr/lib/python2.7/site-packages/pyanaconda/gui.py", line 1425, in run
    self.setup_window(False)
  File "/usr/lib/python2.7/site-packages/pyanaconda/gui.py", line 1154, in run
    self.icw.run()
  File "/usr/bin/anaconda", line 901, in <module>
    anaconda.intf.run(anaconda)
AttributeError: 'NoneType' object has no attribute 'path'

Comment 1 Dieter Vandenbroeck 2011-02-24 15:59:44 UTC
Created attachment 480792 [details]
Attached traceback automatically from anaconda.

Comment 2 Dieter Vandenbroeck 2011-02-24 16:08:59 UTC
Happened while rebooting after running preupgrade

Comment 3 David Lehman 2011-02-25 15:53:18 UTC
Your /etc/fstab file contains some invalid entries:

/dev/mapper/vg_dieterpc-lv_home home  ext4  defaults  0 0
/dev/mapper/vg_dieterpc-lv_root root  ext4  defaults  0 0

The second field must be a valid mountpoint, which will start with '/'. Please fix this and then try the upgrade again.

You already have an entry for "/" in your fstab -- why did you add a second one?

The lv_home entry should probably look like this:

/dev/mapper/vg_dieterpc-lv_home /home  ext4  defaults  0 0
                                ^

Comment 4 Dieter Vandenbroeck 2011-02-26 11:17:15 UTC
I first set my lv_home mountpoint to /home. Because this still failed, I also set the lv_root mountpoint to /root. But still nothing. 

The double "/" entry on the other hand fixed my problem. Thanks for your help!

Comment 5 Sandeep Singh 2011-06-10 15:45:36 UTC
Created attachment 504150 [details]
Attached traceback automatically from anaconda.