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 2174447 - Logs are spammed with ' Domain id=7 is tainted: custom-ga-command' message
Summary: Logs are spammed with ' Domain id=7 is tainted: custom-ga-command' message
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libvirt
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact: Lili Zhu
URL:
Whiteboard:
: 2176898 (view as bug list)
Depends On: 2174446
Blocks: 2176898 2180030 2180031 2180032
TreeView+ depends on / blocked
 
Reported: 2023-03-01 16:19 UTC by Peter Krempa
Modified: 2023-11-14 16:59 UTC (History)
7 users (show)

Fixed In Version: libvirt-8.0.0-20.module+el8.9.0+18894+a91bbb94
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2174446
: 2176898 2180030 2180031 2180032 (view as bug list)
Environment:
Last Closed: 2023-11-14 15:33:25 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-150322 0 None None None 2023-03-01 16:20:13 UTC
Red Hat Product Errata RHSA-2023:6980 0 None None None 2023-11-14 15:34:55 UTC

Description Peter Krempa 2023-03-01 16:19:48 UTC
+++ This bug was initially created as a clone of Bug #2174446 +++

Description of problem:
When a management APP is using agent command passhthrough the logs are spammed with:

 Domain id=7 is tainted: custom-ga-command

over and over again.

Version-Release number of selected component (if applicable):
introduced in libvirt 7.1

How reproducible:
always

Steps to Reproduce:
1. Start VM
2. repeatedly invoke command such as:
$ virsh qemu-agent-command ha '{"execute":"guest-get-vcpus"}'

3. observe logs being spammed

Actual results:


Expected results:


Additional info:

Comment 6 Lili Zhu 2023-03-16 07:57:18 UTC
Verify this bug with:
libvirt-8.0.0-19.module+el8.8.0+18370+e5872f90.x86_64

1. prepare a guest with guest agent
# virsh domtime vm1
Time: 1678521142

2. check the dominfo
# virsh dominfo vm1
Id:             2
Name:           vm1
UUID:           ba63a682-90de-4816-a527-25d2ed542311
OS Type:        hvm
State:          running
CPU(s):         2
CPU time:       2.5s
Max memory:     3145728 KiB
Used memory:    3145728 KiB
Persistent:     yes
Autostart:      disable
Managed save:   no
Security model: selinux
Security DOI:   0
Security label: system_u:system_r:svirt_t:s0:c339,c702 (enforcing)

3. check the some info about guest using qemu-agent-command
# virsh qemu-agent-command vm1 '{"execute":"guest-get-fsinfo"}'
{"return":[{"name":"vda1","total-bytes":1063256064,

4. check the dominfo again
# virsh dominfo vm1
Id:             2
Name:           vm1
UUID:           ba63a682-90de-4816-a527-25d2ed542311
OS Type:        hvm
State:          running
CPU(s):         2
CPU time:       32.7s
Max memory:     3145728 KiB
Used memory:    3145728 KiB
Persistent:     yes
Autostart:      disable
Managed save:   no
Security model: selinux
Security DOI:   0
Security label: system_u:system_r:svirt_t:s0:c339,c702 (enforcing)
Messages:       tainted: custom guest agent control commands issued

5. check the log
1327:2023-03-16 07:49:38.592+0000: 55730: warning : qemuDomainObjTaintMsg:6401 : Domain id=2 name='vm1' uuid=ba63a682-90de-4816-a527-25d2ed542311 is tainted: custom-ga-command
1329:2023-03-16 07:49:38.592+0000: 55730: debug : qemuDomainLogAppendMessage:6766 : Append log message (vm='vm1' message='2023-03-16 07:49:38.592+0000: Domain id=2 is tainted: custom-ga-command

6. repeat step 2 for 100 times
# for i in {1..100}; do virsh qemu-agent-command vm1 '{"execute":"guest-get-fsinfo"}'; done
....

7. check the log again
# grep -ni tainted /var/log/libvirt/libvirtd.log 
1327:2023-03-16 07:49:38.592+0000: 55730: warning : qemuDomainObjTaintMsg:6401 : Domain id=2 name='vm1' uuid=ba63a682-90de-4816-a527-25d2ed542311 is tainted: custom-ga-command
1329:2023-03-16 07:49:38.592+0000: 55730: debug : qemuDomainLogAppendMessage:6766 : Append log message (vm='vm1' message='2023-03-16 07:49:38.592+0000: Domain id=2 is tainted: custom-ga-command

(The tainted message is printed when invoking guest-agent-command for the first time. And no new logs about tainted messages printed for the later invoking, logs are not spammed)

Comment 12 Peter Krempa 2023-03-20 12:37:12 UTC
*** Bug 2176898 has been marked as a duplicate of this bug. ***

Comment 15 Lili Zhu 2023-05-24 14:09:01 UTC
Tested this bug with:
libvirt-8.0.0-20.module+el8.9.0+18894+a91bbb94.x86_64

The testing steps are the same with those in Comment #6, testing passed

Comment 18 Lili Zhu 2023-06-27 13:31:15 UTC
Verify this bug with:
libvirt-8.0.0-21.module+el8.9.0+19166+e262ca96.x86_64


The verification steps are the same with those in Comment #6.

As the result matches with the expected result, mark the bug as verified.

Comment 21 errata-xmlrpc 2023-11-14 15:33:25 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: virt:rhel and virt-devel:rhel 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-2023:6980


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