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 1945501 - Unexpected error shown in log when connecting qemu:///system with non-root user
Summary: Unexpected error shown in log when connecting qemu:///system with non-root user
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libvirt
Version: 9.0
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: rc
: ---
Assignee: Martin Kletzander
QA Contact: Lili Zhu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-01 07:11 UTC by yafu
Modified: 2022-05-17 13:02 UTC (History)
6 users (show)

Fixed In Version: libvirt-7.10.0-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 12:45:04 UTC
Type: Bug
Target Upstream Version: 7.10.0
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2022:2390 0 None None None 2022-05-17 12:45:18 UTC

Description yafu 2021-04-01 07:11:53 UTC
Description of problem:
Unexpected error shown in log when connecting qemu:///system with non-root user

Version-Release number of selected component (if applicable):
libvirt-daemon-7.0.0-11.module+el8.4.0+10505+3a8d753f.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Watch libvirtd error log:
#tail -f /var/log/messages

2. Open another terminal, switch to non-root user and connect qemu:///system, input password and connect successfully:
#su - test
#virsh -c qemu:///system
==== AUTHENTICATING FOR org.libvirt.unix.manage ====
System policy prevents management of local virtualized systems
Authenticating as: root
Password: 
==== AUTHENTICATION COMPLETE ====
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh # 


3.Unexpected error shown in log in terminal 1:
Mar 31 04:03:38 dell-per730-30 libvirtd[354156]: 354159: error : virPolkitCheckAuth:135 : authentication unavailable: no polkit agent available to authenticate action 'org.libvirt.unix.manage'
Mar 31 04:03:38 dell-per730-30 libvirtd[354156]: 354156: error : virNetSocketReadWire:1817 : End of file while reading data: Input/output error

Actual results:
Unexpected error shown in log when connecting qemu:///system with non-root user

Expected  results:
No error shown in log when connecting qemu:///system with non-root user

Additional info:

Comment 1 John Ferlan 2021-09-08 13:30:25 UTC
Bulk update: Move RHEL-AV bugs to RHEL9. If necessary to resolve in RHEL8, then clone to the current RHEL8 release.

Comment 2 Martin Kletzander 2021-11-20 23:11:38 UTC
Patches proposed upstream: https://listman.redhat.com/archives/libvir-list/2021-November/msg00614.html

Comment 3 Martin Kletzander 2021-11-23 11:57:47 UTC
Fixed upstream with v7.9.0-223-g0ac13b189f0f:
commit 0ac13b189f0fe6f12546e7aaf6ad07ba81b55d9e
Author: Martin Kletzander <mkletzan>
Date:   Tue Nov 16 15:00:19 2021 +0100

    virsh: Do not try connecting first time without polkit agent

Comment 5 Lili Zhu 2021-12-11 13:32:45 UTC
Tested with libvirt-7.10.0-1.el9.x86_64:

Testing steps are the same with the ones in bug description.

After watching the log, No error shown in log when connecting qemu:///system with non-root user.

Comment 8 Lili Zhu 2021-12-26 09:03:02 UTC
Verify this bug with:
libvirt-7.10.0-1.el9.x86_64

Testing steps are the same with the ones in bug description.

After watching the log, No error shown in log when connecting qemu:///system with non-root user.
As the testing result matches with the expecting one, mark the bug as verified.

Comment 10 errata-xmlrpc 2022-05-17 12:45:04 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 (new packages: libvirt), 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-2022:2390


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