Bug 1217504
Summary: | UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 9: ordinal not in range(128) | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Shea <dshea> | ||||||||||||||||||||||
Component: | anaconda | Assignee: | David Shea <dshea> | ||||||||||||||||||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||
Priority: | unspecified | ||||||||||||||||||||||||
Version: | 22 | CC: | adamw+fedora, anaconda-maint-list, awilliam, danofsatx, dshea, g.kaviyarasu, joerg.lechner, jonathan, kubek-93, robatino, vanmeeuwen+fedora | ||||||||||||||||||||||
Target Milestone: | --- | ||||||||||||||||||||||||
Target Release: | --- | ||||||||||||||||||||||||
Hardware: | x86_64 | ||||||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||||||
Whiteboard: | AcceptedBlocker abrt_hash:2fe9471403219588798fd000c76a6c4d558ad9293bdecb5e7cc0600db6de151a | ||||||||||||||||||||||||
Fixed In Version: | python-blivet-1.0.9-1.fc22 | Doc Type: | Bug Fix | ||||||||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||||||
Last Closed: | 2015-05-13 01:17:06 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: | 1043130 | ||||||||||||||||||||||||
Attachments: |
|
Description
David Shea
2015-04-30 13:57:32 UTC
Created attachment 1020596 [details]
File: anaconda-tb
Created attachment 1020597 [details]
File: anaconda.log
Created attachment 1020598 [details]
File: environ
Created attachment 1020600 [details]
File: journalctl
Created attachment 1020601 [details]
File: lsblk_output
Created attachment 1020602 [details]
File: nmcli_dev_list
Created attachment 1020603 [details]
File: os_info
Created attachment 1020604 [details]
File: program.log
Created attachment 1020605 [details]
File: storage.log
Created attachment 1020606 [details]
File: ifcfg.log
Proposed as a Blocker for 22-final by Fedora user dshea using the blocker tracking app because: Anything non-ASCII in a storage warning will crash the installer in a live environment. As far as reproducer, I was running in German and left the storage spoke without selecting any disks. Well, the first since Beta - this will only have started breaking since we made translations unicodes rather than strs (which we did between Beta and Final TC1). The str(e) forces an encode of the unicode object, and we hit the good ol' 'with objects from other modules(?) the default encoding is ascii' problem (which is most extensively discussed at https://bugzilla.redhat.com/show_bug.cgi?id=1169019 ). We could make it something like: unicode(e).encode('utf-8').split("\n") which would still work when it's not translated, because you can do "foobar".encode('utf-8') and it just gives you "foobar" back. But as mentioned in IRC today we're probably going to find crap like this all over the place, and I still think we want the 'force the default encoding to be utf-8 on lives as well as non-lives' hammer as the least worst choice here. Using the convention of 'e' as an error, I find 30 instances of str(e) in current f22-branch; not all of those will necessarily be problematic as it seems like in *some* cases python somehow uses utf-8 when a utf-8 locale is set, it seems to be something like 'it uses ascii for objects imported from other libs' or something like that. See the note in https://bugzilla.redhat.com/show_bug.cgi?id=1169019#c35 - sgallagh and I started poking down that avenue at some point, but didn't get all the way. I'm guessing it's something like "modules / objects that get imported before we call setup_locale() in pyanaconda/ui/gui/spokes/welcome.py". Discussed at the 2015-05-04 blocker review meeting.[0] Voted as AcceptedBlocker. AcceptedBlocker - violates "When using the guided partitioning flow, the installer must be able to: ... Reject or disallow invalid disk and volume configurations without crashing." in the case of a non-English live install. [0] http://meetbot.fedoraproject.org/meetbot/fedora-blocker-review/2015-05-04/f22-blocker-review.2015-05-04-16.00.log.txt *** Bug 1217411 has been marked as a duplicate of this bug. *** *** Bug 1217610 has been marked as a duplicate of this bug. *** anaconda-22.20.12-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/anaconda-22.20.12-1.fc22 I verified the 'encryption passphrase' case at least with TC3, will also check the 'reclaim space in German/Russian' case. "reclaim space in German" ok with TC3. For me works. python-blivet-1.0.9-1.fc22, anaconda-22.20.12-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. *** Bug 1222333 has been marked as a duplicate of this bug. *** |