Bug 973019

Summary: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
Product: [Fedora] Fedora Reporter: Nix\ <nix.sasl>
Component: pypartedAssignee: Brian Lane <bcl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: anaconda-maint-list, awilliam, bcl, dcantrell, dlehman, dshea, g.kaviyarasu, jonathan, jskladan, kparal, mkolman, nix.sasl, robatino, sbueno, tflink, vanmeeuwen+fedora, vpodzime
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:0edf3649b7583f3a23ee66587fa0cc0c2277c5b7230ca30010b09fa040465ada AcceptedBlocker
Fixed In Version: pyparted-3.9-3.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-26 04:28:01 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:
Bug Depends On:    
Bug Blocks: 834090    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: backtrace
none
File: environ
none
File: ifcfg.log
none
File: lsblk_output
none
File: messages
none
File: nmcli_dev_list
none
File: program.log
none
File: storage.log none

Description Nix\ 2013-06-11 05:28:09 UTC
Description of problem:
1.- Start liveinst
2.- Select hard drive
3.- Select primary partition
4.- Click on sda1 -existent partition-, click on - symbol, click on > for view all partitions
The following was filed automatically by anaconda:
anaconda 19.30.3-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 297, in refresh
    label.set_text(label.get_text() % txt)
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2132, in on_remove_clicked
    device.name, root_name)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)

Version-Release number of selected component:
anaconda-19.30.3-1.fc19.i686

Additional info:
reporter:       libreport-2.1.4
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=Fedora-Live-KDE-i686-19-TC2-1 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
core_backtrace: 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.4-301.fc19.i686
packaging.log:  
product:        Fedora
release:        Fedora release 19 (Schrödinger’s Cat)
type:           anaconda
version:        19

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2132, in on_remove_clicked
    device.name, root_name)
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 297, in refresh
    label.set_text(label.get_text() % txt)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)

Comment 1 Nix\ 2013-06-11 05:28:17 UTC
Created attachment 759424 [details]
File: anaconda-tb

Comment 2 Nix\ 2013-06-11 05:28:22 UTC
Created attachment 759425 [details]
File: anaconda.log

Comment 3 Nix\ 2013-06-11 05:28:26 UTC
Created attachment 759426 [details]
File: backtrace

Comment 4 Nix\ 2013-06-11 05:28:31 UTC
Created attachment 759427 [details]
File: environ

Comment 5 Nix\ 2013-06-11 05:28:35 UTC
Created attachment 759428 [details]
File: ifcfg.log

Comment 6 Nix\ 2013-06-11 05:28:39 UTC
Created attachment 759429 [details]
File: lsblk_output

Comment 7 Nix\ 2013-06-11 05:28:44 UTC
Created attachment 759430 [details]
File: messages

Comment 8 Nix\ 2013-06-11 05:28:51 UTC
Created attachment 759431 [details]
File: nmcli_dev_list

Comment 9 Nix\ 2013-06-11 05:28:56 UTC
Created attachment 759432 [details]
File: program.log

Comment 10 Nix\ 2013-06-11 05:29:02 UTC
Created attachment 759433 [details]
File: storage.log

Comment 11 Nix\ 2013-06-11 05:47:35 UTC
If you select a pre-existent partition, later personal partitioning, all screen of anaconda turn grey and crash.

Comment 12 Adam Williamson 2013-06-18 02:17:31 UTC
*** Bug 974736 has been marked as a duplicate of this bug. ***

Comment 13 Adam Williamson 2013-06-18 02:22:14 UTC
Proposing as a final FE as a crasher in a fairly normal partitioning operation. Is this related to some property of the partion, perhaps a volume label containing a non-ASCII character or something like that?

Comment 14 Vratislav Podzimek 2013-06-19 12:00:06 UTC
This is a blivet issue. Patch posted to anaconda-patches.

Comment 15 Adam Williamson 2013-06-19 18:22:24 UTC
Discussed at 2013-06-19 freeze exception review meeting: http://meetbot.fedoraproject.org/fedora-blocker-review/2013-06-19/f19final-blocker-review-7.2013-06-19-16.01.log.txt . Accepted as a freeze exception (at least) as a crasher in the installer. There's a reasonable argument for this being a blocker, but as there's a patch already we're expecting it'll just make it into 19.30.9 and make the discussion academic.

The patch is https://lists.fedorahosted.org/pipermail/anaconda-patches/2013-June/004692.html , to track review status.

Comment 16 Nix\ 2013-06-20 06:57:27 UTC
Non ASCII characters in disk label used, only Fedora 18 system the old partitioned system, no less no more.

