Bug 1218023 - [Build 44.1] openQA test fails in rootless_podman
Summary: [Build 44.1] openQA test fails in rootless_podman
Status: RESOLVED INVALID
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP6
Classification: openSUSE
Component: Containers (show other bugs)
Version: unspecified
Hardware: Other Other
: P1 - Urgent : Normal
Target Milestone: ---
Assignee: Containers Team
QA Contact:
URL: https://openqa.suse.de/tests/13060038...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-13 13:37 UTC by Pablo Herranz Ramírez
Modified: 2024-01-15 13:43 UTC (History)
3 users (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 Pablo Herranz Ramírez 2023-12-13 13:37:19 UTC
## Observation

openQA test in scenario sle-15-SP6-Online-x86_64-podman_cgroup_v1_tests@64bit fails in
[rootless_podman](https://openqa.suse.de/tests/13060038/modules/rootless_podman/steps/110)

## Test suite description
The base test suite is used for job templates defined in YAML documents. It has no settings of its own.


## Reproducible

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


## 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=podman_cgroup_v1_tests&version=15-SP6)


In rootless podman I cannot obtain the logs from a container as normal user:

```
> podman create --name testing registry.opensuse.org/opensuse/tumbleweed:latest /bin/sh -c '/bin/uname -r; /bin/echo Heartbeat'
> podman container start testing
> podman wait testing
> podman container logs testing
(empty)
```

However it works as root:

```
# podman create --name testing registry.opensuse.org/opensuse/tumbleweed:latest /bin/sh -c '/bin/uname -r; /bin/echo Heartbeat'
# podman container start testing
# podman wait testing
# podman container logs testing
6.4.0-150600.4-default
Heartbeat
```
Comment 1 Dan Čermák 2023-12-13 14:38:17 UTC
This is caused by the unprivileged user not having privileges to read journald. You can either add the user to the systemd-journal group:

usermod -a -G systemd-journal bernhard

or follow this guide:
https://documentation.suse.com/sles/15-SP4/html/SLES-all/cha-journalctl.html#sec-journalctl-persistent