Hello community,
here is the log from the commit of package python-libvirt-python for
openSUSE:Factory checked in at 2019-10-22 15:38:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libvirt-python (Old)
and /work/SRC/openSUSE:Factory/.python-libvirt-python.new.2352 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-libvirt-python"
Tue Oct 22 15:38:22 2019 rev:27 rq:737237 version:5.8.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-libvirt-python/python-libvirt-python.changes
2019-09-11 10:22:51.235492444 +0200
+++
/work/SRC/openSUSE:Factory/.python-libvirt-python.new.2352/python-libvirt-python.changes
2019-10-22 15:38:23.973234879 +0200
@@ -1,0 +2,6 @@
+Thu Oct 10 15:42:12 UTC 2019 - James Fehlig <[email protected]>
+
+- Update to 5.8.0
+ - Add all new APIs and constants in libvirt 5.8.0
+
+-------------------------------------------------------------------
Old:
----
libvirt-python-5.7.0.tar.gz
libvirt-python-5.7.0.tar.gz.asc
New:
----
libvirt-python-5.8.0.tar.gz
libvirt-python-5.8.0.tar.gz.asc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-libvirt-python.spec ++++++
--- /var/tmp/diff_new_pack.TRKrn9/_old 2019-10-22 15:38:24.425235394 +0200
+++ /var/tmp/diff_new_pack.TRKrn9/_new 2019-10-22 15:38:24.429235399 +0200
@@ -20,7 +20,7 @@
%define srcname libvirt-python
Name: python-libvirt-python
Url: https://libvirt.org/
-Version: 5.7.0
+Version: 5.8.0
Release: 0
Summary: Library providing a virtualization API
License: LGPL-2.1-or-later
++++++ libvirt-python-5.7.0.tar.gz -> libvirt-python-5.8.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.7.0/ChangeLog
new/libvirt-python-5.8.0/ChangeLog
--- old/libvirt-python-5.7.0/ChangeLog 2019-09-03 17:14:01.000000000 +0200
+++ new/libvirt-python-5.8.0/ChangeLog 2019-10-05 09:53:22.000000000 +0200
@@ -1,3 +1,80 @@
+2019-09-23 Pavel Hrdina <[email protected]>
+
+ virDomainMigrate3Params: add missing parallel connections param
+ Introduced in libvirt 5.2.0 by commit <d3ea986af24>.
+
+ Reported-by: Liping Cheng <[email protected]>
+ Reviewed-by: Daniel P. Berrangé <[email protected]>
+
+
+2019-09-23 Pavel Hrdina <[email protected]>
+
+ virDomainMigrate3Params: add missing bandwidth postcopy param
+ Introduced in libvirt 5.1.0 by commit <c830187a015>.
+
+ Reviewed-by: Daniel P. Berrangé <[email protected]>
+
+
+2019-09-20 Daniel P. Berrangé <[email protected]>
+
+ Custom impl for virConnectSetIdentity which can't be generated
+ Reviewed-by: Pavel Hrdina <[email protected]>
+
+
+2019-09-20 Pavel Hrdina <[email protected]>
+
+ virDomainMemoryStats: include hugetlb pgalloc and pgfail
+ Introduced in libvirt 5.4.0 by commit <a699b19f6c3>.
+
+ Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1683516
+
+ Reviewed-by: Daniel P. Berrangé <[email protected]>
+
+
+2019-09-20 Pavel Hrdina <[email protected]>
+
+ virDomainMemoryStats: include disk caches
+ Introduced in libvirt 4.6.0 by commit <aee04655089>.
+
+ Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1683516
+
+ Reviewed-by: Daniel P. Berrangé <[email protected]>
+
+
+2019-09-12 Daniel P. Berrangé <[email protected]>
+
+ sanitytest: whitelist 'network' method as having no C impl
+
+
+2019-09-12 Daniel P. Berrangé <[email protected]>
+
+ generator: fix constructor for virNetworkPort
+ The virNetworkPort class is passed both the virNetwork parent
+ python class and the virNetworkPort C object. This needs special
+ handling in the generator, similar to how virDomainSnapshots are
+ dealt with.
+
+ Reviewed-by: Michal Privoznik <[email protected]>
+
+
+2019-09-05 Cole Robinson <[email protected]>
+
+ Fix -Wsign-compare warnings
+ libvirt-override.c: In function ‘libvirt_virConnectBaselineHypervisorCPU’:
+ libvirt-override.c:9946:23: warning: comparison of integer expressions of
different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
[-Wsign-compare]
+ libvirt-override.c:9961:19: warning: comparison of integer expressions of
different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
[-Wsign-compare]
+
+ Use ssize_t as was similarly done in 75ec2acb6163b
+
+ Reviewed-by: Ján Tomko <[email protected]>
+ Reviewed-by: Pavel Hrdina <[email protected]>
+
+
+2019-09-03 Daniel Veillard <[email protected]>
+
+ Release of libvirt-python 5.7.0
+
+
2019-09-03 Nir Soffer <[email protected]>
spec: Build python2 package in fedora < 31
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.7.0/PKG-INFO
new/libvirt-python-5.8.0/PKG-INFO
--- old/libvirt-python-5.7.0/PKG-INFO 2019-09-03 17:14:02.000000000 +0200
+++ new/libvirt-python-5.8.0/PKG-INFO 2019-10-05 09:53:22.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: libvirt-python
-Version: 5.7.0
+Version: 5.8.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-5.7.0/generator.py
new/libvirt-python-5.8.0/generator.py
--- old/libvirt-python-5.7.0/generator.py 2019-09-03 17:06:12.000000000
+0200
+++ new/libvirt-python-5.8.0/generator.py 2019-10-05 09:53:03.000000000
+0200
@@ -489,6 +489,7 @@
'virDomainGetDiskErrors',
'virNodeGetMemoryParameters',
'virNodeSetMemoryParameters',
+ 'virConnectSetIdentity',
'virNodeGetCPUMap',
'virDomainMigrate3',
'virDomainMigrateToURI3',
@@ -1083,6 +1084,10 @@
"virDomainSnapshot": True,
}
+class_network_impl = {
+ "virNetworkPort": True,
+}
+
functions_noexcept = {
'virDomainGetID': True,
'virDomainGetName': True,
@@ -1551,6 +1556,8 @@
classes.write(" def __init__(self, conn, _obj=None):\n")
elif classname in [ "virDomainCheckpoint", "virDomainSnapshot" ]:
classes.write(" def __init__(self, dom, _obj=None):\n")
+ elif classname in [ "virNetworkPort" ]:
+ classes.write(" def __init__(self, net, _obj=None):\n")
else:
classes.write(" def __init__(self, _obj=None):\n")
if classname in [ "virDomain", "virNetwork", "virInterface",
@@ -1564,6 +1571,9 @@
elif classname in [ "virDomainCheckpoint", "virDomainSnapshot" ]:
classes.write(" self._dom = dom\n")
classes.write(" self._conn = dom.connect()\n")
+ elif classname in [ "virNetworkPort" ]:
+ classes.write(" self._net = net\n")
+ classes.write(" self._conn = net.connect()\n")
classes.write(" if type(_obj).__name__ not in
[\"PyCapsule\", \"PyCObject\"]:\n")
classes.write(" raise Exception(\"Expected a wrapped C
Object but got %s\" % type(_obj))\n")
classes.write(" self._o = _obj\n\n")
@@ -1585,6 +1595,10 @@
classes.write(" def domain(self):\n")
classes.write(" return self._dom\n\n")
+ if classname in class_network_impl:
+ classes.write(" def network(self):\n")
+ classes.write(" return self._net\n\n")
+
classes.write(" def c_pointer(self):\n")
classes.write(" \"\"\"Get C pointer to underlying
object\"\"\"\n")
classes.write(" return libvirtmod.%s_pointer(self._o)\n\n" %
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.7.0/libvirt-override-api.xml
new/libvirt-python-5.8.0/libvirt-override-api.xml
--- old/libvirt-python-5.7.0/libvirt-override-api.xml 2019-09-03
17:06:12.000000000 +0200
+++ new/libvirt-python-5.8.0/libvirt-override-api.xml 2019-10-05
09:53:03.000000000 +0200
@@ -796,5 +796,12 @@
<arg name='types' type='int' info='optional binary-OR of
virDomainGuestInfoTypes'/>
<arg name='flags' type='int' info='unused, always pass 0'/>
</function>
+ <function name='virConnectSetIdentity' file='libvirt-host'
module='libvirt-host'>
+ <info>Override the default identity information associated with the
connection.</info>
+ <return type='int' info='0 if the identity change was accepted, -1 on
error'/>
+ <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor
connection'/>
+ <arg name='params' type='virTypedParameterPtr' info='parameters
containing the identity attributes'/>
+ <arg name='flags' type='unsigned int' info='currently unused, pass 0'/>
+ </function>
</symbols>
</api>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.7.0/libvirt-override.c
new/libvirt-python-5.8.0/libvirt-override.c
--- old/libvirt-python-5.7.0/libvirt-override.c 2019-09-03 17:06:12.000000000
+0200
+++ new/libvirt-python-5.8.0/libvirt-override.c 2019-10-05 09:53:03.000000000
+0200
@@ -409,6 +409,19 @@
key = libvirt_constcharPtrWrap("last_update");
break;
#endif /* LIBVIR_CHECK_VERSION(2, 1, 0) */
+#if LIBVIR_CHECK_VERSION(4, 6, 0)
+ case VIR_DOMAIN_MEMORY_STAT_DISK_CACHES:
+ key = libvirt_constcharPtrWrap("disk_caches");
+ break;
+#endif /* LIBVIR_CHECK_VERSION(4, 6, 0) */
+#if LIBVIR_CHECK_VERSION(5, 4, 0)
+ case VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGALLOC:
+ key = libvirt_constcharPtrWrap("hugetlb_pgalloc");
+ break;
+ case VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGFAIL:
+ key = libvirt_constcharPtrWrap("hugetlb_pgfail");
+ break;
+#endif /* LIBVIR_CHECK_VERSION(5, 4, 0) */
default:
continue;
}
@@ -7980,6 +7993,12 @@
# ifdef VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT
{ VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT, VIR_TYPED_PARAM_INT },
# endif
+# ifdef VIR_MIGRATE_PARAM_BANDWIDTH_POSTCOPY
+ { VIR_MIGRATE_PARAM_BANDWIDTH_POSTCOPY, VIR_TYPED_PARAM_ULLONG },
+# endif
+# ifdef VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS
+ { VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS, VIR_TYPED_PARAM_INT },
+# endif
};
@@ -9927,7 +9946,7 @@
unsigned int flags;
char **xmlCPUs = NULL;
int ncpus = 0;
- size_t i;
+ ssize_t i;
char *cpu;
PyObject *ret = NULL;
@@ -10209,6 +10228,67 @@
}
#endif /* LIBVIR_CHECK_VERSION(5, 7, 0) */
+
+#if LIBVIR_CHECK_VERSION(5, 8, 0)
+static virPyTypedParamsHint virPyConnectSetIdentityParams[] = {
+ { VIR_CONNECT_IDENTITY_USER_NAME, VIR_TYPED_PARAM_STRING },
+ { VIR_CONNECT_IDENTITY_UNIX_USER_ID, VIR_TYPED_PARAM_ULLONG },
+ { VIR_CONNECT_IDENTITY_GROUP_NAME, VIR_TYPED_PARAM_STRING },
+ { VIR_CONNECT_IDENTITY_UNIX_GROUP_ID, VIR_TYPED_PARAM_ULLONG },
+ { VIR_CONNECT_IDENTITY_PROCESS_ID, VIR_TYPED_PARAM_LLONG },
+ { VIR_CONNECT_IDENTITY_PROCESS_TIME, VIR_TYPED_PARAM_ULLONG },
+ { VIR_CONNECT_IDENTITY_SASL_USER_NAME, VIR_TYPED_PARAM_STRING },
+ { VIR_CONNECT_IDENTITY_X509_DISTINGUISHED_NAME, VIR_TYPED_PARAM_STRING },
+ { VIR_CONNECT_IDENTITY_SELINUX_CONTEXT, VIR_TYPED_PARAM_STRING },
+};
+
+static PyObject *
+libvirt_virConnectSetIdentity(PyObject *self ATTRIBUTE_UNUSED,
+ PyObject *args)
+{
+ virConnectPtr conn;
+ PyObject *pyobj_conn, *dict;
+ PyObject *ret = NULL;
+ int i_retval;
+ int nparams = 0;
+ unsigned int flags;
+ virTypedParameterPtr params = NULL;
+
+ if (!PyArg_ParseTuple(args,
+ (char *)"OOI:virConnectSetIdentity",
+ &pyobj_conn, &dict, &flags))
+ return NULL;
+ conn = (virConnectPtr) PyvirConnect_Get(pyobj_conn);
+
+ if (!PyDict_Check(dict)) {
+ PyErr_Format(PyExc_TypeError, "migration params must be a dictionary");
+ return NULL;
+ }
+
+ if (virPyDictToTypedParams(dict, ¶ms, &nparams,
+ virPyConnectSetIdentityParams,
+ VIR_N_ELEMENTS(virPyConnectSetIdentityParams))
< 0) {
+ return NULL;
+ }
+
+ LIBVIRT_BEGIN_ALLOW_THREADS;
+ i_retval = virConnectSetIdentity(conn, params, nparams, flags);
+ LIBVIRT_END_ALLOW_THREADS;
+
+ if (i_retval < 0) {
+ ret = VIR_PY_INT_FAIL;
+ goto cleanup;
+ }
+
+ ret = VIR_PY_INT_SUCCESS;
+
+ cleanup:
+ virTypedParamsFree(params, nparams);
+ return ret;
+}
+#endif /* LIBVIR_CHECK_VERSION(5, 8, 0) */
+
+
/************************************************************************
* *
* The registration stuff *
@@ -10467,6 +10547,9 @@
#if LIBVIR_CHECK_VERSION(5, 7, 0)
{(char *) "virDomainGetGuestInfo", libvirt_virDomainGetGuestInfo,
METH_VARARGS, NULL},
#endif /* LIBVIR_CHECK_VERSION(5, 7, 0) */
+#if LIBVIR_CHECK_VERSION(5, 8, 0)
+ {(char *) "virConnectSetIdentity", libvirt_virConnectSetIdentity,
METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(5, 8, 0) */
{NULL, NULL, 0, NULL}
};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.7.0/libvirt-python.spec
new/libvirt-python-5.8.0/libvirt-python.spec
--- old/libvirt-python-5.7.0/libvirt-python.spec 2019-09-03
17:14:01.000000000 +0200
+++ new/libvirt-python-5.8.0/libvirt-python.spec 2019-10-05
09:53:22.000000000 +0200
@@ -33,7 +33,7 @@
Summary: The libvirt virtualization API python2 binding
Name: libvirt-python
-Version: 5.7.0
+Version: 5.8.0
Release: 1%{?dist}
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-5.7.0/sanitytest.py
new/libvirt-python-5.8.0/sanitytest.py
--- old/libvirt-python-5.7.0/sanitytest.py 2019-08-05 19:18:56.000000000
+0200
+++ new/libvirt-python-5.8.0/sanitytest.py 2019-10-05 09:53:03.000000000
+0200
@@ -357,7 +357,7 @@
for func in sorted(gotfunctions[klass]):
# These are pure python methods with no C APi
if func in ["connect", "getConnect", "domain", "getDomain",
- "virEventInvokeFreeCallback",
+ "virEventInvokeFreeCallback", "network",
"sparseRecvAll", "sparseSendAll"]:
continue
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.7.0/setup.py
new/libvirt-python-5.8.0/setup.py
--- old/libvirt-python-5.7.0/setup.py 2019-09-03 17:08:56.000000000 +0200
+++ new/libvirt-python-5.8.0/setup.py 2019-10-05 09:53:13.000000000 +0200
@@ -334,7 +334,7 @@
_c_modules, _py_modules = get_module_lists()
setup(name = 'libvirt-python',
- version = '5.7.0',
+ version = '5.8.0',
url = 'http://www.libvirt.org',
maintainer = 'Libvirt Maintainers',
maintainer_email = '[email protected]',