Bug 1214195 - [Build 10.3] request to update package yast2-firstboot and yast2-users in SLES15SP6
Summary: [Build 10.3] request to update package yast2-firstboot and yast2-users in SLE...
Status: VERIFIED FIXED
: 1213992 (view as bug list)
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP6
Classification: openSUSE
Component: Media Content (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: E-mail List
QA Contact: Radoslav Tzvetkov
URL: https://openqa.suse.de/tests/11781516...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-11 14:41 UTC by Chenzi Cao
Modified: 2024-03-06 06:42 UTC (History)
4 users (show)

See Also:
Found By: openQA
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---


Attachments
y2log_for_this_issue (5.99 MB, application/x-bzip)
2023-08-11 14:41 UTC, Chenzi Cao
Details
SLE 15SP4 firstboot issue (222.06 KB, image/png)
2023-08-22 20:22 UTC, Scott Bradnick
Details
Leap15.4 firstboot issue (221.24 KB, image/png)
2023-08-22 20:43 UTC, Scott Bradnick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chenzi Cao 2023-08-11 14:41:14 UTC
Created attachment 868771 [details]
y2log_for_this_issue

Steps:
Install SLES15SP6 Build10.3 by autoyast profile; enable YaST2 Firstboot during system deployment; Boot to YaST2 Firstboot wizard after reboot. Test goes through all Firstboot tabs, configure root and user accounts. 
At step of configure users account, an error came out as below:
---------------------------------------------------------------------------
Error:

Internal error. Please report a bug report with logs.
Run save_y2log to get complete logs.

Caller: /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in 'require'

Details: cannot load such file -- y2users/commit_config_collection
----------------------------------------------------------------------------

Please find the attached y2log for the issue and the job in openqa as below:

## Observation

openQA test in scenario sle-15-SP6-Online-x86_64-autoyast_y2_firstboot@64bit fails in
[firstboot_user_simple_pwd](https://openqa.suse.de/tests/11781516/modules/firstboot_user_simple_pwd/steps/1)

## Test suite description
Smoke test for YaST2 Firstboot module, basically same as yast2_firstboot test suite. Test pre-defined autoyast profile, which enables YaST2 Firstboot during system deployment. SUT should boot to YaST2 Firstboot wizard after reboot. Test goes through all Firstboot tabs, configure root and user accounts. SUT should end up in GDM screen after exiting YaST2 Firstboot.


## Reproducible

Fails since (at least) Build [9.1](https://openqa.suse.de/tests/11756806)


## Expected result

Last good: (unknown) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.suse.de/tests/latest?arch=x86_64&distri=sle&flavor=Online&machine=64bit&test=autoyast_y2_firstboot&version=15-SP6)
Comment 1 Stefan Hundhammer 2023-08-15 11:46:34 UTC
Exact error and backtrace:

> 2023-08-11 10:10:16 <3> install(7682) [Ruby] yast/wfm.rb(handle_exception):271
> Client /usr/share/YaST2/clients/firstboot_user.rb failed with
> 'cannot load such file -- y2users/commit_config_collection' (LoadError).
> .
> Backtrace:
> .../rubygems/core_ext/kernel_require.rb:59:in `require'
> .../rubygems/core_ext/kernel_require.rb:59:in `require'
> ...YaST2/lib/y2firstboot/clients/user.rb:24:in `<top (required)>'
> .../rubygems/core_ext/kernel_require.rb:59:in `require'
> .../rubygems/core_ext/kernel_require.rb:59:in `require'
> ...YaST2/clients/firstboot_user.rb:26:in `<top (required)>'
> .../vendor_ruby.../yast/wfm.rb:345:in `eval'
> .../vendor_ruby.../yast/wfm.rb:345:in `run_client'
> .../vendor_ruby.../yast/wfm.rb:206:in `call_builtin'
> .../vendor_ruby.../yast/wfm.rb:206:in `call_builtin_wrapper'
> .../vendor_ruby.../yast/wfm.rb:195:in `CallFunction'
> ...YaST2/modules/ProductControl.rb:1306:in `block in RunFrom'
> .../vendor_ruby.../yast/y2logger.rb:98:in `group'
> ...YaST2/modules/ProductControl.rb:1276:in `RunFrom'
> ...YaST2/modules/ProductControl.rb:1501:in `Run'
> ...YaST2/clients/firstboot.rb:76:in `block in main'
> ...YaST2/lib/ui/wizards/layout.rb:186:in `open_wizard'
> ...YaST2/clients/firstboot.rb:54:in `main'
> ...YaST2/clients/firstboot.rb:141:in `<top (required)>'
> .../vendor_ruby.../yast/wfm.rb:345:in `eval'
> .../vendor_ruby.../yast/wfm.rb:345:in `run_client'
> .../vendor_ruby.../yast/wfm.rb:206:in `call_builtin'
> .../vendor_ruby.../yast/wfm.rb:206:in `call_builtin_wrapper'
> .../vendor_ruby.../yast/wfm.rb:195:in `CallFunction'
> /usr/lib/YaST2/bin/y2start:68:in `<main>'

This is seen only during firstboot.
Comment 2 Stefan Hundhammer 2023-08-15 11:57:06 UTC
[sh @ balrog] ...yast/yast-users/src 14 %
  find . -name "*commit*.rb"

./lib/y2users/users_module/commit_config_reader.rb
./lib/y2users/commit_config.rb
./lib/y2users/user_commit_config_collection.rb
./lib/y2users/user_commit_config.rb


[sh @ balrog] ...yast/yast-users/src 15 % 
  grep 'commit_config_collection' **/*.rb

lib/y2users/commit_config.rb: 
  require "y2users/user_commit_config_collection"


But:

[sh @ balrog] ...src/yast/yast-firstboot 30 %
  grep 'require.*commit' **/*.rb

src/lib/y2firstboot/clients/user.rb: 
  require "y2users/user_commit_config"

src/lib/y2firstboot/clients/user.rb:
  require "y2users/commit_config"
                   ^^^^^^^^^^^^^
         should be user_commit_config
Comment 3 Stefan Hundhammer 2023-08-15 13:50:09 UTC
After several hours of investigating this, I saw that you are using an outdated version of yast2-firstboot: yast2-firstboot-4.5.6.

The current one for SLE-15-SP6 would be 4.6.1; but even the slightly outdated version 4.5.7 (which is a SLE-15-SP5 version as the 4.5.x version number indicates) would be okay since it only has a changed version number.

What does NOT work at all, though, is the even older version 4.5.6 that you are using: There was a change of the yast2-users API, and that is what we are seeing in this bug.

  https://github.com/yast/yast-firstboot/pull/148/files

https://github.com/yast/yast-firstboot/pull/148/files#diff-fed5921f872eb07db6d63622015332ea53712543987c7dc12c287883d3eda6acL24

Please update the packages to the current versions, both yast2-firstboot and yast2-users.
Comment 4 Chenzi Cao 2023-08-16 11:44:17 UTC
Thanks Stefan for helping to investigate it. 
Then I reopen it and assign it PM to request updating package yast2-firstboot and yast2-users, thanks.
Comment 5 Chenzi Cao 2023-08-16 11:45:10 UTC
Reopen it to request update package yast2-firstboot and yast2-users, thanks.
Comment 6 Scott Bradnick 2023-08-22 20:22:01 UTC
Created attachment 868949 [details]
SLE 15SP4 firstboot issue
Comment 7 Scott Bradnick 2023-08-22 20:22:50 UTC
(In reply to Scott Bradnick from comment #6)
> Created attachment 868949 [details]
> Leap 15.4 firstboot issue

This seems to also affect Leap 15.4 & 15.5 (maybe for a period of time, 15.6 - I can't remember) and is causing issues in WSL also: see boo#1213992
Comment 8 Scott Bradnick 2023-08-22 20:27:44 UTC
Comment on attachment 868949 [details]
SLE 15SP4 firstboot issue

I initially said Leap 15.4, meant SLE (as the image shows)
Comment 9 Scott Bradnick 2023-08-22 20:43:40 UTC
Created attachment 868950 [details]
Leap15.4 firstboot issue

Seems Leap15.4, Leap15.5 and SLE15SP4 are doing this.
Comment 10 Michal Filka 2023-08-23 07:14:29 UTC
*** Bug 1213992 has been marked as a duplicate of this bug. ***
Comment 11 Lukas Ocilka 2023-08-23 09:12:21 UTC
We have a little mess in branching SP6. It's currently submitted from master, but we decided to base SP6 on SP5 branch instead. For several reasons.

https://trello.com/c/macMW5cD/3430-5-sle15-sp6-branch

https://github.com/yast/yast-firstboot/blob/master/package/yast2-firstboot.changes
https://github.com/yast/yast-firstboot/blob/SLE-15-SP5/package/yast2-firstboot.changes

We'll hopefully fix more issues with the correct branch origin and correct submission after that.
Comment 12 Stefan Hundhammer 2024-02-14 17:05:08 UTC
SLE-15-SP6 now has yast2-firstboot-4.6.3:

https://build.suse.de/package/show/SUSE:SLE-15-SP6:GA/yast2-firstboot
Comment 13 Chenzi Cao 2024-03-06 06:42:14 UTC
Verify it as fixed, thanks.
The latest result: https://openqa.suse.de/tests/13712372