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 845893 - Double close of FD when failing to connect to a remote hypervisor
Summary: Double close of FD when failing to connect to a remote hypervisor
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Ján Tomko
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-06 03:00 UTC by yanbing du
Modified: 2013-02-21 07:21 UTC (History)
7 users (show)

Fixed In Version: libvirt-0.10.0-0rc1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 07:21:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0276 0 normal SHIPPED_LIVE Moderate: libvirt security, bug fix, and enhancement update 2013-02-20 21:18:26 UTC

Description yanbing du 2012-08-06 03:00:22 UTC
Description of problem:
When 
can't access to remote libvirtd which start by a non-root user

Version-Release number of selected component (if applicable):


How reproducible:
libvirt-0.10.0-0rc0.el6.x86_64

Steps to Reproduce:
1. On one host A, stop libvirtd service and start it by a non-root user
#service libvirtd stop
#su tester
$libvirtd -d

2. On another host B, try to connect that libvirtd
#virsh -c qemu+ssh://tester@${hostA_ip}/session
or
#virsh -c qemu+ssh://tester@${hostA_ip}/system
or 
#virsh -c qemu+ssh://tester@${hostA_ip}/aaaaaa

Actual results:
Step2:
error: End of file while reading data: 2012-08-06 02:41:17.381+0000: 7888: info : libvirt version: 0.10.0, package: 0rc0.el6 (Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>, 2012-08-02-03:44:27, x86-007.build.bos.redhat.com)
2012-08-06 02:41:17.381+0000: 7888: warning : virFileClose:65 : Tried to close invalid fd 7: Input/output error
error: failed to connect to the hypervisor

Expected results:
No such error message.

Additional info:
BTW, if the host B is rhel6.3(libvirt-0.9.10-21.el6_3.3.x86_64), then the errro message is:
error: End of file while reading data: : Input/output error
error: failed to connect to the hypervisor

Comment 1 Ján Tomko 2012-08-21 09:02:31 UTC
Upstream patch proposed:
https://www.redhat.com/archives/libvir-list/2012-August/msg01422.html

Comment 2 Ján Tomko 2012-08-22 08:37:25 UTC
Fixed by commit 8211c677a36609c8d861f23ef21ec2c2e5645ece
    command: avoid double close in virExecWithHook

Comment 4 Huang Wenlong 2012-08-23 07:05:12 UTC
Verify this bug with : 
libvirt-0.10.0-0rc1.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.303.el6.x86_64

step as comment 0:

# virsh -c qemu+ssh://whuang.82.251/session
whuang.82.251's password: 
error: End of file while reading data: : Input/output error
error: failed to connect to the hypervisor


there is not message like :  "warning : virFileClose:65 : Tried to close invalid fd 7: Input/output error"

Comment 5 errata-xmlrpc 2013-02-21 07:21: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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0276.html


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