Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1973555

Summary: RFE: All systemd --user processes will produces logs for the mount succeeded
Product: Red Hat Enterprise Linux 9 Reporter: Jan Macku <jamacku>
Component: systemdAssignee: Jan Macku <jamacku>
Status: CLOSED CURRENTRELEASE QA Contact: Frantisek Sumsal <fsumsal>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: azone, dtardon, fsumsal, msekleta, systemd-maint-list
Target Milestone: betaKeywords: FutureFeature, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1954802 Environment:
Last Closed: 2021-07-21 09:00:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1954802    
Bug Blocks:    

Description Jan Macku 2021-06-18 06:56:13 UTC
+++ This bug was initially created as a clone of Bug #1954802 +++

Description of problem:

On very busy systems all of the 'systemd --user' processes will all echo messages that the primary systemd process does.  This creates a massive cascade of logs which is completely unnecessary.

In RHEL 8.3 we added a mount succeeded message and on systems with tons of autofs and users logged in we get every single 'systemd --user' process all echoing the mount succeeded message.

From unit.c in RHEL 8.3.0: 

    void unit_log_success(Unit *u) {
	    assert(u);

	    log_struct(LOG_INFO,
		       "MESSAGE_ID=" SD_MESSAGE_UNIT_SUCCESS_STR,
		       LOG_UNIT_ID(u),
		       LOG_UNIT_INVOCATION_ID(u),
		       LOG_UNIT_MESSAGE(u, "Succeeded."));
    }

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

RHEL 8.3 systemd-239-41.el8_3.1.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Have a user logged in and mount a filesystem

Actual results:

systemd overwhelms logs on very busy systems.

Expected results:

Only the primary systemd process should indicate that these mounts succeeded or this should be hidden behind a debug or other logging.

Additional info:

--- Additional comment from Jan Macku on 2021-05-24 13:43:37 UTC ---

Hi,
Anthony I was able to reproduce the issue with the following reproducer.

Set persistent journal, then:
> # useradd testuser
Open session for user testuser e.g. via ssh. As root mount tmpfs and unmount it.
> # mount -t tmpfs none /mnt
> # umount /mnt
> # journalctl -u user
> ...
> ... systemd[5322]: mnt.mount: Succeeded.

Once I have the fix I'll give you an update.

Jan