Bug 848841

Summary: [TUI] anaconda crash when trying to work with empty (new) disk
Product: [Fedora] Fedora Reporter: Petr Schindler <pschindl>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: anaconda-maint-list, awilliam, g.kaviyarasu, jonathan, kparal, pfrields, robatino, roignac, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: RejectedBlocker AcceptedNTH
Fixed In Version: anaconda-18.6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-21 11:39:37 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:
Bug Depends On:    
Bug Blocks: 752662    
Attachments:
Description Flags
log with traceback none

Description Petr Schindler 2012-08-16 14:48:16 UTC
Created attachment 604959 [details]
log with traceback

Description of problem:
This happens only in TUI.
When I want to partition an empty (uninicialized) disk, anaconda falls. I've attached log, where is the traceback and the way I get to that point.

System is restarted right after this happened so it is impossible to read the traceback (I had to use console=ttyS0 to gather the "log")

Version-Release number of selected component (if applicable):
anaconda-18.5
Alpha-TC2 x86_64

How reproducible:
always

Steps to Reproduce:
1. create new virtual guest in virt-manager and create new disk img
2. boot DVD.iso and write text to boot line
3. after anaconda starts, go to partitioning, choose new disk and try to install to partition it
  
Actual results:
anaconda falls, and system is restarted

Expected results:
it should remember partitioning propose and continue to hub

Additional info:

Comment 1 Vadim Rutkovsky 2012-08-16 14:50:35 UTC
Reproduced using netinst iso

Comment 2 Kamil Páral 2012-08-16 17:14:44 UTC
Petr, next time please put the traceback directly into comment (for bugzilla searches), thanks.

Traceback (most recent call last):
  File "/sbin/anaconda", line 959, in <module>
    anaconda._intf.run()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/__init__.py", line 159, in run
    self._app.run()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/simpleline/base.py", line 210, in run
    self._mainloop()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/simpleline/base.py", line 257, in _mainloop
    if not self.input(self._screens[-1][1], c):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/simpleline/base.py", line 296, in input
    key = self._screens[-1][0].input(args, key)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/spokes/storage.py", line 200, in input
    self.apply()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/spokes/storage.py", line 252, in apply
    self.data.bootloader.bootDrive = self.storage.bootloader.disks[0].name
IndexError: list index out of range

Comment 3 Adam Williamson 2012-08-16 19:13:16 UTC
Discussed at 2012-08-16 blocker review meeting: http://meetbot.fedoraproject.org/fedora-bugzappers/2012-08-16/f18-alpha-blocker-review-3.2012-08-16-16.00.html

As we had already agreed to waive the requirement for the text interface to *exist at all* for Alpha, it seems illogical to consider any bug that's in the text interface only to block Alpha release. Thus, this is rejected as a blocker. We could re-consider it for Beta, but in practice it's likely to be fixed by then.

Comment 4 Fedora Update System 2012-08-16 22:07:11 UTC
anaconda-18.6-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.6-1.fc18

Comment 5 Fedora Update System 2012-08-17 06:20:04 UTC
Package anaconda-18.6-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-18.6-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-12095/anaconda-18.6-1.fc18
then log in and leave karma (feedback).

Comment 6 Adam Williamson 2012-08-17 19:49:44 UTC
Proposing as NTH - we should have done that at the meeting. I'm +1.

Comment 7 Adam Williamson 2012-08-20 23:38:45 UTC
Discussed at 2012-08-20 QA meeting, acting as an NTH review meeting: http://meetbot.fedoraproject.org/fedora-meeting/2012-08-20/fedora-qa.2012-08-20-15.00.html . Accepted as NTH as obviously we want to avoid installer crashes, and the fix should be restricted to the text UI codepath so quite safe.

Comment 8 Fedora Update System 2012-08-21 11:39:37 UTC
anaconda-18.6-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.