[Bug 999070] New: qemu-bridge-helper not executable make libvirt to not set correct path
http://bugzilla.suse.com/show_bug.cgi?id=999070 Bug ID: 999070 Summary: qemu-bridge-helper not executable make libvirt to not set correct path Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: PowerPC-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: normand@linux.vnet.ibm.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- qemu-bridge-helper not detected as executable make libvirt to try incorrect path The original problem is virsh start command failure: === $virsh start --console twppc64le3 error: Failed to start domain twppc64le3 error: '/usr/libexec/qemu-bridge-helper' is not a suitable bridge helper: No such file or directory === The qemu-bridge-helper is in fact in /usr/lib path: === $whereis qemu-bridge-helper qemu-bridge-helper: /usr/lib/qemu-bridge-helper [michel@abanc:~/work/openSUSE:Factory:PowerPC/libvirt] $rpm -qf /usr/lib/qemu-bridge-helper qemu-tools-2.6.1-1.1.ppc64le $ls -ltr /usr/lib/qemu-bridge-helper -rwsr-x--- 1 root kvm 67704 Aug 22 12:57 /usr/lib/qemu-bridge-helper === The incorrect path /usr/libexec is the concequence of libvirt build process that use this default path because the as_fn_executable_p in (1) do not detect the file as executable. The mode is set in qemu.spec file as per (2) I did not checked if the apparmor patch may have an impact on this problem (1) https://build.opensuse.org/package/show/openSUSE:Factory:PowerPC/libvirt extract of libvirt configure === as_dummy="/usr/libexec:/usr/lib/qemu:/usr/lib" for as_dir in $as_dummy do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_QEMU_BRIDGE_HELPER="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext"
&5 break 2 fi done ===
(2) https://build.opensuse.org/package/view_file/openSUSE:Factory:PowerPC/qemu/q... === extract %verify(not mode) %attr(4750,root,kvm) %_libexecdir/qemu-bridge-helper === === -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=999070
Chenzi Cao
http://bugzilla.suse.com/show_bug.cgi?id=999070
Lin Ma
http://bugzilla.suse.com/show_bug.cgi?id=999070
http://bugzilla.suse.com/show_bug.cgi?id=999070#c1
Lin Ma
http://bugzilla.suse.com/show_bug.cgi?id=999070
http://bugzilla.suse.com/show_bug.cgi?id=999070#c2
Sebastian Krahmer
http://bugzilla.suse.com/show_bug.cgi?id=999070
http://bugzilla.suse.com/show_bug.cgi?id=999070#c3
Lin Ma
Mode 04750 reflects that only users in the kvm group should be allowed to use/setup (critical-) ressources such as bridging stuff. We should not change that (and its not necessary indeed).
Its clearly a packaging problem. I wonder why in the qemu-tools.rpm it has got the wrong pathname? Everything (even the libvirt build scripts) expect it in /usr/libexec. Its no problem updating the permissions git to have that pathname. The Apparmor policy would need the same change as well as the qemu-tools.rpm to put it at appropriate place.
The other option is to keep the qemu-tools.rpm and permissions config as is, and running the libvirt configure script as user who is part of kvm group (as its expected to be executed later). This would integrate the /usr/lib path I guess.
I just discussed with Bruce and Jim about it, So far option 2 perhaps is the best choice, I'll try to go this way. Sebastian, Thank you very much. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=999070
http://bugzilla.suse.com/show_bug.cgi?id=999070#c4
James Fehlig
http://bugzilla.suse.com/show_bug.cgi?id=999070
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=999070
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=999070
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=999070
http://bugzilla.suse.com/show_bug.cgi?id=999070#c6
--- Comment #6 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=999070
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=999070
http://bugzilla.suse.com/show_bug.cgi?id=999070#c7
--- Comment #7 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=999070
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com