Bug 39136

Summary: System setup fails and does not complete when German language + english locale is selected
Product: UCS Reporter: Erik Damrose <damrose>
Component: System setupAssignee: Erik Damrose <damrose>
Status: CLOSED FIXED QA Contact: Janek Walkenhorst <walkenhorst>
Severity: normal    
Priority: P5 CC: gohmann, troeder
Version: UCS 4.0   
Target Milestone: UCS 4.0-2-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:

Description Erik Damrose univentionstaff 2015-08-10 18:25:21 CEST
+++ This bug was initially created as a clone of Bug #39131 +++

After fixing the original bug it appears that the traceback was masking the core problem: when selecting German as a language but a location with an associated en_US locale, de_DE is not added to the list of locales in the 'profile' file.

System setup should force en_US and de_DE as configured locales.

Example traceback:

Traceback (most recent call last):
  File "/usr/lib/univention-system-setup/appliance-hooks.d/20_install_univention_welcome_screen", line 33, in <module>
    from univention.management.console.modules.setup.setup_script import AptScript, main, _
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/setup_script.py", line 50, in <module>
    _ = setup_i18n()
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/setup_script.py", line 44, in setup_i18n
    locale.setlocale(locale.LC_ALL, locale.getdefaultlocale())
  File "/usr/lib/python2.7/locale.py", line 547, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
Comment 1 Erik Damrose univentionstaff 2015-08-10 19:16:01 CEST
r62904 force en_us and de_de
 univention-system-setup 8.1.69-24.913.201508101852
r62905 yaml

I tested successfully with language=german and location=boston
Comment 2 Janek Walkenhorst univentionstaff 2015-08-10 19:18:00 CEST
Code review: OK
Comment 3 Erik Damrose univentionstaff 2015-08-10 19:46:56 CEST
another test: language: english, location: boston
-> profile contains de_DE and en_US
Comment 4 Janek Walkenhorst univentionstaff 2015-08-10 19:53:44 CEST
Test: OK
Advisory: OK
Comment 5 Erik Damrose univentionstaff 2015-08-10 19:55:37 CEST
Please also QA:
r62906 Merge to UCS 4.0-3
r62907 Merge to UCS 4.1-0
Comment 6 Janek Walkenhorst univentionstaff 2015-08-10 19:58:50 CEST
(In reply to Erik Damrose from comment #5)
> Please also QA:
> r62906 Merge to UCS 4.0-3
> r62907 Merge to UCS 4.1-0
OK
Comment 7 Janek Walkenhorst univentionstaff 2015-08-10 20:11:08 CEST
<http://errata.univention.de/ucs/4.0/285.html>
Comment 8 Daniel Tröder univentionstaff 2015-08-10 23:20:56 CEST
*** Bug 39134 has been marked as a duplicate of this bug. ***