summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for domain metadata change eventDaniel P. Berrange2017-01-092-0/+66
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Add support for secret event APIsDaniel P. Berrange2017-01-094-0/+251
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Add override impl for virStorageVolGetInfoFlagsDaniel P. Berrange2016-12-213-0/+50
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Remove bogus \o escape in regexDaniel P. Berrange2016-12-211-1/+1
| | | | | | | | One of the regexes has a bogus \o instead of plain 'o'. Somehow this magically worked on all versions of python, until 3.6 came along and complained Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Fix running of nosetests on python 3Daniel P. Berrange2016-12-141-1/+16
| | | | | | | | | | Previously the way Fedora installed /usr/bin/nosetests allowed it to be invoked with either python 2 or 3. Since Fedora 25 though, it contains a module name that only exists on python 2. So we need to be more intelligent and pick a different nosetests binary per version. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* HACKING: fix grammarPrabodh Agarwal2016-12-131-1/+1
|
* Fill out more fields for PKG-INFO fileDaniel P. Berrange2016-12-051-1/+7
| | | | | | | Ensure the description and license are set in PKG-INFO, and clarify the summary field. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* don't overrun buffer when converting cpumapv2.5.0Konstantin Neumoin2016-11-111-6/+1
| | | | | | | | | | | If we pass large(more than cpunum) cpu mask to any libvirt_virDomainPin* function, it could leads to crash. So we have to check tuple size in virPyCpumapConvert and ignore extra tuple members. Since we allocate a zeroed buffer, we don't need to bother with setting the bits to zero. Signed-off-by: Konstantin Neumoin <kneumoin@virtuozzo.com>
* move cpumap conversion code to a common helperKonstantin Neumoin2016-11-113-120/+73
| | | | | | | | All libvirt_virDomainPin* functions do the same thing for convert pycpumap to cpumap, so this patch moves all common logic to new helper - virPyCpumapConvert. Signed-off-by: Konstantin Neumoin <kneumoin@virtuozzo.com>
* Post-release version bump to 2.5.0Pavel Hrdina2016-11-021-1/+1
| | | | Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* Release of libvirt-2.4.0v2.4.0Daniel Veillard2016-11-011-1/+1
| | | | * setup.py: just bumped up the release number
* override: Properly override wrapper for virDomainGetGuestVcpusv2.3.0Peter Krempa2016-09-191-0/+6
| | | | | | | | | | | | | | | | | | Without the change to libvirt-override-api.xml generator.py would generate the following function header: def guestVcpus(self, params, nparams, flags=0): Since @params and @nparams are output-only in C and the python C implementation actualy creates a dict from them we should not need to pass them. Add the API definition to drop the two unnecessary args: def guestVcpus(self, flags=0): The code did not work at all until this change as the C impl expects only two arguments but the python required use of four. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1377071
* Post-release version bump to 2.3.0Peter Krempa2016-09-191-1/+1
|
* PyArg_ParseTuple: Provide correct function namesv2.2.0Michal Privoznik2016-08-242-13/+14
| | | | | | | | | | At the end of the format string we put :virFunctionName where ':' says "this is the end of argument list", and virFunctionName is the prefix for error messages then. However, in some cases we have had wrong names there. Some of them are actually quite funny: xmlRegisterErrorHandler. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
* event-test: support node device update callbackJovanka Gulicoska2016-08-171-0/+4
|
* Add support for node device update callbackJovanka Gulicoska2016-08-172-0/+64
|
* event-test: Add node device lifecycle event testsJovanka Gulicoska2016-08-021-0/+16
|
* Python binding for node poll lifecycle events APIJovanka Gulicoska2016-08-024-0/+193
|
* Post-release version bump to 2.2.0Cole Robinson2016-08-021-1/+1
|
* allow pkg-config binary to be set by envv2.1.0Markus Rothe2016-07-281-0/+2
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1350523
* Post-release version bump to 2.1.0Pavel Hrdina2016-07-251-1/+1
| | | | Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* Fix crash in storage pool refresh callbackPavel Hrdina2016-07-232-2/+2
| | | | | | | | Fixes copy-paste typo introduced by commit cb84e36c. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1354271 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* Add support for storage pool refesh callbackv2.0.0Daniel P. Berrange2016-06-243-2/+70
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Fix signedness of arg to virDomainGetGuestVcpusDaniel P. Berrange2016-06-241-1/+1
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Add support for virDomainGetGuestVcpusMichal Privoznik2016-06-232-0/+34
| | | | | | | | This function has virTypedParameterPtr as one of the args and our generator is unable to deal with that. Therefore we must provide implementation. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
* event-test: Add storage pool lifecycle event testsJovanka Gulicoska2016-06-161-0/+18
|
* Python binding for storage pool lifecycle events APIJovanka Gulicoska2016-06-164-0/+193
| | | | Code matches the network event API implementation
* Post-release version bump to 2.0.0Daniel P. Berrange2016-06-141-1/+1
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Release of libvirt-python-1.3.5v1.3.5Daniel Veillard2016-06-051-1/+1
| | | | * setup.py: bumped to 1.3.5, the release is virtually identical to 1.3.4
* generator.py: Consider symbols from libvirt-commonv1.3.4Peter Krempa2016-04-211-0/+1
| | | | | Some of the libvirt public API was moved into the libvirt-common.h file. We should consider it while building python too.
* spec: Don't pull in dependencies for example scriptsCole Robinson2016-04-201-0/+5
| | | | | If the scripts are marked as executable, RPM magic will scan them for dependencies, which can pull in python2 for the python3 package
* fix crash in getAllDomainStatsPavel Hrdina2016-04-181-1/+7
| | | | | | | | | | | Commits 1d39dbaf and 827ed9b4 broke the libvirt-python API by removing virDomainRef() and virDomainFree(). virDomainStatsRecordListFree() will free that domain pointer and later when virDomain (python object) call its destructor and tries to free that same pointer again. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1326839 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* event: Add support VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILEDPeter Krempa2016-04-183-0/+73
|
* Post-release version bump to 1.3.4Peter Krempa2016-04-181-1/+1
|
* Release of libvirt-python-1.3.3v1.3.3Daniel Veillard2016-04-061-1/+1
|
* python: add python binding for Perf APIQiaowei Ren2016-03-313-0/+115
| | | | | | | | This patch adds the python binding for virDomainSetPerfEvents and virDomainSetPerfEvents API. Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
* Add support for JOB_COMPLETED eventJiri Denemark2016-03-083-0/+76
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* libvirt-override: fix PyArg_ParseTuple for size_tv1.3.2Pavel Hrdina2016-02-231-2/+2
| | | | | | | Format string uses 'n' for Py_ssize_t but size_t is unsigned long, we need to use 'k'. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* libvirt-override: fix PyArg_ParseTuple for unsigned long longPavel Hrdina2016-02-231-2/+2
| | | | | | | | | Format string uses 'L' for long long type and 'K' for unsigned long long type. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1260356 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* libvirt-override: fix PyArg_ParseTuple for unsigned intPavel Hrdina2016-02-231-6/+6
| | | | | | Format string uses 'i' for int type and 'I' for unsigned int type. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* libvirt-override: all flags should be defined as unsigned intPavel Hrdina2016-02-231-1/+1
| | | | Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* Add support for MIGRATION_ITERATION eventJiri Denemark2016-01-183-0/+70
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* setup: Use cflags and ldflags properlyJiri Denemark2016-01-181-14/+8
| | | | | | | | | The setup.py script reads cflags and ldflags from pkg-config and uses them when compiling/linking C modules. Since both cflags and ldflags may include multiple compiler arguments we need to split them rather than concatenating them into a single argument. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* Post-release version bump to 1.3.2Jiri Denemark2016-01-181-1/+1
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* Version bump to 1.3.1v1.3.1Daniel Veillard2016-01-171-1/+1
| | | | For release but no change from 1.3.0
* Post-release version bump to 1.3.0v1.3.0Pavel Hrdina2015-11-241-1/+1
| | | | Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* fix crash introduced by commit 1d39dbafv1.2.21Pavel Hrdina2015-10-311-2/+7
| | | | | | | | | | Some of the libvirt_*Wrap functions steals the reference and we need to set the item in array to NULL no not free it on success. Those three places was accidentally removed by commit 1d39dbaf. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1270977 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* Post-release version bump to 1.2.21Martin Kletzander2015-10-151-1/+1
| | | | Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
* use VIR_PY_DICT_SET_GOTOPavel Hrdina2015-10-052-193/+104
| | | | Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* use VYR_PY_LIST_SET_GOTO and VIR_PY_LIST_APPEND_GOTOPavel Hrdina2015-10-052-283/+343
| | | | Signed-off-by: Pavel Hrdina <phrdina@redhat.com>