[Bug 1219986] virsh iface-list hangs when running as normal user
https://bugzilla.suse.com/show_bug.cgi?id=1219986 https://bugzilla.suse.com/show_bug.cgi?id=1219986#c6 --- Comment #6 from James Fehlig <jfehlig@suse.com> --- (In reply to Tiziano Müller from comment #5)
The key is in #c2: If netcfIfaceRegister returns with 0, interfaceRegister returns with 0, but netcontrol is not initialised and unvailable. In fact, no backend is available, but libvirt assumes at least one has been successfully initialised because interfaceRegister did not return with a -1. Hence the call to iface-list hangs.
Nod. I should have read that comment closer :-).
If netcfIfaceRegister returns a -1, there is a fallback to udevIfaceRegister, which actually works. If it does not, then virtinterfaced would not start.
Heh, yeah, I forgot about the udev interface backend. It, and the interface driver as a whole, do not get any love upstream. In fact, the idea of deprecating it has been floated https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/REKSP... Do you use the virInterface* APIs (aka, 'virsh iface-*')? AFAICT, the udev backend only supports read operations https://gitlab.com/libvirt/libvirt/-/blob/master/src/interface/interface_bac... -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com