On Fri, Apr 07, 2017 at 09:31:45AM +0200, Michal Privoznik wrote:
On 04/06/2017 10:47 PM, Wojtek Porczyk wrote:
> libvirt.libvirtError: this function is not supported by the connection driver:
virConnectNetworkEventRegisterAny
That's because we don't have a network driver for XEN. Usually, for stateful
drivers (those which require daemon to run, e.g. qemu, lxc, ..) they can use
our own bridge driver for network (it creates a bridge to which domain NICs
are plugged in). However, then we have bunch of stateless driver for which
libvirt is just a wrapper over their APIs. For those we would need a
separate network driver that does the API wrapping. And it looks like
there's none for XEN. Not sure whether there's something to wrap though. I
mean I've no idea what XEN networking capabilities are.
But what we can do here is to surround networkEvenRegisterAny() call with
try {} except () block and ignore ENOSUPP error.
Thanks for the explanation. Are there any other drivers which don't support
some events? If so, maybe all the event requests should be wrapped in that?
--
pozdrawiam / best regards _.-._
Wojtek Porczyk .-^' '^-.
Invisible Things Lab |'-.-^-.-'|
| | | |
I do not fear computers, | '-.-' |
I fear lack of them. '-._ : ,-'
-- Isaac Asimov `^-^-_>