Hello community, here is the log from the commit of package libvirt-python for openSUSE:Factory checked in at 2017-04-06 11:02:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libvirt-python (Old) and /work/SRC/openSUSE:Factory/.libvirt-python.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libvirt-python" Thu Apr 6 11:02:45 2017 rev:40 rq:484991 version:3.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/libvirt-python/libvirt-python.changes 2017-03-04 16:48:22.580960990 +0100 +++ /work/SRC/openSUSE:Factory/.libvirt-python.new/libvirt-python.changes 2017-04-06 11:02:51.821533179 +0200 @@ -1,0 +2,7 @@ +Mon Apr 3 04:45:02 UTC 2017 - jfeh...@suse.com + +- Update to 3.2.0 + - Add all new APIs and constants in libvirt 3.2.0 + - FATE#319684, FATE#321335, FATE#321349 + +------------------------------------------------------------------- Old: ---- libvirt-python-3.1.0.tar.gz libvirt-python-3.1.0.tar.gz.asc New: ---- libvirt-python-3.2.0.tar.gz libvirt-python-3.2.0.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libvirt-python.spec ++++++ --- /var/tmp/diff_new_pack.opQA7K/_old 2017-04-06 11:02:53.501295769 +0200 +++ /var/tmp/diff_new_pack.opQA7K/_new 2017-04-06 11:02:53.505295204 +0200 @@ -18,7 +18,7 @@ Name: libvirt-python Url: http://libvirt.org/ -Version: 3.1.0 +Version: 3.2.0 Release: 0 Summary: Library providing a simple virtualization API License: LGPL-2.1+ ++++++ libvirt-python-3.1.0.tar.gz -> libvirt-python-3.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-3.1.0/ChangeLog new/libvirt-python-3.2.0/ChangeLog --- old/libvirt-python-3.1.0/ChangeLog 2017-03-03 11:25:59.000000000 +0100 +++ new/libvirt-python-3.2.0/ChangeLog 2017-04-02 17:10:54.000000000 +0200 @@ -1,3 +1,21 @@ +2017-04-02 Daniel Veillard <veill...@redhat.com> + + Release of libvirt-python-3.2.0 + * setup.py: bumped version + + +2017-03-29 Peter Krempa <pkre...@redhat.com> + + event: Add handler for block threshold event + Unfortunately python doesn't generate those. + + +2017-03-29 Peter Krempa <pkre...@redhat.com> + + event: fix comment for _dispatchDomainEventMetadataChangeCallback + The comment was copied from the device removal failed event. + + 2017-01-27 Daniel P. Berrange <berra...@redhat.com> Removed unused 'functions_list_exception_test' code from generator diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-3.1.0/PKG-INFO new/libvirt-python-3.2.0/PKG-INFO --- old/libvirt-python-3.1.0/PKG-INFO 2017-03-03 11:25:59.000000000 +0100 +++ new/libvirt-python-3.2.0/PKG-INFO 2017-04-02 17:10:54.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: libvirt-python -Version: 3.1.0 +Version: 3.2.0 Summary: The libvirt virtualization API python binding Home-page: http://www.libvirt.org Author: Libvirt Maintainers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-3.1.0/examples/event-test.py new/libvirt-python-3.2.0/examples/event-test.py --- old/libvirt-python-3.1.0/examples/event-test.py 2017-01-17 19:20:56.000000000 +0100 +++ new/libvirt-python-3.2.0/examples/event-test.py 2017-04-02 16:52:04.000000000 +0200 @@ -541,6 +541,9 @@ def myDomainEventMetadataChangeCallback(conn, dom, mtype, nsuri, opaque): print("myDomainEventMetadataChangeCallback: Domain %s(%s) changed metadata mtype=%d nsuri=%s" % ( dom.name(), dom.ID(), mtype, nsuri)) +def myDomainEventBlockThresholdCallback(conn, dom, dev, path, threshold, excess, opaque): + print("myDomainEventBlockThresholdCallback: Domain %s(%s) block device %s(%s) threshold %d exceeded by %d" % ( + dom.name(), dom.ID(), dev, path, threshold, excess)) ########################################################################## # Network events @@ -710,6 +713,7 @@ vc.domainEventRegisterAny(None, libvirt.VIR_DOMAIN_EVENT_ID_JOB_COMPLETED, myDomainEventJobCompletedCallback, None) vc.domainEventRegisterAny(None, libvirt.VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED, myDomainEventDeviceRemovalFailedCallback, None) vc.domainEventRegisterAny(None, libvirt.VIR_DOMAIN_EVENT_ID_METADATA_CHANGE, myDomainEventMetadataChangeCallback, None) + vc.domainEventRegisterAny(None, libvirt.VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD, myDomainEventBlockThresholdCallback, None) vc.networkEventRegisterAny(None, libvirt.VIR_NETWORK_EVENT_ID_LIFECYCLE, myNetworkEventLifecycleCallback, None) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-3.1.0/libvirt-override-virConnect.py new/libvirt-python-3.2.0/libvirt-override-virConnect.py --- old/libvirt-python-3.1.0/libvirt-override-virConnect.py 2017-01-17 19:20:56.000000000 +0100 +++ new/libvirt-python-3.2.0/libvirt-override-virConnect.py 2017-04-02 16:52:04.000000000 +0200 @@ -244,7 +244,7 @@ return 0 def _dispatchDomainEventMetadataChangeCallback(self, dom, mtype, nsuri, cbData): - """Dispatches event to python user domain device removal failed event callbacks + """Dispatches event to python user domain metadata change event callbacks """ cb = cbData["cb"] opaque = cbData["opaque"] @@ -252,6 +252,15 @@ cb(self, virDomain(self, _obj=dom), mtype, nsuri, opaque) return 0 + def _dispatchDomainEventBlockThresholdCallback(self, dom, dev, path, threshold, excess, cbData): + """Dispatches event to python user domain block device threshold event callbacks + """ + cb = cbData["cb"] + opaque = cbData["opaque"] + + cb(self, virDomain(self, _obj=dom), dev, path, threshold, excess, opaque) + return 0 + def domainEventDeregisterAny(self, callbackID): """Removes a Domain Event Callback. De-registering for a domain callback will disable delivery of this event type """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-3.1.0/libvirt-override.c new/libvirt-python-3.2.0/libvirt-override.c --- old/libvirt-python-3.1.0/libvirt-override.c 2017-03-03 11:25:43.000000000 +0100 +++ new/libvirt-python-3.2.0/libvirt-override.c 2017-04-02 16:52:04.000000000 +0200 @@ -6932,6 +6932,63 @@ } #endif /* VIR_DOMAIN_EVENT_ID_METADATA_CHANGE */ +#ifdef VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD +static int +libvirt_virConnectDomainEventBlockThresholdCallback(virConnectPtr conn ATTRIBUTE_UNUSED, + virDomainPtr dom, + const char *dev, + const char *path, + unsigned long long threshold, + unsigned long long excess, + void *opaque) +{ + PyObject *pyobj_cbData = (PyObject*)opaque; + PyObject *pyobj_dom; + PyObject *pyobj_ret = NULL; + PyObject *pyobj_conn; + PyObject *dictKey; + int ret = -1; + + LIBVIRT_ENSURE_THREAD_STATE; + + if (!(dictKey = libvirt_constcharPtrWrap("conn"))) + goto cleanup; + pyobj_conn = PyDict_GetItem(pyobj_cbData, dictKey); + Py_DECREF(dictKey); + + /* Create a python instance of this virDomainPtr */ + virDomainRef(dom); + if (!(pyobj_dom = libvirt_virDomainPtrWrap(dom))) { + virDomainFree(dom); + goto cleanup; + } + Py_INCREF(pyobj_cbData); + + /* Call the Callback Dispatcher */ + pyobj_ret = PyObject_CallMethod(pyobj_conn, + (char*)"_dispatchDomainEventBlockThresholdCallback", + (char*)"OssiiO", + pyobj_dom, dev, path, threshold, excess, + pyobj_cbData); + + Py_DECREF(pyobj_cbData); + Py_DECREF(pyobj_dom); + + cleanup: + if (!pyobj_ret) { + DEBUG("%s - ret:%p\n", __FUNCTION__, pyobj_ret); + PyErr_Print(); + } else { + Py_DECREF(pyobj_ret); + ret = 0; + } + + LIBVIRT_RELEASE_THREAD_STATE; + return ret; +} +#endif /* VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD */ + + static PyObject * libvirt_virConnectDomainEventRegisterAny(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) @@ -7052,6 +7109,11 @@ cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventMetadataChangeCallback); break; #endif /* VIR_DOMAIN_EVENT_ID_METADATA_CHANGE */ +#ifdef VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD + case VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD: + cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventBlockThresholdCallback); + break; +#endif /* VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD */ case VIR_DOMAIN_EVENT_ID_LAST: break; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-3.1.0/libvirt-python.spec new/libvirt-python-3.2.0/libvirt-python.spec --- old/libvirt-python-3.1.0/libvirt-python.spec 2017-03-03 11:25:59.000000000 +0100 +++ new/libvirt-python-3.2.0/libvirt-python.spec 2017-04-02 17:10:54.000000000 +0200 @@ -6,7 +6,7 @@ Summary: The libvirt virtualization API python2 binding Name: libvirt-python -Version: 3.1.0 +Version: 3.2.0 Release: 1%{?dist}%{?extra_release} Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz Url: http://libvirt.org diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libvirt-python-3.1.0/setup.py new/libvirt-python-3.2.0/setup.py --- old/libvirt-python-3.1.0/setup.py 2017-03-03 11:25:43.000000000 +0100 +++ new/libvirt-python-3.2.0/setup.py 2017-04-02 17:08:30.000000000 +0200 @@ -322,7 +322,7 @@ _c_modules, _py_modules = get_module_lists() setup(name = 'libvirt-python', - version = '3.1.0', + version = '3.2.0', url = 'http://www.libvirt.org', maintainer = 'Libvirt Maintainers', maintainer_email = 'libvir-l...@redhat.com',