Bug 861376

Summary: IndexError: tuple index out of range
Product: [Fedora] Fedora Reporter: Mark Hamzy <hamzy>
Component: anacondaAssignee: Chris Lumens <clumens>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: awilliam, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64   
OS: Unspecified   
Whiteboard: abrt_hash:4cff82fa4687bff41bda863c8b766830ad53d1a20263fefb0b630bb3f339b99d
Fixed In Version: anaconda-18.11-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-23 02:41:46 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: anaconda-tb
none
File: product
none
File: type
none
File: environ none

Description Mark Hamzy 2012-09-28 12:16:00 UTC
Version-Release number of selected component:
anaconda-18.10

Additional info:
libreport version: 2.0.12
cmdline:        /usr/bin/python  /sbin/anaconda
kernel:         3.6.0-0.rc6.git0.2.fc18.ppc64

Comment 1 Mark Hamzy 2012-09-28 12:16:13 UTC
Created attachment 618537 [details]
File: anaconda-tb

Comment 2 Mark Hamzy 2012-09-28 12:16:20 UTC
Created attachment 618538 [details]
File: product

Comment 3 Mark Hamzy 2012-09-28 12:16:23 UTC
Created attachment 618539 [details]
File: type

Comment 4 Mark Hamzy 2012-09-28 12:16:25 UTC
Created attachment 618540 [details]
File: environ

Comment 5 Mark Hamzy 2012-09-29 00:09:07 UTC
With https://lists.fedorahosted.org/pipermail/anaconda-patches/2012-September/001338.html now gives:

Traceback (most recent call first):
  File "/tmp/updates/pyanaconda/errors.py", line 96, in _partitionErrorHandler
"])}"The installation will now terminate.") % {"errortxt": str(kwargs["exceptionn
  File "/tmp/updates/pyanaconda/errors.py", line 251, in cb
    rc = _map[exn.__class__.__name__](*args, **kwargs)
tition "/tmp/updates/pyanaconda/storage/partitioning.py", line 324, in doAutoParr
    if errorHandler.cb(exn) == ERROR_RAISE:
  File "/tmp/updates/pyanaconda/kickstart.py", line 266, in execute
    doAutoPartition(storage, ksdata)
  File "/tmp/updates/pyanaconda/kickstart.py", line 1558, in doKickstartStorage
    ksdata.autopart.execute(storage, ksdata, instClass)
teFile "/tmp/updates/pyanaconda/ui/gui/spokes/storage.py", line 333, in _doExecuu
    doKickstartStorage(self.storage, self.data, self.instclass)
  File "/usr/lib64/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/tmp/updates/pyanaconda/threads.py", line 87, in run
    threading.Thread.run(self, *args, **kwargs)
ValueError: unsupported format character '


' (0xa) at index 66

Comment 6 Mark Hamzy 2012-09-29 00:35:19 UTC
You are missing the % format character.

diff --git a/pyanaconda/errors.py b/pyanaconda/errors.py
index 8917184..3b8de04 100644
--- a/pyanaconda/errors.py
+++ b/pyanaconda/errors.py
@@ -92,8 +92,8 @@ class ErrorHandler(object):
         return ERROR_RAISE
 
     def _partitionErrorHandler(self, *args, **kwargs):
-        message = _("The following errors occurred with your partitioning:\n\n%(errortxt)\n\n"
-                    "The installation will now terminate.") % {"errortxt": args[0]}
+        message = _("The following errors occurred with your partitioning:\n\n%(errortxt)s\n\n"
+                    "The installation will now terminate.") % {"errortxt": str(kwargs["exception"])}
         self.ui.showError(message)
         return ERROR_RAISE

Comment 7 Mark Hamzy 2012-09-29 00:37:05 UTC
By the way, do we really want to exit the installer because the automatic partitioning came up with a problem?

Comment 8 Chris Lumens 2012-10-01 14:14:13 UTC
PartitioningError is raised for real problems that occur during partition execution, where the user can't really do anything about it, so yeah it makes sense to exit here.

Comment 9 Fedora Update System 2012-10-02 14:12:41 UTC
anaconda-18.11-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.11-1.fc18

Comment 10 Fedora Update System 2012-10-02 19:47:03 UTC
Package anaconda-18.11-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.11-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-15207/anaconda-18.11-1.fc18
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2012-10-04 00:57:28 UTC
anaconda-18.12-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.12-1.fc18

Comment 12 Adam Williamson 2012-11-23 02:41:46 UTC
This bug looks to have been fixed for many anaconda builds now but missed being closed. If you find you are still experiencing it with Fedora 18 Beta (RC1) or later, please re-open the bug.