RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1895105 - Podman events nonfunctional as rootless
Summary: Podman events nonfunctional as rootless
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: skopeo
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: 8.3
Assignee: Tom Sweeney
QA Contact: Yuhui Jiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-05 18:40 UTC by Matthew Heon
Modified: 2021-02-16 14:24 UTC (History)
12 users (show)

Fixed In Version: skopeo-1.2.0-4.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-16 14:21:54 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Matthew Heon 2020-11-05 18:40:17 UTC
Description of problem:

All Podman events functionality is nonfunctional using the default configuration as shipped in RHEL 8.3.1

Version-Release number of selected component (if applicable):

Podman v2.1.1 as will be shipped in RHEL 8.3.1

How reproducible:

100%

Steps to Reproduce:
0. Ensure you are logged in as a non-root user who is *not* part of the wheel group.
1. `podman run -t -i --name test fedora ls` in one terminal
2. `podman rm --force test` in a second terminal

(The `podman events` command is another good example)

Actual results:

The command returns an error that we were unable to retrieve the error code

Expected results:

Command succeeds and correctly returns error code

Additional info:

The default for events prior to v2.1.1 was `file`, which does not have this issue. In v2.1.1, we swapped the default to `journald` backend to resolve some issues with the `file` backend (it could fill up `/run` on systems generating a lot of events). Unfortunately, on RHEL 8.x, it appears that non-root users that are not in the wheel group cannot access the journal; this was not caught elsewhere because other distributions ship a more modern systemd that does not have this issue.

We have contacted the systemd team and are inquiring about further details, but any potential backports and fixes there can wait until 8.4.0. For now, we can swap the default back in Podman via a configuration file change to resolve the issue.

Comment 5 Ed Santiago 2020-11-09 15:09:19 UTC
Simplest reproducer I can find:

    $ podman run --name foo --log-driver journald alpine echo hi
    hi
    $ podman logs foo
    [there is no output. Expected: "hi"]

AFAICT it does not matter what groups the user is in: neither wheel nor systemd-journal make any difference, there is never any output from `podman logs`. In fact, there isn't even any output when running `podman run` + `podman logs` as root. Am I responding to the wrong issue?

Comment 6 Ed Santiago 2020-11-09 15:18:27 UTC
Followup: I was testing the wrong podman. With podman-2.1.1-3.module+el8.3.1+8686+2a59bca3.x86_64:

   testuser in group adm, wheel, or systemd-journal group : 'podman logs' emits 'hi' as expected
   testuser NOT in any of the above groups                : 'podman logs' emits nothing

Comment 13 errata-xmlrpc 2021-02-16 14:21:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: container-tools:rhel8 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:0531


Note You need to log in before you can comment on or make changes to this bug.