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:
libssh2 transport is implemented upstream but it is not stable/usable enough to be supportable in RHEL 7.0.
Version-Release number of selected component (if applicable):
libvirt-1.0.1-1.el7
How reproducible:
100%
Steps to Reproduce:
1. virsh -c qemu+libssh2://127.0.0.1/system list
Actual results:
The command succeeds.
Expected results:
The command should fail with the following message:
error: libssh2 transport support was not enabled: Function not implemented
error: failed to connect to the hypervisor
Additional info:
(In reply to comment #0)
> Description of problem:
>
> libssh2 transport is implemented upstream but it is not stable/usable enough
> to be supportable in RHEL 7.0.
Please provide links with details of the problems seen, so that when someone looks at this bug in a year's time, we know what motivated us to disable it in the first place.
One of the main problems is caused by the incomplete support for host keys stored in the known_hosts file. Libssh2 doesn't support ECDSA keys and corrupts the known hosts file containing those. Commit
commit 225f280744e38fae883bd289ef34bb3f6db71c10
Author: Peter Krempa <pkrempa>
Date: Tue Aug 21 17:54:26 2012 +0200
client: Change default location of known_hosts file for libssh2 layer
Unfortunately libssh2 doesn't support all types of host keys that can be
saved in the known_hosts file. Also it does not report that parsing of
the file failed. This results into truncated known_hosts files where the
standard client stores keys also in other formats (eg.
ecdsa-sha2-nistp256).
This patch changes the default location of the known_hosts file into the
libvirt private configuration directory, where it will be only written
by the libssh2 layer itself. This prevents trashing user's known_host
file.
workarounds that partially by using a separate known_hosts file, but this solution isn't ideal.
Verify this bug :
libvirt-1.0.2-1.el7.x86_64
# virsh -c qemu+libssh2://127.0.0.1/system list
error: failed to connect to the hypervisor
error: libssh2 transport support was not enabled: Function not implemented
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.