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 2029426

Summary: libvirt-guests service gets scattered incomplete log msgs
Product: Red Hat Enterprise Linux 8 Reporter: Yanqiu Zhang <yanqzhan>
Component: systemdAssignee: David Tardon <dtardon>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: unspecified Docs Contact:
Priority: high    
Version: 8.6CC: dtardon, dzheng, fjin, jamacku, lmen, msekleta, smitterl, systemd-maint-list, yanqzhan
Target Milestone: rcKeywords: Regression, Reproducer, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-239-73.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 09:07:15 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:

Description Yanqiu Zhang 2021-12-06 13:46:26 UTC
Description of problem:
libvirt-guests service gets scattered incomplete log msgs

Version-Release number of selected component (if applicable):
systemd-239-54.el8.x86_64
libvirt-7.10.0-1.module+el8.6.0+13502+4f24a11d.x86_64
qemu-kvm-6.1.0-5.module+el8.6.0+13430+8fdd5f85.x86_64
kernel-4.18.0-353.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Start 2 vms

2. # systemctl stop libvirt-guest s&
# systemctl status libvirt-guests

3.# systemctl start libvirt-guests &
# systemctl status libvirt-guests
Dec 06 06:40:18 host*** libvirt-guests.sh[232829]: R
Dec 06 06:40:18 host*** libvirt-guests.sh[232848]: R
Dec 06 06:40:19 host*** libvirt-guests.sh[232848]: esuming guest avocado-vt-vm1:
Dec 06 06:40:19 host*** libvirt-guests.sh[232928]: esum
Dec 06 06:40:19 host*** libvirt-guests.sh[232829]: e
Dec 06 06:40:19 host*** libvirt-guests.sh[232935]: e
Dec 06 06:40:20 host*** libvirt-guests.sh[232935]: esuming guest avocado-vt-vm2:
Dec 06 06:40:20 host*** libvirt-guests.sh[233016]: esum
Dec 06 06:40:20 host*** libvirt-guests.sh[232829]: e
Dec 06 06:40:20 host*** systemd[1]: Started Suspend/Resume Running libvirt Guests.


Actual results:


Expected results:


Additional info:
1. Not reproduce on systemd-239-51.el8.x86_64

2. And other examples:
Dec  6 00:08:56 host** libvirt-guests.sh[52660]: Shutdown of guest avocado-vt-vm1 complete.
Dec  6 00:08:56 host** libvirt-guests.sh[52525]: S

Dec  6 00:08:51 host** libvirt-guests.sh[52551]: hutting down guests on
Dec  6 00:08:51 host** libvirt-guests.sh[52525]: h
Dec  6 00:08:51 host** libvirt-guests.sh[52558]: h
Dec  6 00:08:51 host** libvirt-guests.sh[52558]: tarting shutdown on guest: avocado-vt-vm
Dec  6 00:08:52 host** libvirt-guests.sh[52525]: tWaiting for guest avocado-vt-vm1 to shut down, 300 seconds left

Dec 06 08:08:32 host*** libvirt-guests.sh[7220]: Run, yqz-vm2
Dec 06 08:08:32 host*** libvirt-guests.sh[7263]: Suspending guests on default URI...
Dec 06 08:08:32 host*** libvirt-guests.sh[7220]: SSuspending yqz: ...

Comment 2 David Tardon 2021-12-07 12:52:43 UTC
This is probably caused by https://github.com/redhat-plumbers/systemd-rhel8/pull/222 (fix for bug 1931806).

A minimal reproducer:
== /etc/systemd/system/test.service ==
[Service]
ExecStart=/usr/local/bin/test.sh
StandardOutput=journal+console

== /usr/local/bin/test.sh ==
#!/bin/sh

for i in 1 2; do
	gettext "My hovercraft is full of eels."
	echo
done

Comment 3 Yanqiu Zhang 2021-12-08 03:07:46 UTC
Yes, I can reproduce with comment2:
# chmod 744 /usr/local/bin/test.sh 
# systemctl start test
# systemctl status test
● test.service
   Loaded: loaded (/etc/systemd/system/test.service; static; vendor preset: disabled)
   Active: inactive (dead)

Dec 07 22:01:08 host*** systemd[1]: Started test.service.
Dec 07 22:01:08 host*** test.sh[334326]: My hovercraft is full of eels.
Dec 07 22:01:08 host*** test.sh[334325]: M
Dec 07 22:01:08 host*** test.sh[334327]: M
Dec 07 22:01:08 host*** test.sh[334327]: y hovercraft is full of eels
Dec 07 22:01:08 host*** test.sh[334325]: y
Dec 07 22:01:08 host*** systemd[1]: test.service: Succeeded.

Comment 4 Yiding Liu (Fujitsu) 2021-12-10 07:40:33 UTC
aarch64 also has this error. Set Hardware as ALL.

Comment 14 Plumber Bot 2023-02-27 15:41:01 UTC
fix merged to github main branch -> https://github.com/redhat-plumbers/systemd-rhel8/pull/273

Comment 20 errata-xmlrpc 2023-05-16 09:07:15 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 (systemd 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/RHBA-2023:2985