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 877888

Summary: self._accordion.currentPage() returns None at 1702 of /usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py
Product: Red Hat Enterprise Linux 7 Reporter: Xiaowei Li <xiaoli>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CURRENTRELEASE QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: qcai
Target Milestone: beta   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-07 06:58:36 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:
Attachments:
Description Flags
File: program.log
none
File: release
none
File: executable
none
File: version
none
File: product
none
File: type
none
File: environ
none
File: storage.log
none
File: anaconda.log
none
anaconda.png none

Description Xiaowei Li 2012-11-19 07:27:18 UTC
Version-Release number of selected component:
anaconda-18.29

Additional info:
libreport version: 2.0.18
kernel:         3.6.0-0.29.el7.x86_64

description:
:The following was filed automatically by anaconda:
:anaconda 18.29 exception report
:Traceback (most recent call first):
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 1741, in on_remove_clicked
:    for dev in [s._device for s in page._members]:
:AttributeError: 'NoneType' object has no attribute '_members'

Comment 1 Xiaowei Li 2012-11-19 07:27:22 UTC
Created attachment 647553 [details]
File: program.log

Comment 2 Xiaowei Li 2012-11-19 07:27:23 UTC
Created attachment 647554 [details]
File: release

Comment 3 Xiaowei Li 2012-11-19 07:27:25 UTC
Created attachment 647555 [details]
File: executable

Comment 4 Xiaowei Li 2012-11-19 07:27:26 UTC
Created attachment 647556 [details]
File: version

Comment 5 Xiaowei Li 2012-11-19 07:27:28 UTC
Created attachment 647557 [details]
File: product

Comment 6 Xiaowei Li 2012-11-19 07:27:30 UTC
Created attachment 647558 [details]
File: type

Comment 7 Xiaowei Li 2012-11-19 07:27:31 UTC
Created attachment 647559 [details]
File: environ

Comment 8 Xiaowei Li 2012-11-19 07:27:34 UTC
Created attachment 647560 [details]
File: storage.log

Comment 9 Xiaowei Li 2012-11-19 07:27:36 UTC
Created attachment 647561 [details]
File: anaconda.log

Comment 10 Xiaowei Li 2012-11-19 07:29:48 UTC
Hit this when trying to removing the existing partitions of boot disk. 

Python debug info as below:

self._accordion.currentPage() returns None at 1702 of 
/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py(1741)on_remove_clicked()
-> for dev in [s._device for s in page._members]:

(Pdb) l
1736                    if rc == 0:
1737                        dialog.window.destroy()
1738                        return
1739 
1740                if dialog.deleteAll:
1741 ->                 for dev in [s._device for s in page._members]:
1742                        self._destroy_device(dev)
1743                else:
1744                    self._destroy_device(device)
1745 
1746            log.info("ui: removed device %s" % device.name)
(Pdb) p page
None
(Pdb) p page._members
*** AttributeError: AttributeError("'NoneType' object has no attribute '_members'",)

(Pdb) l 1702
1697        def on_remove_clicked(self, button):
1698            # Nothing displayed on the RHS?  Nothing to remove.
1699            if not self._current_selector:
1700                return
1701 
1702            page = self._accordion.currentPage()
1703            selector = self._current_selector
1704            device = self._current_selector._device
1705            root_name = None
1706            if selector._root:
1707                root_name = selector._root.name
(Pdb) p self._accordion.currentPage()
None

Comment 11 Xiaowei Li 2012-11-20 03:13:02 UTC
steps to reproduce:
1. Install OS to the boot disk has existing partitions
2. On the 'MANUAL PARTITION' page, select 'RedHat Enterprise Linux Server Linux 7.0 for x86_64 ' has the existing partitions, then click '-' to remove the partitions.
3. A dialog would then appear to prompt to ask the users if will remove all the partitions. Check it, then the error message appears.

attaching the picture.

Comment 12 Xiaowei Li 2012-11-20 03:17:16 UTC
Created attachment 648240 [details]
anaconda.png

Comment 13 Chris Lumens 2012-11-21 16:44:35 UTC
I am unable to reproduce this using a tree I just built today.  From the looks of your screenshot plus the code involved, I think you would only hit this if everything on the left hand side of the screen were collapsed.  I think that's the case where page is None.

However trying today, with everything collapsed, I do not get the "remove all partitions" checkbox so I think this should be fixed.  Can you test with the next RHEL tree containing something later than anaconda-18.29 and double check?  Thanks.

Comment 14 Xiaowei Li 2012-12-07 06:58:36 UTC
didn't see this issue in tree RHEL-7.0-20121129.0