summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* tox: Test with Python 3.6, 3.7 and 3.8Radostin Stoyanov2020-03-301-1/+1
| | | | | | | Support for Python 2.X has been dropped with commit b22e4f2. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
* Release of libvirt-python 6.1.0v6.1.0Daniel Veillard2020-03-031-1/+1
| | | | | | * setup.py : updated for release Signed-off-by: Daniel Veillard <veillard@redhat.com>
* gitpublish: add 'libvirt-' to subject prefixDaniel P. Berrangé2020-01-161-1/+1
| | | | | Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Release of libvirt-python-6.0.0v6.0.0Daniel Veillard2020-01-151-1/+1
| | | | | | * setup.py: updated for the release Signed-off-by: Daniel Veillard <veillard@redhat.com>
* Add overrides for network port UUID getter/lookup methodsDaniel P. Berrangé2020-01-033-0/+102
| | | | | | | The generator creates broken code for all these methods. Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* fix class type instantiated when listing network portsDaniel P. Berrangé2020-01-031-2/+2
| | | | | Reviewed-by: Erik Skultety <eskultet@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* setup: Accept 'nosetests3' as nosetests binaryAndrea Bolognani2019-12-091-0/+1
| | | | | | | This is the name used on Ubuntu. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
* Fix RPM deps for centos 7Daniel P. Berrangé2019-12-061-0/+5
| | | | | Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Drop support for python 2Daniel P. Berrangé2019-12-0426-381/+71
| | | | | | | | | python2 will be end of life by the time of the next libvirt release. All our supported build targets, including CentOS7, have a python3 build available. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Release of libvirt-python 5.10.0v5.10.0Daniel Veillard2019-12-021-1/+1
| | | | | | * setup.py: update for release Signed-off-by: Daniel Veillard <veillard@redhat.com>
* generator.py: add mapping for VIR_DOMAIN_QEMU_AGENT_COMMAND_*Pavel Hrdina2019-11-281-0/+6
| | | | | | | | | | | | | | | | | | Libvirt commit <95f5ac9ae52455e9da47afc95fa31c9456ac27ae> changed the VIR_DOMAIN_QEMU_AGENT_COMMAND_* enum values to use different enum values instead of direct numbers. We need to translate it back. Traceback (most recent call last): File "generator.py", line 2143, in <module> qemuBuildWrappers(sys.argv[1]) File "generator.py", line 2008, in qemuBuildWrappers items.sort(key=lambda i: (int(i[1]), i[0])) File "generator.py", line 2008, in <lambda> items.sort(key=lambda i: (int(i[1]), i[0])) ValueError: invalid literal for int() with base 10: 'VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK' Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
* Release of libvirt-python 5.9.0v5.9.0Daniel Veillard2019-11-061-1/+1
| | | | | | * setup.py: update for release Signed-off-by: Daniel Veillard <veillard@redhat.com>
* Release of libvirt-python 5.8.0v5.8.0Daniel Veillard2019-10-051-1/+1
| | | | | | * setup.py: updated version Signed-off-by: Daniel Veillard <veillard@redhat.com>
* virDomainMigrate3Params: add missing parallel connections paramPavel Hrdina2019-09-231-0/+3
| | | | | | | | Introduced in libvirt 5.2.0 by commit <d3ea986af24>. Reported-by: Liping Cheng <lcheng@redhat.com> Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
* virDomainMigrate3Params: add missing bandwidth postcopy paramPavel Hrdina2019-09-231-0/+3
| | | | | | | Introduced in libvirt 5.1.0 by commit <c830187a015>. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
* Custom impl for virConnectSetIdentity which can't be generatedDaniel P. Berrangé2019-09-203-0/+72
| | | | | Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* virDomainMemoryStats: include hugetlb pgalloc and pgfailPavel Hrdina2019-09-201-0/+8
| | | | | | | | | Introduced in libvirt 5.4.0 by commit <a699b19f6c3>. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1683516 Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
* virDomainMemoryStats: include disk cachesPavel Hrdina2019-09-201-0/+5
| | | | | | | | | Introduced in libvirt 4.6.0 by commit <aee04655089>. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1683516 Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
* sanitytest: whitelist 'network' method as having no C implDaniel P. Berrangé2019-09-121-1/+1
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* generator: fix constructor for virNetworkPortDaniel P. Berrangé2019-09-121-0/+13
| | | | | | | | | | 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 <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Fix -Wsign-compare warningsCole Robinson2019-09-051-1/+1
| | | | | | | | | | | | 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 <jtomko@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
* Release of libvirt-python 5.7.0v5.7.0Daniel Veillard2019-09-031-1/+1
| | | | Signed-off-by: Daniel Veillard <veillard@redhat.com>
* spec: Build python2 package in fedora < 31Nir Soffer2019-09-031-1/+1
| | | | | | | | | | Since commit ee0cfbe65c5d (spec: Unconditionally build python2 on Fedora) python2-libvirt is not built on any Fedora version. Fix the spec to drop python2-libvirt on Fedora 31. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Nir Soffer <nsoffer@redhat.com>
* Implement virDomainGetGuestInfoMichal Privoznik2019-08-293-0/+44
| | | | | Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
* Release of libvirt-python-5.6.0v5.6.0Daniel Veillard2019-08-051-1/+1
| | | | | | * setup.py: updated for new release Signed-off-by: Daniel Veillard <veillard@redhat.com>
* Define virDomainCheckpointPtr typedef on old libvirtEric Blake2019-07-291-0/+3
| | | | | | Needed prior to 5.6.0 Signed-off-by: Eric Blake <eblake@redhat.com>
* Add virDomainCheckpoint APIsEric Blake2019-07-2910-7/+196
| | | | | | | | | Copies heavily from existing virDomainSnapshot handling, regarding what special cases the generator has to be taught and what overrides need to be written. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
* spec: Bump minimum supported Fedora version to 29Cole Robinson2019-07-091-1/+1
| | | | | Signed-off-by: Cole Robinson <crobinso@redhat.com> Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
* spec: Unconditionally build python2 on FedoraCole Robinson2019-07-091-1/+1
| | | | | | | | | | | | | | In Fedora we are currently shipping python2 bindings for all builds, so this conditional is out of date. Fedora 31 may be the time that python2 bindings are dropped: https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal But I think it's better to wait for that to actually happen before we change this again Signed-off-by: Cole Robinson <crobinso@redhat.com> Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
* Release of libvirt-python 5.5.0v5.5.0Daniel Veillard2019-07-021-1/+1
| | | | | | * setup.py: update for release Signed-off-by: Daniel Veillard <veillard@redhat.com>
* Fix regression in lxcOpenNamespaceSergei Turchanov2019-06-261-1/+1
| | | | | | | | | | | This fixes regression caused by the 1d39dbaf637db03f6e597ed56b96aa065710b4a1 fdlist[i] erroneously was replaced by fdlist[1] which caused lxcOpenNamespace to return a list with identical elements. Signed-off-by: Sergei Turchanov <turchanov@farpost.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
* Add new override file to distDaniel P. Berrangé2019-06-201-0/+1
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Add missing impl of virNetworkListAllPortsDaniel P. Berrangé2019-06-202-0/+57
| | | | | | This API needs manual impl as the generator cannot cope Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* sanitytest: add some special cases for virNetworkPort APIsDaniel P. Berrangé2019-06-201-1/+4
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* generator: fix naming of getter APIs for virNetworkPortDaniel P. Berrangé2019-06-201-0/+3
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Define virNetworkPortPtr typedef on old libvirtDaniel P. Berrangé2019-06-201-0/+3
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Fix syntax error with missing ; and too many )Daniel P. Berrangé2019-06-201-1/+1
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Add support for virNetworkPort object & APIsDaniel P. Berrangé2019-06-205-2/+156
| | | | | | | | | Define the various rules in the generator to wire up methods into the virNetwork class and create the new virNetworkPort class. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Release of Libvirt-python 5.4.0v5.4.0Daniel Veillard2019-06-031-1/+1
| | | | Signed-off-by: Daniel Veillard <veillard@redhat.com>
* Release of libvirt-python 5.3.0v5.3.0Daniel Veillard2019-05-041-1/+1
| | | | | | * setup.py: bumped release version Signed-off-by: Daniel Veillard <veillard@redhat.com>
* Allow virConnect.getDomainCapabilities() to have no argumentsMichal Privoznik2019-04-291-0/+10
| | | | | | | | | Our C API allows no values to be passed (well, it accepts all NULLs). There's no reason that python binding should require all arguments. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Kashyap Chamarthy <kchamart@redhat.com>
* rpm: use new python macros for build/install rulesDaniel P. Berrangé2019-04-041-0/+16
| | | | | | | | The new %py{2,3}_{build,install} macros ensure that the right compiler and linker flags are used when building python modules. Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Release of libvirt-python 5.2.0v5.2.0Daniel Veillard2019-04-031-1/+1
| | | | | | * setup.py: bumped release version up Signed-off-by: Daniel Veillard <veillard@redhat.com>
* Fix handling of optional params in blockCopy()Nir Soffer2019-03-121-1/+1
| | | | | | | | | | | | | | | | | Commit 2b4bd07e0a22 (Add check for params, nparams being a dictionary) changed the way the optional params argument is treated. If libvirt.virDomain.blockCopy() is called without specifying params, params is None, and the call will fail with: TypeError: block params must be a dictionary This is wrong as params is defined as kwarg, breaking existing libvirt users like oVirt. Add a check for Py_None, so we accept either a dict or None and fail with TypeError with anything else. Resolves: https://bugzilla.redhat.com/1687114 Signed-off-by: Nir Soffer <nsoffer@redhat.com>
* Release of libvirt-python 5.1.0v5.1.0Daniel Veillard2019-03-041-1/+1
| | | | | | * setup.py: updated for release Signed-off-by: Daniel Veillard <veillard@redhat.com>
* Fix virDomainPinIOThread typed params checkPavel Hrdina2019-02-251-1/+1
| | | | | | | | The VIR_DOMAIN_IOTHREAD_POLL_SHRINK is unsigned int. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1680546 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* generator.py: typo fixEric Blake2019-02-071-1/+1
| | | | Signed-off-by: Eric Blake <eblake@redhat.com>
* travis: add testing of 5.0.0 releaseDaniel P. Berrangé2019-01-241-0/+1
| | | | | | | | | Update to test against very latest release. Since we dropped two python versions, we can afford to add new libvirt version without dropping a previous one. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* travis: switch from trusty to xenial distDaniel P. Berrangé2019-01-241-0/+1
| | | | | | | The trusty gnutls version is too old to support modern libvirt Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* travis: remove python 2.6 and 3.6 from build matrixDaniel P. Berrangé2019-01-241-2/+0
| | | | | | | | The lxml package that we download with pip no longer supports either of these versions of python. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>