search for: domaineventregisterany

Displaying 9 results from an estimated 9 matches for "domaineventregisterany".

2012 Oct 24
0
Libvirt event for disk change is not being registered by DomainEventRegisterAny()
...t events. Recently I have upgraded my libvirt from 9.4 to 9.10 and I have this issue. While *de-registering* for DomainEventDiskChangeCallback, I get a libvirt error saying 'libvirtError: internal error domain event 2 not registered;' where 2 is the callbackid returned by virConnectDomainEventRegisterAny() for the disk change event type. This error didn?t occur when I used libvirt 0.9.4-23.el6_2.6 Can you please enlighten me on the recent changes that has been made? Also, is the diskchange event a part of the domains life cycle event? Any help on this issue will be highly appreciated....
2012 Oct 25
0
Please help: Libvirt event for disk change is not being registered by DomainEventRegisterAny()
...t events. Recently I have upgraded my libvirt from 9.4 to 9.10 and I have this issue. While *de-registering* for DomainEventDiskChangeCallback, I get a libvirt error saying 'libvirtError: internal error domain event 2 not registered;' where 2 is the callbackid returned by virConnectDomainEventRegisterAny() for the disk change event type. This error didn?t occur when I used libvirt 0.9.4-23.el6_2.6 Can you please enlighten me on the recent changes that has been made? Also, is the diskchange event a part of the domains life cycle event? Any help on this issue will be highly appreciated....
2010 Jul 16
1
Using Java bindings to event callback
I'm having some trouble using java bindings for domain events. Can anyone provide me an example on how to use this, namely conn.domainEventRegisterAny? Any suggestions? Thanks, Bruno Costa
2013 Dec 05
1
Using Java bindings to event callback
Hi My test environment : CentOS 6.3 6.4 Ubuntu 13.10 For CentOS 6.4 libvirt-java-0.4.9-1.el6.noarch libvirt-python-0.10.2-29.el6.x86_64 libvirt-client-0.10.2-29.el6.x86_64 libvirt-0.10.2-29.el6.x86_64 I am try to use java bindings to event callback. int register = conn.domainEventRegisterAny(null, 0, cb); But always get the following error message: libvirt: Remote Driver error : adding cb to list exception caught:org.libvirt.LibvirtException: adding cb to list level:VIR_ERR_ERROR code:VIR_ERR_RPC domain:VIR_FROM_REMOTE hasConn:false hasDom:false hasNet:false message:adding cb to list...
2017 May 16
2
Duplicate reboot events
Hi, Running on: $ cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) And: $ rpm -qa |grep libvirt libvirt-daemon-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-qemu-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-secret-2.0.0-10.el7_3.5.x86_64 libvirt-client-2.0.0-10.el7_3.5.x86_64 libvirt-daemon-driver-network-2.0.0-10.el7_3.5.x86_64
2017 May 16
0
Re: Duplicate reboot events
...(conn, dom, opaque): > print "Reboot: Domain %s(%s)" % (dom.name(), dom.ID()) > print time.time() > >if __name__ == '__main__': > > libvirt.virEventRegisterDefaultImpl() > > conn = libvirt.openReadOnly('qemu:///system') > > conn.domainEventRegisterAny(None, libvirt.VIR_DOMAIN_EVENT_ID_REBOOT, RBcallback, None) > > while True: > libvirt.virEventRunDefaultImpl() >_______________________________________________ >libvirt-users mailing list >libvirt-users@redhat.com >https://www.redhat.com/mailman/listinfo/libvirt-user...
2011 Apr 06
0
Registering a callback in Java
I'm able to edit org.libvirt.Domain.java and print a message when, for example suspend() is called. However I want to use eventCallback API of libvirt. Isn't this the proper piece of code to register a callback to any domain(domain parameter is null), for a lifecycle event(event id 0). conn.domainEventRegisterAny(null, 0, new VirConnectDomainEventGenericCallback() { public void eventCallback(ConnectionPointer cp, DomainPointer dp, Pointer pntr) { System.out.println("event!"); } }); I c...
2012 Feb 12
0
java binding
...us (VM boot, reboot, crash, etc.). I must use the java binding, so I exposed some calls not present in "Libvirt-java" jna interface: virEventRunDefaultImpl() virEventRegisterDefaultImpl() (and several costant). In my java source I tried to intercept the event, using the "Connection.domainEventRegisterAny( ... )" call , but the "answer" was: "this function is not supported by the connection driver: no event support". No errors issued on the virEventRunDefaultImpl and virEventRegisterDefaultImpl (moreover, both the calls return "0" ). I do not know the libvirt int...
2017 May 16
3
Re: Duplicate reboot events
...uot;Reboot: Domain %s(%s)" % (dom.name(), dom.ID()) >> print time.time() >> >> if __name__ == '__main__': >> >> libvirt.virEventRegisterDefaultImpl() >> >> conn = libvirt.openReadOnly('qemu:///system') >> >> conn.domainEventRegisterAny(None, libvirt.VIR_DOMAIN_EVENT_ID_REBOOT, RBcallback, None) >> >> while True: >> libvirt.virEventRunDefaultImpl() > >> _______________________________________________ >> libvirt-users mailing list >> libvirt-users@redhat.com >> https://www.redh...