Comment 17 Nix\ 2013-06-20 07:31:35 UTC
Bug present in Fedora 19 TC6-1 KDE LiveCD.
The label of the existent partion is: Fedora Linux 19 for i686
Trying of delete / or swap, crash anaconda with this bug. Using Spanish for installation and setx es in terminal before liveinst command

Comment 18 Adam Williamson 2013-06-20 07:39:35 UTC
Yes, that's expected. The fix is still pending review. It is not included in TC6.

Comment 19 Kamil Páral 2013-06-21 10:23:33 UTC
We received many more reports of this. Proposing as a blocker.

Comment 20 Adam Williamson 2013-06-21 21:58:33 UTC
+1 blocker, if we're getting multiple reports of this (or closely-related bugs). anaconda team, can you make sure there's someone looking into all of these UnicodeDecodeError s? Thanks!

Comment 21 Adam Williamson 2013-06-24 16:28:20 UTC
Add another See Also, 973384 . There's also https://bugzilla.redhat.com/show_bug.cgi?id=965556 , but that's 'utf8' codec rather than 'ascii' codec.

Comment 22 Adam Williamson 2013-06-24 16:47:19 UTC
It seems that several of the 'see also' bugs were dupes of each other, but they are *not* the same as this bug. So far as open, different UnicodeDecodeError bugs go, we now have this one (973019), 973384, and 965556.

Comment 23 Adam Williamson 2013-06-24 17:13:22 UTC
*** Bug 977491 has been marked as a duplicate of this bug. ***

Comment 24 Adam Williamson 2013-06-24 17:14:09 UTC
tflink reproduced this with F19 TC6 Desktop live in Japanese:

"I started an install using F19 final TC6 x86_64 live desktop, selecting Japanese language. The install was to a VM with 2 vdisks containing a previous F19 install to sw RAID1. I hit this while in custom partitioning, right after deleting the old swap partition"

Comment 25 Adam Williamson 2013-06-24 17:24:30 UTC
Discussed at 2013-06-24 blocker review meeting: http://meetbot.fedoraproject.org/fedora-blocker-review/2013-06-24/f19final-blocker-review-8.2013-06-24-16.00.log.txt . Accepted as a blocker per criterion "The installer must be able to create and install to any workable partition layout using any file system offered in a default installer configuration, LVM, software, hardware or BIOS RAID, or combination of the above" (in the case of apparently several non-English languages).

Comment 26 Fedora Update System 2013-06-24 20:10:40 UTC
pyparted-3.9-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/pyparted-3.9-3.fc19

Comment 27 Adam Williamson 2013-06-24 20:11:19 UTC
http://adamwill.fedorapeople.org/20130624-desktop-x86_64.iso ought to fix this (we hope). Can people who are able to reproduce this bug please test and report back ASAP? Thanks!

Comment 28 Adam Williamson 2013-06-24 20:30:51 UTC
I can reproduce this by doing an all-defaults install of F19 TC6 Live to a VM then booting it again, choosing Japanese, doing custom partitioning, removing one existing partition (swap) then selecting another existing partition (/boot). I'll see if I can confirm the fix.

Comment 29 Adam Williamson 2013-06-24 20:37:00 UTC
I can't reproduce following the same procedure with http://adamwill.fedorapeople.org/20130624-desktop-x86_64.iso , so looks like the fix worked here too!

Comment 30 Tim Flink 2013-06-24 20:46:20 UTC
(In reply to Adam Williamson from comment #29)
> I can't reproduce following the same procedure with
> http://adamwill.fedorapeople.org/20130624-desktop-x86_64.iso , so looks like
> the fix worked here too!

Same here. I can't reproduce the crash from 977491 (duped to this bug) with this live iso but I can reproduce 100% on the TC6 desktop live image.

Comment 31 Nix\ 2013-06-25 05:53:27 UTC
(In reply to Adam Williamson from comment #29)
> I can't reproduce following the same procedure with
> http://adamwill.fedorapeople.org/20130624-desktop-x86_64.iso , so looks like
> the fix worked here too!

Work for me the updated package from https://admin.fedoraproject.org/updates/pyparted-3.9-3.fc19.

1.-Starting a LiveCD
2.-#rpm -Uvh to pyparted-3.9-3.fc19 rpm downloaded
3.-liveinst
4.-delete a previous partition created for a previous installation, works for me

karma +1 added

Comment 32 Josef Skladanka 2013-06-25 13:45:17 UTC
Works for me with RC1, at least Adam's reproducer from comment #28 is not raising any exceptions.

Comment 33 Fedora Update System 2013-06-26 04:28:01 UTC
pyparted-3.9-3.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.