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.
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 3Martin 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
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.
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.
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
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: