Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1295897

Summary: RHEL 6.7 installation fails with "NameError: global name 'index' is not defined"
Product: Red Hat Enterprise Linux 6 Reporter: Mikuláš Patočka <mpatocka>
Component: anacondaAssignee: David Lehman <dlehman>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.7CC: jstodola, mkovarik, sbueno
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-13.21.243-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-10 20:46:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
the abrt report from the crash none

Description Mikuláš Patočka 2016-01-05 17:47:32 UTC
Created attachment 1111919 [details]
the abrt report from the crash

Description of problem:
RHEL 6.7 installation fails.

Version-Release number of selected component (if applicable):
RHEL-6.7 i686

How reproducible:
Always

Steps to Reproduce:
1. run the i686 RHEL-6.7 installer

Actual results:
it crashes very early, when scanning devices, with this error:
anaconda 13.21.239 exception report
Traceback (most recent call first):
  File "/usr/lib/anaconda/storage/devicetree.py", line 1614, in addLV
    % (lv_sizes[index], origin.name))
  File "/usr/lib/anaconda/storage/devicetree.py", line 1701, in handleVgLvs
    ret = addLV(*lv) or ret
  File "/usr/lib/anaconda/storage/devicetree.py", line 2138, in _setupLvs
    if self.handleVgLvs(device):
  File "/usr/lib/anaconda/storage/devicetree.py", line 2232, in populate
    if self._setupLvs():
  File "/usr/lib/anaconda/storage/__init__.py", line 467, in reset
    self.devicetree.populate(prog)
  File "/usr/lib/anaconda/storage/__init__.py", line 109, in storageInitialize
    storage.reset(examine_all=examine_all)
  File "/usr/lib/anaconda/dispatch.py", line 210, 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 1458, in setScreen
    self.anaconda.dispatch.gotoNext()
  File "/usr/lib/anaconda/gui.py", line 1371, in nextClicked
    self.setScreen ()
NameError: global name 'index' is not defined

Expected results:
the installer should not crash

Additional info:
this bug is new to RHEL-6.7. RHEL-6.6 can be installed.

Comment 2 Mikuláš Patočka 2016-01-05 18:08:39 UTC
This is the list of physical volumes, volume groups and logical volumes that are present on the machine - that is probably causing the crash:
  PV            VG     Fmt  Attr PSize   PFree
  /dev/sdb5     vg1    lvm2 a--    9,32g 5,79g
  /dev/vg1/orig Vg_org lvm2 a--  124,00m    0
  /dev/vg1/snap Vg_cow lvm2 a--  124,00m    0
  VG     #PV #LV #SN Attr   VSize   VFree
  Vg_cow   1   1   0 wz--n- 124,00m    0
  Vg_org   1   1   0 wz--n- 124,00m    0
  vg1      1   8   1 wz--n-   9,32g 5,79g
  LV       VG     Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  Lv_cow   Vg_cow -wi------- 124,00m
  Lv_org   Vg_org -wi------- 124,00m
  o        vg1    owi-a-s--- 128,00m
  orig     vg1    -wi-a----- 128,00m
  s1       vg1    swi-a-s--- 128,00m      o      0,00
  snap     vg1    -wi-a----- 128,00m
  stripe   vg1    -wa-a-----  32,00m
  switch-0 vg1    -wi-a-----   1,00g
  switch-1 vg1    -wi-a-----   1,00g
  switch-2 vg1    -wi-a-----   1,00g

Comment 3 Jan Stodola 2016-01-13 10:04:21 UTC
Reproduced on a system with an LVM snapshot:

[root@localhost ~]# lvs
  LV       VG       Attr       LSize    Pool Origin   Data%  Meta%  Move Log Cpy%Sync Convert
  LogVol00 VolGroup owi-aos---    1,97g
  LogVol01 VolGroup -wi-ao----  300,00m
  snap     VolGroup swi-a-s--- 1016,00m      LogVol00 0,20
[root@localhost ~]#

Comment 5 Michal Kovarik 2016-02-23 09:43:25 UTC
Reproduced on RHEL-6.7. Verified on RHEL-6.8-20160212.2 with anaconda-13.21.246-1.el6.

Comment 7 errata-xmlrpc 2016-05-10 20:46:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0798.html