Bug 1222145

Summary: [sles15sp5-QR][Build 137.7][x86_64 only] with ram size=1GB/2GB, vm panic/hang during the TEXTMODE installation phase if libyui kernel boot parameters added
Product: [openSUSE] PUBLIC SUSE Linux Enterprise Server 15 SP5 Reporter: Richard Fan <richard.fan>
Component: KernelAssignee: Kernel Bugs <kernel-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: Normal    
Priority: P5 - None CC: meissner, mgrifalconi, qzhao, santiago.zarate, tiwai, wegao
Version: unspecified   
Target Milestone: ---   
Hardware: x86-64   
OS: SLES 15   
URL: https://openqa.suse.de/tests/13845781/modules/setup_libyui/steps/4
See Also: https://bugzilla.suse.com/show_bug.cgi?id=1221814
Whiteboard:
Found By: openQA Services Priority:
Business Priority: Blocker: Yes
Marketing QA Status: --- IT Deployment: ---
Attachments: serial log with 1gb ram
serial log with 2gb ram

Description Richard Fan 2024-03-29 02:42:55 UTC
##Description

The issue can be seen if we add below LIBYUI kernel boot parameters during the installation:

extend=libyui-rest-api
YUI_HTTP_PORT=39101
YUI_HTTP_REMOTE=1
YUI_REUSE_PORT=1


And the full boot parameter line is "initrd=initrd splash=silent textmode=1   Y2DEBUG=1 vga=791 video=1024x768 plymouth.ignore-serial-consoles console=ttyS0 console=tty linuxrc.log=/dev/ttyS0 linuxrc.core=/dev/ttyS0 linuxrc.debug=4,trace extend=libyui-rest-api YUI_HTTP_PORT=39110 YUI_HTTP_REMOTE=1 YUI_REUSE_PORT=1 reboot_timeout=0    self_update=0 kernel.softlockup_panic=1  regurl=https://scc.suse.com"


Installation get stuck if I set the ram size to 1gb or 2gb, and I can get some trace log from serial terminal as well.

-----------------------------------------

The issue is not seen with previous build 136.1 [ramsize=1gb] and starts to show up at build 137.1.

Please see openQA job history https://openqa.suse.de/tests/13708336#next_previous


--------------------------------------------

With 1gb memory, I can get the serial log1 [please see attached log1], with openqQA job link https://openqa.suse.de/tests/13845781#step/setup_libyui/4.

With 2gb memory, I can get the serial log2 [Please see attached log2] with openQA job link http://openqa.suse.de/tests/13906674#step/setup_libyui/4

The issue is gone if I set memory size to 4gb, please see openQA job http://openqa.suse.de/tests/13906683#details

Can you please double check if it is a kernel bug or something release to yast install modules?

Do let me know if you need to access my setup to debug.

-------------------------------------------

## openQA automation tests Observation 
openQA test in scenario sle-15-SP5-Online-QR-x86_64-textmode@64bit fails in
[setup_libyui](https://openqa.suse.de/tests/13845781/modules/setup_libyui/steps/4)

## Test suite description
Testsuite maintained at https://gitlab.suse.de/qa-maintenance/qam-openqa-yml. Maintainer: QE Core

Installation in textmode and selecting the textmode "desktop" during installation.


## Reproducible

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


## Expected result

Last good: [136.1](https://openqa.suse.de/tests/13708336) (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-QR&machine=64bit&test=textmode&version=15-SP5)
Comment 1 Richard Fan 2024-03-29 02:46:17 UTC
Created attachment 873915 [details]
serial log with 1gb ram
Comment 2 Richard Fan 2024-03-29 02:46:42 UTC
Created attachment 873916 [details]
serial log with 2gb ram
Comment 3 Richard Fan 2024-03-29 02:59:29 UTC
One more comment:

kvm server information:

OS: leap15.5
qemu version detected: 7.1.0
kernel:Linux 5.14.21-150500.55.49-default
Comment 4 Richard Fan 2024-03-29 07:45:08 UTC
I'd like to add more information here:

1. The issue seems happen on x86_64 platform only\
2. The issue can only be seen with TEXTMODE installation, that means we add "textmode=1" and "libyui" parameters to boot parameter at the same time. 

In summary, the below boot parameters can cause the problem.

```
textmode=1
extend=libyui-rest-api
YUI_HTTP_PORT=39101
YUI_HTTP_REMOTE=1
YUI_REUSE_PORT=1
```
Comment 5 Richard Fan 2024-04-02 06:12:15 UTC
(In reply to Richard Fan from comment #4)
> I'd like to add more information here:
> 
> 1. The issue seems happen on x86_64 platform only\
> 2. The issue can only be seen with TEXTMODE installation, that means we add
> "textmode=1" and "libyui" parameters to boot parameter at the same time. 
> 
> In summary, the below boot parameters can cause the problem.
> 
> ```
> textmode=1
> extend=libyui-rest-api
> YUI_HTTP_PORT=39101
> YUI_HTTP_REMOTE=1
> YUI_REUSE_PORT=1
> ```

To clarify the issue, it is not seen with either 'textmode=1' or libyui related parameters defined.

That means the issue can only be seen with all of these boot parameters added at the same time:

'textmode=1'

AND 

'extend=libyui-rest-api
YUI_HTTP_PORT=39101
YUI_HTTP_REMOTE=1
YUI_REUSE_PORT=1'
Comment 6 Richard Fan 2024-04-02 06:34:39 UTC
Let me add my test results:

1. The issue is not seen with only 'textmode=1' defined 

https://openqa.suse.de/tests/13906657#step/welcome/1 [please ignore the failed test module, it is not related to this bug]


2. The issue is not see with only libyui related parameters defined
https://openqa.suse.de/tests/13906876
Comment 7 Takashi Iwai 2024-04-02 06:39:03 UTC
Dup of bug 1221814?
Comment 8 Santiago Zarate 2024-04-09 09:52:25 UTC
(In reply to Takashi Iwai from comment #7)
> Dup of bug 1221814?

yes, seems to be the same
Comment 9 Richard Fan 2024-04-18 08:46:13 UTC
The issue is gone in the latest openQA test run:
>https://openqa.suse.de/tests/14050508

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