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.
Created attachment 1261769[details]
virtlogd log
Description of problem:
1) The guest includes a file-backend serial device as below:
<serial type='file'>
<source path='/var/log/libvirt/qemu/log' append='off'/>
<log file='/var/log/libvirt/qemu/guestname-serial0.log' append='off'/>
<target port='0'/>
<alias name='serial0'/>
</serial>
2) Start guest, then reload virtlogd, virtlogd will fail to open the backend file and exited with two possible status:
a. At some times, virtlogd crashed:
# systemctl status virtlogd
● virtlogd.service - Virtual machine log manager
Loaded: loaded (/usr/lib/systemd/system/virtlogd.service; indirect; vendor preset: disabled)
Active: failed (Result: core-dump) since Thu 2017-03-09 05:16:38 EST; 11s ago
Docs: man:virtlogd(8)
http://libvirt.org
Process: 24245 ExecReload=/bin/kill -USR1 $MAINPID (code=exited, status=0/SUCCESS)
Process: 23771 ExecStart=/usr/sbin/virtlogd $VIRTLOGD_ARGS (code=dumped, signal=SEGV)
Main PID: 23771 (code=dumped, signal=SEGV)
b. At some times, virtlogd exited with status=3:
# systemctl status virtlogd
● virtlogd.service - Virtual machine log manager
Loaded: loaded (/usr/lib/systemd/system/virtlogd.service; indirect; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-03-09 22:21:25 EST; 2s ago
Docs: man:virtlogd(8)
http://libvirt.org
Process: 28655 ExecReload=/bin/kill -USR1 $MAINPID (code=exited, status=0/SUCCESS)
Process: 28553 ExecStart=/usr/sbin/virtlogd $VIRTLOGD_ARGS (code=exited, status=3)
Main PID: 28553 (code=exited, status=3)
3) Check the virtlogd.log:
error : virRotatingFileWriterEntryNew:113 : Unable to open file: /var/log/libvirt/qemu/log: Permission denied
Version-Release number of selected component:
libvirt-3.1.0-2.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Start guest
2.Reload virtlogd
# systemctl reload virtlogd
3. Check the virtlogd status
Actual results:
virtlogd met "permission denied" and failed to reload
Expected results:
virtlogd reload successfully
I seems that the failed status depends on the log_level of virtlogd:
a. when log_level is set to 1 in virtlogd.conf, virtlogd crashed
b. when log_level is set to the default value in virtlogd.conf, virtlogd exited with status=3
Upstream commit:
commit e13e8808f9270f4b3b6f4abb8ec473eef81cc1b9
Author: Pavel Hrdina <phrdina>
Date: Mon May 29 14:27:51 2017 +0200
security: don't relabel chardev source if virtlogd is used as stdio handler
v3.4.0-129-ge13e8808f9
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, 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/RHEA-2018:0704