Hello community,

here is the log from the commit of package python-libvirt-python for 
openSUSE:Factory checked in at 2018-12-11 15:47:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libvirt-python (Old)
 and      /work/SRC/openSUSE:Factory/.python-libvirt-python.new.19453 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-libvirt-python"

Tue Dec 11 15:47:06 2018 rev:18 rq:653735 version:4.10.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-libvirt-python/python-libvirt-python.changes  
    2018-11-08 09:48:32.757095888 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-libvirt-python.new.19453/python-libvirt-python.changes
   2018-12-11 15:47:10.098250311 +0100
@@ -1,0 +2,7 @@
+Tue Dec  4 00:05:26 UTC 2018 - James Fehlig <[email protected]>
+
+- Update to 4.10.0
+  - Add all new APIs and constants in libvirt 4.10.0
+  - FATE#320928, FATE#325817, FATE#326380, FATE#326698
+
+-------------------------------------------------------------------

Old:
----
  libvirt-python-4.9.0.tar.gz
  libvirt-python-4.9.0.tar.gz.asc

New:
----
  libvirt-python-4.10.0.tar.gz
  libvirt-python-4.10.0.tar.gz.asc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-libvirt-python.spec ++++++
--- /var/tmp/diff_new_pack.vomkAU/_old  2018-12-11 15:47:10.770249571 +0100
+++ /var/tmp/diff_new_pack.vomkAU/_new  2018-12-11 15:47:10.774249567 +0100
@@ -20,7 +20,7 @@
 %define srcname libvirt-python
 Name:           python-libvirt-python
 Url:            https://libvirt.org/
-Version:        4.9.0
+Version:        4.10.0
 Release:        0
 Summary:        Library providing a virtualization API
 License:        LGPL-2.1-or-later

