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: | anaconda | Assignee: | 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.0 | CC: | 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
Xiaowei Li
2012-11-19 07:27:18 UTC
Created attachment 647553 [details]
File: program.log
Created attachment 647554 [details]
File: release
Created attachment 647555 [details]
File: executable
Created attachment 647556 [details]
File: version
Created attachment 647557 [details]
File: product
Created attachment 647558 [details]
File: type
Created attachment 647559 [details]
File: environ
Created attachment 647560 [details]
File: storage.log
Created attachment 647561 [details]
File: anaconda.log
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
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. Created attachment 648240 [details]
anaconda.png
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. didn't see this issue in tree RHEL-7.0-20121129.0 |