Bug 1185394 - [AutoYaST] Annoying error reporting when specifying an unsupported language
[AutoYaST] Annoying error reporting when specifying an unsupported language
Status: CONFIRMED
Classification: openSUSE
Product: openSUSE Distribution
Classification: openSUSE
Component: AutoYaST
Leap 15.2
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: YaST Team
E-mail List
https://trello.com/c/QXruNpGf/4746-au...
https://jira.suse.com/browse/DOCTEAM-177
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-04-28 07:49 UTC by virtomize
Modified: 2021-06-02 10:15 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
snwint: needinfo? (info)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description virtomize 2021-04-28 07:49:33 UTC
Example 4.24:  Language :

https://doc.opensuse.org/projects/autoyast/#id-1.9.4.2.12.4

       <language>
         <language>en_GB</language>
       </language>

throws the error

Language 'en_GB' was not found within the list of supported languages
...
Fallback language 'en_US' will be used

this post seems to have the same problem using the normal yast gui after installation

https://forums.opensuse.org/showthread.php/535903-Language-en_AU-was-not-found-within-the-list-of-supported-languages-Leap-15-0

Tested for Opensuse 15.2
Comment 1 Tomáš Bažant 2021-05-07 12:20:51 UTC
Thank you for reporting this bug!
It is being tracked and processed as part of our queue.
Comment 2 Carla Schroder 2021-05-12 17:44:19 UTC
Hello Imobach, this section is also present in the SLES guides. Can you answer this? Thanks!
Comment 3 Imobach Gonzalez Sosa 2021-05-13 10:06:09 UTC
Hi,

It worked for me. virtomize, please, could you share your profile? Attaching YaST2 logs will be useful too. See https://en.opensuse.org/openSUSE:Report_a_YaST_bug#Attachments_-_y2logs.2C_hwinfo_etc.

Regards,
Imo
Comment 4 Carla Schroder 2021-05-20 15:21:55 UTC
Thank you, Imobach. It also works for me. I will leave this open until next Wednesday, and then close or re-assign it if there is no more activity. I am pretty sure this is not a doc bug.
Comment 5 Carla Schroder 2021-05-27 16:40:38 UTC
Re-assigning to AutoYaST, if I can help you know where to find me!
Comment 6 Steffen Winterfeldt 2021-05-28 13:14:09 UTC
Ok, the report is misleading. The forum thread is about setting 'en_AU' - which
is indeed not a supported primary language.

That said, I'm not exactly sure what the purpose of that 'Details' button is
if it invariably leads to an error popup. After all, if your language *is*
listed in the primary language dropdown you'd not click there.

And despite showing the error *twice* in the workflow (which is even more
annoying) it modifies at least /etc/sysconfig/language::INSTALLED_LANGUAGES -
so it does do something even though showing an error box.

My suggestion would be to change the workflow to

a) not make it an error clicking on 'Details' and selecting a non-primary locale
b) show a dialog explaining what it means in a non-alarmist manner
c) show the dialog only once (not again during the commit phase)
Comment 7 Steffen Winterfeldt 2021-05-28 13:18:01 UTC
That said, I can also not confirm it for en_GB and the autoyast case.

So, if you see it with autoyast, please provide yast logs.



To collect log files run 'save_y2logs' and attach the log file archive this
command creates (usually named /tmp/y2log-SOMETHING.tar.xz).

If the installation (more or less) succeeded and you can access the
installed system, you can collect the logs there.

Else you have these options to collect the logs from the installation
environment:

 - there's a shell running on consoles 5 and 6 during installation

 - get a console window by pressing Ctrl-Shift-Alt-x in the installer's
   graphical UI

 - if you can't reach neither or you're on a serial line or you're doing
   autoyast: boot with 'startshell=1' which will give you a shell before and
   *after* the installer runs; to continue the regular installation workflow
   just exit this shell

If you're unsure what to do, please have a look at

https://en.opensuse.org/openSUSE:Report_a_YaST_bug#logfiles
Comment 8 Imobach Gonzalez Sosa 2021-06-02 10:15:05 UTC
So, in the end, it looks like the real problem is that the error reporting is rather annoying. Actually, in openSUSE 15.3 and SLE 15 SP3 the problem is reported only during the 1st stage. I have created a Trello card to tack this problem. See https://trello.com/c/QXruNpGf/

Thanks!