++++++ libvirt-python-4.9.0.tar.gz -> libvirt-python-4.10.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.9.0/ChangeLog 
new/libvirt-python-4.10.0/ChangeLog
--- old/libvirt-python-4.9.0/ChangeLog  2018-11-04 18:06:21.000000000 +0100
+++ new/libvirt-python-4.10.0/ChangeLog 2018-12-03 13:19:30.000000000 +0100
@@ -1,3 +1,55 @@
+2018-11-26 Philipp Hahn  <[email protected]>
+    
+    Add daemon to list of shutdown reasons
+    Add the support to work with libvirt commit 66a85cb13.
+    
+    
+    
+2018-11-20 John Ferlan  <[email protected]>
+    
+    Fix copy paste error on the version check value
+    
+    
+2018-11-20 John Ferlan  <[email protected]>
+    
+    Implement API binding for virDomainSetIOThreadParams
+    Similar to libvirt_virDomainBlockCopy (and migration API's). Create
+    the code for the new API.
+    
+    Reviewed-by: Pavel Hrdina <[email protected]>
+    
+    
+2018-11-20 John Ferlan  <[email protected]>
+    
+    Add check for params, nparams being a dictionary
+    If PyDict_Check fails, we should force an error rather than
+    blindly continuing on.
+    
+    Reviewed-by: Pavel Hrdina <[email protected]>
+    
+    
+2018-11-20 John Ferlan  <[email protected]>
+    
+    Add missing virPyDictToTypedParams for libvirt_virDomainBlockCopy
+    Need to free params like similar API's such as libvirt_virDomainMigrate3
+    and libvirt_virDomainMigrateToURI3.
+    
+    Reviewed-by: Pavel Hrdina <[email protected]>
+    
+    
+2018-11-20 John Ferlan  <[email protected]>
+    
+    Fix typos in virDomainSetSchedulerParameters name
+    Reviewed-by: Pavel Hrdina <[email protected]>
+    
+    
+2018-11-04 Daniel Veillard  <[email protected]>
+    
+    Release of libvirt-python 4.9.0
+    * setup.py: update for new release
+    
+    
+    
 2018-11-01 Philipp Hahn  <[email protected]>
     
     event-test.py: Report ERROR events
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.9.0/PKG-INFO 
new/libvirt-python-4.10.0/PKG-INFO
--- old/libvirt-python-4.9.0/PKG-INFO   2018-11-04 18:06:22.000000000 +0100
+++ new/libvirt-python-4.10.0/PKG-INFO  2018-12-03 13:19:30.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: libvirt-python
-Version: 4.9.0
+Version: 4.10.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-4.9.0/examples/event-test.py 
new/libvirt-python-4.10.0/examples/event-test.py
--- old/libvirt-python-4.9.0/examples/event-test.py     2018-11-04 
18:03:50.000000000 +0100
+++ new/libvirt-python-4.10.0/examples/event-test.py    2018-12-03 
13:18:19.000000000 +0100
@@ -497,7 +497,7 @@
     ("Started", ("Booted", "Migrated", "Restored", "Snapshot", "Wakeup")),
     ("Suspended", ("Paused", "Migrated", "IOError", "Watchdog", "Restored", 
"Snapshot", "API error", "Postcopy", "Postcopy failed")),
     ("Resumed", ("Unpaused", "Migrated", "Snapshot", "Postcopy")),
-    ("Stopped", ("Shutdown", "Destroyed", "Crashed", "Migrated", "Saved", 
"Failed", "Snapshot")),
+    ("Stopped", ("Shutdown", "Destroyed", "Crashed", "Migrated", "Saved", 
"Failed", "Snapshot", "Daemon")),
     ("Shutdown", ("Finished", "On guest request", "On host request")),
     ("PMSuspended", ("Memory", "Disk")),
     ("Crashed", ("Panicked",)),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.9.0/generator.py 
new/libvirt-python-4.10.0/generator.py
--- old/libvirt-python-4.9.0/generator.py       2018-09-03 19:31:03.000000000 
+0200
+++ new/libvirt-python-4.10.0/generator.py      2018-12-03 13:18:19.000000000 
+0100
@@ -440,6 +440,7 @@
     'virDomainPinEmulator',
     'virDomainGetIOThreadInfo',
     'virDomainPinIOThread',
+    'virDomainSetIOThreadParams',
     'virSecretGetValue',
     'virSecretSetValue',
     'virSecretGetUUID',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.9.0/libvirt-override-api.xml 
new/libvirt-python-4.10.0/libvirt-override-api.xml
--- old/libvirt-python-4.9.0/libvirt-override-api.xml   2018-09-03 
19:31:03.000000000 +0200
+++ new/libvirt-python-4.10.0/libvirt-override-api.xml  2018-12-03 
13:18:19.000000000 +0100
@@ -292,6 +292,14 @@
       <arg name='cpumap' type='unsigned char *' info='pointer to a bit map of 
real CPUs (in 8-bit bytes) (IN) Each bit set to 1 means that corresponding CPU 
is usable. Bytes are stored in little-endian order: CPU0-7, 8-15... In each 
byte, lowest CPU number is least significant bit.'/>
       <arg name='flags'  type='int' info='an OR&apos;ed set of 
virDomainModificationImpact'/>
     </function>
+    <function name='virDomainSetIOThreadParams' file='python'>
+      <info>Dynamically allow changing the IOThread polling related 
parameters. This function requires privileged access to the hypervisor.</info>
+      <return type='int' info='0 in case of success, -1 in case of failure.'/>
+      <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
+      <arg name='iothread_val' type='unsigned int' info='iothread_id number'/>
+      <arg name='params' type='virTypedParameterPtr' info='pointer to IOThread 
polling parameter objects'/>
+      <arg name='flags'  type='int' info='an OR&apos;ed set of 
virDomainModificationImpact'/>
+    </function>
     <function name='virDomainSetSchedulerParameters' file='python'>
       <info>Change the scheduler parameters</info>
       <return type='int' info='-1 in case of error, 0 in case of success.'/>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.9.0/libvirt-override.c 
new/libvirt-python-4.10.0/libvirt-override.c
--- old/libvirt-python-4.9.0/libvirt-override.c 2018-09-03 19:31:03.000000000 
+0200
+++ new/libvirt-python-4.10.0/libvirt-override.c        2018-12-03 
13:18:19.000000000 +0100
@@ -571,7 +571,7 @@
     Py_ssize_t size = 0;
     virTypedParameterPtr params = NULL, new_params = NULL;
 
-    if (!PyArg_ParseTuple(args, (char *)"OO:virDomainSetScedulerParameters",
+    if (!PyArg_ParseTuple(args, (char *)"OO:virDomainSetSchedulerParameters",
                           &pyobj_domain, &info))
         return NULL;
     domain = (virDomainPtr) PyvirDomain_Get(pyobj_domain);
@@ -647,7 +647,7 @@
     virTypedParameterPtr params = NULL, new_params = NULL;
 
     if (!PyArg_ParseTuple(args,
-                          (char *)"OOI:virDomainSetScedulerParametersFlags",
+                          (char *)"OOI:virDomainSetSchedulerParametersFlags",
                           &pyobj_domain, &info, &flags))
         return NULL;
     domain = (virDomainPtr) PyvirDomain_Get(pyobj_domain);
@@ -1679,6 +1679,57 @@
 
 #endif /* LIBVIR_CHECK_VERSION(1, 2, 14) */
 
+#if LIBVIR_CHECK_VERSION(4, 10, 0)
+
+static virPyTypedParamsHint virPyDomainSetIOThreadParams[] = {
+    { VIR_DOMAIN_IOTHREAD_POLL_MAX_NS, VIR_TYPED_PARAM_ULLONG },
+    { VIR_DOMAIN_IOTHREAD_POLL_GROW, VIR_TYPED_PARAM_UINT },
+    { VIR_DOMAIN_IOTHREAD_POLL_SHRINK, VIR_TYPED_PARAM_ULLONG },
+};
+
+static PyObject *
+libvirt_virDomainSetIOThreadParams(PyObject *self ATTRIBUTE_UNUSED,
+                                   PyObject *args)
+{
+    PyObject *pyobj_dom = NULL;
+    PyObject *pyobj_dict = NULL;
+
+    virDomainPtr dom;
+    int iothread_val;
+    virTypedParameterPtr params = NULL;
+    int nparams = 0;
+    unsigned int flags;
+    int c_retval;
+
+    if (!PyArg_ParseTuple(args, (char *)"OiOI:virDomainSetIOThreadParams",
+                          &pyobj_dom, &iothread_val, &pyobj_dict, &flags))
+        return NULL;
+
+    if (PyDict_Check(pyobj_dict)) {
+        if (virPyDictToTypedParams(pyobj_dict, &params, &nparams,
+                                   virPyDomainSetIOThreadParams,
+                                   
VIR_N_ELEMENTS(virPyDomainSetIOThreadParams)) < 0) {
+            return NULL;
+        }
+    } else {
+        PyErr_Format(PyExc_TypeError, "IOThread polling params must be "
+                     "a dictionary");
+        return NULL;
+    }
+
+    dom = (virDomainPtr) PyvirDomain_Get(pyobj_dom);
+
+    LIBVIRT_BEGIN_ALLOW_THREADS;
+    c_retval = virDomainSetIOThreadParams(dom, iothread_val,
+                                          params, nparams, flags);
+    LIBVIRT_END_ALLOW_THREADS;
+
+    virTypedParamsFree(params, nparams);
+
+    return libvirt_intWrap(c_retval);
+}
+#endif /* LIBVIR_CHECK_VERSION(4, 10, 0) */
+
 /************************************************************************
  *                                                                     *
  *             Global error handler at the Python level                *
@@ -7861,6 +7912,11 @@
     domain = (virDomainPtr) PyvirDomain_Get(pyobj_domain);
     dconn = (virConnectPtr) PyvirConnect_Get(pyobj_dconn);
 
+    if (!PyDict_Check(dict)) {
+        PyErr_Format(PyExc_TypeError, "migration params must be a dictionary");
+        return NULL;
+    }
+
     if (virPyDictToTypedParams(dict, &params, &nparams,
                                virPyDomainMigrate3Params,
                                VIR_N_ELEMENTS(virPyDomainMigrate3Params)) < 0) 
{
@@ -7894,6 +7950,11 @@
 
     domain = (virDomainPtr) PyvirDomain_Get(pyobj_domain);
 
+    if (!PyDict_Check(dict)) {
+        PyErr_Format(PyExc_TypeError, "migration params must be a dictionary");
+        return NULL;
+    }
+
     if (virPyDictToTypedParams(dict, &params, &nparams,
                                virPyDomainMigrate3Params,
                                VIR_N_ELEMENTS(virPyDomainMigrate3Params)) < 0) 
{
@@ -8776,6 +8837,9 @@
                                    VIR_N_ELEMENTS(virPyDomainBlockCopyParams)) 
< 0) {
             return NULL;
         }
+    } else {
+        PyErr_Format(PyExc_TypeError, "block params must be a dictionary");
+        return NULL;
     }
 
     dom = (virDomainPtr) PyvirDomain_Get(pyobj_dom);
@@ -8784,6 +8848,7 @@
     c_retval = virDomainBlockCopy(dom, disk, destxml, params, nparams, flags);
     LIBVIRT_END_ALLOW_THREADS;
 
+    virTypedParamsFree(params, nparams);
     return libvirt_intWrap(c_retval);
 }
 
@@ -9974,6 +10039,9 @@
     {(char *) "virDomainGetIOThreadInfo", libvirt_virDomainGetIOThreadInfo, 
METH_VARARGS, NULL},
     {(char *) "virDomainPinIOThread", libvirt_virDomainPinIOThread, 
METH_VARARGS, NULL},
 #endif /* LIBVIR_CHECK_VERSION(1, 2, 14) */
+#if LIBVIR_CHECK_VERSION(4, 10, 0)
+    {(char *) "virDomainSetIOThreadParams", 
libvirt_virDomainSetIOThreadParams, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(4, 10, 0) */
     {(char *) "virConnectListStoragePools", 
libvirt_virConnectListStoragePools, METH_VARARGS, NULL},
     {(char *) "virConnectListDefinedStoragePools", 
libvirt_virConnectListDefinedStoragePools, METH_VARARGS, NULL},
 #if LIBVIR_CHECK_VERSION(0, 10, 2)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-4.9.0/libvirt-python.spec 
new/libvirt-python-4.10.0/libvirt-python.spec
--- old/libvirt-python-4.9.0/libvirt-python.spec        2018-11-04 
18:06:21.000000000 +0100
+++ new/libvirt-python-4.10.0/libvirt-python.spec       2018-12-03 
13:19:30.000000000 +0100
@@ -33,7 +33,7 @@
 
 Summary: The libvirt virtualization API python2 binding
 Name: libvirt-python
-Version: 4.9.0
+Version: 4.10.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-4.9.0/setup.py 
new/libvirt-python-4.10.0/setup.py
--- old/libvirt-python-4.9.0/setup.py   2018-11-04 18:06:08.000000000 +0100
+++ new/libvirt-python-4.10.0/setup.py  2018-12-03 13:19:22.000000000 +0100
@@ -334,7 +334,7 @@
 _c_modules, _py_modules = get_module_lists()
 
 setup(name = 'libvirt-python',
-      version = '4.9.0',
+      version = '4.10.0',
       url = 'http://www.libvirt.org',
       maintainer = 'Libvirt Maintainers',
       maintainer_email = '[email protected]',


Reply via email to