Red Hat Bugzilla – Bug 761347
Return value error on the function cmdDomIfGetLink
Last modified: 2013-03-22 04:43:29 EDT
Description of problem: Although finding interface with matching mac addr, the return is still '1'. Version-Release number of selected component (if applicable): libvirt-0.9.8-0rc2.el6.x86_64 How reproducible: always. Steps to Reproduce: 1. virsh domif-getlink <guest name> <interface mac> 2. echo $? Actual results: # virsh domif-getlink vr-rhel6u2-x86_64-kvm 52:54:00:2f:c4:5d 52:54:00:2f:c4:5d default # echo $? 1 Expected results: return 0 when the result is right. Additional info:
Patch for upstream: https://www.redhat.com/archives/libvir-list/2011-December/msg00378.html
Patch has been ACKed and pushed on upstream. commit 623562964867a4e1927cacb97aa895219e02ccfc Author: Peter Krempa <pkrempa@redhat.com> Date: Thu Dec 8 10:09:59 2011 +0100 virsh: return correct value from cmdDomIfGetLink Reported by Alex Jia <ajia@redhat.com>. Function cmdDomIfGetLink did not set a success return value on success path. Signed-off-by: Alex Jia<ajia@redhat.com>
I test with libvirt-0.9.8-1.el6.x86_64, the same issue.
Roproduce it with libvirt-0.9.8-0rc2.el6.x86_64. Verify it with libvirt-0.9.9-1.el6 and it passed.
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-2012-0748.html