Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1169020

Summary: UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 12: ordinal not in range(128)
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: anaconda-maint-list, g.kaviyarasu, jonathan, robatino, vanmeeuwen+fedora, vpodzime
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:648900b9dc1be8bafd2155b5ab040139a225bd7f0427d4f941463addf620c72d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-01 09:29:45 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: 1043129    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: journalctl
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: ifcfg.log none

Description Adam Williamson 2014-11-29 01:33:55 UTC
Description of problem:
Crashes when installing from Fedora 21 Final RC1 Workstation live in Russian, when entering the Installation Destination spoke.

Version-Release number of selected component:
anaconda-core-21.48.18-1.fc21.x86_64

The following was filed automatically by anaconda:
anaconda 21.48.18-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 616, in __str__
    s += " with %s" % self.format
  File "/usr/lib64/python2.7/logging/__init__.py", line 335, in getMessage
    msg = msg % self.args
  File "/usr/lib64/python2.7/logging/__init__.py", line 471, in format
    record.message = record.getMessage()
  File "/usr/lib64/python2.7/logging/__init__.py", line 732, in format
    return fmt.format(record)
  File "/usr/lib64/python2.7/logging/handlers.py", line 843, in emit
    msg = self.format(record) + '\000'
  File "/usr/lib64/python2.7/site-packages/pyanaconda/anaconda_log.py", line 85, in emit
    SysLogHandler.emit(self, record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 757, in handle
    self.emit(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 1329, in callHandlers
    hdlr.handle(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 1289, in handle
    self.callHandlers(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 1279, in _log
    self.handle(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 1148, in debug
    self._log(DEBUG, msg, args, **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/storage_log.py", line 47, in log_method_return
    log.debug(fmt, *fmt_args)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 2348, in getDeviceByName
    log_method_return(self, result)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 2543, in resolveDevice
    device = self.getDeviceByName(devspec)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 409, in execute
    drive = storage.devicetree.resolveDevice(self.bootDrive)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 2008, in doKickstartStorage
    ksdata.bootloader.execute(storage, ksdata, instClass)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 313, in _doExecute
    doKickstartStorage(self.storage, self.data, self.instclass)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run
    threading.Thread.run(self, *args, **kwargs)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 12: ordinal not in range(128)

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-WS-x86_64-21-1 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.17.4-301.fc21.x86_64
other involved packages: python-blivet-0.61.12-1.fc21.noarch, anaconda-gui-21.48.18-1.fc21.x86_64, python-libs-2.7.8-7.fc21.x86_64
product:        Fedora"
release:        Fedora release 21 (Twenty One)
type:           anaconda
version:        Fedora

Comment 1 Adam Williamson 2014-11-29 01:34:03 UTC
Created attachment 962621 [details]
File: anaconda-tb

Comment 2 Adam Williamson 2014-11-29 01:34:04 UTC
Created attachment 962622 [details]
File: anaconda.log

Comment 3 Adam Williamson 2014-11-29 01:34:05 UTC
Created attachment 962623 [details]
File: environ

Comment 4 Adam Williamson 2014-11-29 01:34:47 UTC
Created attachment 962624 [details]
File: journalctl

Comment 5 Adam Williamson 2014-11-29 01:34:48 UTC
Created attachment 962625 [details]
File: lsblk_output

Comment 6 Adam Williamson 2014-11-29 01:34:48 UTC
Created attachment 962626 [details]
File: nmcli_dev_list

Comment 7 Adam Williamson 2014-11-29 01:34:49 UTC
Created attachment 962627 [details]
File: os_info

Comment 8 Adam Williamson 2014-11-29 01:34:51 UTC
Created attachment 962628 [details]
File: program.log

Comment 9 Adam Williamson 2014-11-29 01:34:52 UTC
Created attachment 962629 [details]
File: storage.log

Comment 10 Adam Williamson 2014-11-29 01:34:53 UTC
Created attachment 962630 [details]
File: ifcfg.log

Comment 11 Adam Williamson 2014-11-29 01:38:14 UTC
I suspect Russian would also be affected by https://bugzilla.redhat.com/show_bug.cgi?id=1169019 , but it hits this first.

Proposing as a Final blocker, conditional violation of "When using a dedicated installer image, the installer must be able to complete an installation using the text, graphical and VNC installation interfaces. " (or any other 'must be able to install' criterion) in the case that Russian is used (probably affects non-live as well as live, but I haven't checked yet).

Comment 12 Adam Williamson 2014-11-29 03:06:05 UTC
Can't reproduce this in Beta, Final TC1 or Final TC4, it really seems to have shown up in RC1 somehow.

Comment 13 Adam Williamson 2014-11-29 03:16:49 UTC
Actually, the translations seem much more complete in Beta, TC1 and TC4 - the whole Installation Destination screen is translated in those builds, but in Final RC1 it isn't, in fact only the disk size units and the "Local standard disks" caption above the disk selection pane are translated. All the rest of the screen is not translated. Seems like somehow something went wrong with translations in the anaconda .18 build, or the Final RC1 live compose, or something.

Final RC1 Server network install is similar un-translated, but the bug does not happen with that image - only with the Workstation live. Final TC4 Server netinst is fully translated and does not hit the bug either.

Final RC1 KDE live reproduces both the missing translations and the crash.

So, the 'many strings not showing translations' bug affects all, or at least multiple, Final RC1 images, but the 'crash on "existing (size) disk" string' bug affects only Final RC1 live images. Final TC4 and earlier images do not appear to suffer either bug.

Comment 14 Vratislav Podzimek 2014-11-30 16:39:31 UTC
(In reply to Adam Williamson (Red Hat) from comment #13)
> Actually, the translations seem much more complete in Beta, TC1 and TC4 -
> the whole Installation Destination screen is translated in those builds, but
> in Final RC1 it isn't, in fact only the disk size units and the "Local
> standard disks" caption above the disk selection pane are translated. All
> the rest of the screen is not translated. Seems like somehow something went
> wrong with translations in the anaconda .18 build, or the Final RC1 live
> compose, or something.
> 
> Final RC1 Server network install is similar un-translated, but the bug does
> not happen with that image - only with the Workstation live. Final TC4
> Server netinst is fully translated and does not hit the bug either.
> 
> Final RC1 KDE live reproduces both the missing translations and the crash.
> 
> So, the 'many strings not showing translations' bug affects all, or at least
> multiple, Final RC1 images, but the 'crash on "existing (size) disk" string'
> bug affects only Final RC1 live images. Final TC4 and earlier images do not
> appear to suffer either bug.
We have seen many UnicodeDecodeError bugs appearing only in Live installations before, this seems to be the same case. Something is different in the GNOME session than in the Anaconda's installation environment. However, it should be really easy to fix this (and bug #1169019 too as they seem to have the same cause).

Comment 15 Vratislav Podzimek 2014-12-01 09:29:45 UTC
Turns out the root cause of this issue and also bug #1169019 is that the new pyparted build's python modules return unicode objects instead of (byte) strings and such combination of unicode objects and utf8-encoded (byte) strings causes issues.

Closing this as a duplicate of #1169019.

*** This bug has been marked as a duplicate of bug 1169019 ***