Bug 1215766 - [Build5.5.3] openQA test fails in journalctl - missing rsyslog package
Summary: [Build5.5.3] openQA test fails in journalctl - missing rsyslog package
Status: VERIFIED FIXED
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP5
Classification: openSUSE
Component: Minimal-VM (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Guilherme Moro
QA Contact: Martin Loviska
URL: https://openqa.suse.de/tests/12323421...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-27 13:04 UTC by Martin Loviska
Modified: 2024-01-29 16:32 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Loviska 2023-09-27 13:04:54 UTC
## Observation

openQA test in scenario sle-15-SP5-JeOS-for-kvm-and-xen-QR-s390x-jeos-extratest-VR@s390x-kvm fails in
[journalctl](https://openqa.suse.de/tests/12323421/modules/journalctl/steps/25)

## Test suite description

Test case expects that on a system with non-persisent journal command 
journalctl --no-pager --boot=-1 will respond with "no persistent journal was found"
Instead we it gets:
"Data from the specified boot (-1) is not available: No such boot ID in journal"

Looking at the setup after jeos-firstboot, systemd-journal runs in persistent mode which is unexpected as other Minimal-VM images based on sle have rsyslog preinstalled.

```
s390kvm081:~ # rpm -q rsyslog
package rsyslog is not installed
s390kvm081:~ # ls -la /var/log/journal/
total 24580
drwxr-sr-x  1 root systemd-journal     224 Sep 27 12:58 .
drwxr-xr-x  1 root root                234 Sep 27  2023 ..
-rw-r-----  1 root root            8388608 Sep 27 12:57 system@98c751acd660447aa94187480bde5e31-0000000000000001-00060656c4e1f923.journal
-rw-r-----  1 root systemd-journal 8388608 Sep 27 12:58 system.journal
-rw-r-----+ 1 root systemd-journal 8388608 Sep 27 12:58 user-1000.journal
```

Indeed *rsyslog* package is missing in the kiwi file for s390x[1] compared to other images[2]

[1] https://build.suse.de/package/view_file/SUSE:SLE-15-SP5:Update:QR:TEST/kiwi-templates-Minimal-s390x/Minimal-s390x.kiwi?expand=1
[2] https://build.suse.de/package/view_file/SUSE:SLE-15-SP5:Update:QR:TEST/kiwi-templates-Minimal/Minimal.kiwi?expand=1

## Reproducible

Fails since (at least) Build [mloviska/os-autoinst-distri-opensuse#17873](https://openqa.suse.de/tests/12323421) (current job)


## Expected result

Last good: (unknown) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.suse.de/tests/latest?arch=s390x&distri=sle&flavor=JeOS-for-kvm-and-xen-QR&machine=s390x-kvm&test=jeos-extratest-VR&version=15-SP5)
Comment 3 Maintenance Automation 2023-12-15 16:30:01 UTC
SUSE-RU-2023:4884-1: An update that has four fixes can now be installed.

Category: recommended (moderate)
Bug References: 1211722, 1215676, 1215723, 1215766
Sources used:
openSUSE Leap 15.5 (src): kiwi-templates-Minimal-s390x-15.5-150500.5.6.1
Development Tools Module 15-SP5 (src): kiwi-templates-Minimal-s390x-15.5-150500.5.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 5 Martin Loviska 2024-01-29 16:32:02 UTC
.