Bug 704188

Summary: TypeError: 'NoneType' object is not subscriptable
Product: [Fedora] Fedora Reporter: James Laska <jlaska>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 15CC: anaconda-maint-list, jonathan, jturner, kir, rvykydal, vanmeeuwen+fedora
Target Milestone: ---Keywords: CommonBugs
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: anaconda_trace_hash:53800f09dbb4e854bdccf44115f203bb42c1c71cf0c3effb58f9f97c3f97ef4e AcceptedNTH https://fedoraproject.org/wiki/Common_F15_bugs#missing-bootif-fail
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-30 07:22:58 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 657621    
Description Flags
Attached traceback automatically from anaconda. none

Description James Laska 2011-05-12 07:50:09 EDT
The following was filed automatically by anaconda:
anaconda 15.30 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 395, in update
    bootif_mac = flags.cmdline.get("BOOTIF")[3:].replace("-", ":").upper()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 352, in __init__
  File "/usr/lib64/python2.7/site-packages/pyanaconda/__init__.py", line 154, in network
    self._network = network.Network()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 805, in newVG
    name = self.createSuggestedVGName(self.anaconda.network)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/partitioning.py", line 135, in _scheduleLVs
    vg = anaconda.storage.newVG(pvs=pvs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/partitioning.py", line 225, in doAutoPartition
    _scheduleLVs(anaconda, devs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/dispatch.py", line 211, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/dispatch.py", line 130, in gotoNext
  File "/usr/lib64/python2.7/site-packages/pyanaconda/dispatch.py", line 234, in currentStep
  File "/usr/lib64/python2.7/site-packages/pyanaconda/text.py", line 529, in run
    (step, instance) = anaconda.dispatch.currentStep()
  File "/usr/sbin/anaconda", line 932, in <module>
TypeError: 'NoneType' object is not subscriptable
Comment 1 James Laska 2011-05-12 07:50:14 EDT
Created attachment 498517 [details]
Attached traceback automatically from anaconda.
Comment 2 James Laska 2011-05-12 07:52:35 EDT
The reproducer here was pxebooting into the default cobbler kickstart install.  I believe cobbler is adding BOOTIF= and doing a text-mode kickstart install.  Looks like it is trying to get the LVM VG name from the system hostname, but that data may not yet be available?
Comment 3 Radek Vykydal 2011-05-12 08:08:53 EDT
The cause is having ksdevice=bootif without BOOTIF= provided (by pxe). This patch on master would fix it:
Comment 4 James Laska 2011-05-12 08:25:25 EDT
Ah, thanks Radek.  This seems like a straightforward fix, I'd like to propose this for F15.  

Since there is a workaround present (provide BOOTIF=), I don't believe this is a MUSTHAVE blocker fix for F15.  However, it seems perfectly sensible to include if anaconda should be rebuilt.  And considering this can't be fixed post-release, and is of limited scope, I'm all for it :)

+0 Blocker, +1 NTH

Any other votes?
Comment 5 Radek Vykydal 2011-05-12 09:00:07 EDT
(In reply to comment #4)
> Ah, thanks Radek.  This seems like a straightforward fix, I'd like to propose
> this for F15.  

Yes, seems safe, it is in master and rhel6.1 so it is also quite tested.

> +0 Blocker, +1 NTH

+1 NTH
Comment 6 James Laska 2011-05-16 12:20:04 EDT
Discussed during 2011-05-16 Fedora QA blocker review meeting [1].  Accepted as NTH for F15.  Should an anaconda respin be required, this bug can be included in an updated anaconda package.  Otherwise, no action is required.

[1] http://meetbot.fedoraproject.org/fedora-meeting/2011-05-16/fedora-qa.2011-05-16-15.00.html
Comment 7 Radek Vykydal 2011-07-01 07:07:50 EDT
*** Bug 718163 has been marked as a duplicate of this bug. ***