Bug 866508
Summary: | Fail to import libvirt python module due to 'undefined symbol: libssh2_agent_free' | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Alex Jia <ajia> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | urgent | ||
Version: | 6.5 | CC: | acathrow, dyasny, dyuan, mzhan, pkrempa, whuang |
Target Milestone: | rc | Keywords: | TestBlocker |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.10.2-4.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 07:10:03 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Alex Jia
2012-10-15 14:19:52 UTC
What version of libssh2 do you have installed? This issue is reproducible if you upgrade only libvirt and not the whole system. On a up-to-date system libvirt works fine with libssh2. The minimum required version of libssh2 is 1.3. I will investigate if the spec file is correct or if it requires tweaking. (In reply to comment #3) > What version of libssh2 do you have installed? > > This issue is reproducible if you upgrade only libvirt and not the whole > system. On a up-to-date system libvirt works fine with libssh2. The minimum > required version of libssh2 is 1.3. > > I will investigate if the spec file is correct or if it requires tweaking. Hi Peter, I think you're right, my libssh2 is 1.2.2-7.el6_1.1, it should be the spec file misses package dependency on libssh2-1.3*. Regards, Alex Maybe, the commit 1e25c54 results in this question. *** Bug 866741 has been marked as a duplicate of this bug. *** libssh2 isn't exporting versioning symbols, so RPM isn't able to automatically gather the version of libssh2 that is required when built with libssh2 transport. I'll post a spec file change to add this requirement manually. Until then the workaround to make libvirt working is to upgrade libssh2 manually. Fixed upstream with: commit cb4f41b8d0a2dc4258f1b097dff2ca2b34fbd086 Author: Peter Krempa <pkrempa> Date: Tue Oct 16 14:34:35 2012 +0200 spec: Add runtime requirement for libssh2 libssh2 unfortunately doesn't support symbol versioning so RPM can't figure out what version is needed for the currently installed libvirt package. This patch adds a runtime requirement, so that the correct version of libssh2 can be installed along with libvirt. Verify this bug : libvirt-0.10.2-4.el6.x86_64 check in the spec file ... %if %{with_libssh2_transport} Requires: libssh2 >= 1.3.0 %endif ... #rpm -q libvirt-client --requires|grep libssh2 libssh2 >= 1.3.0 libssh2.so.1()(64bit) 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 |