summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* rpm spec: remove %{extra_release} from specDaniel P. Berrangé2019-01-221-1/+1
| | | | | | | The %{extra_release} field was previously populated by data from the old autobuild.sh file but is no longer used. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Release of libvirt-python 5.0.0v5.0.0Daniel Veillard2019-01-151-1/+1
| | | | | | * setup.py: updated for release Signed-off-by: Daniel Veillard <veillard@redhat.com>
* Release of libvirt-python-4.10.0v4.10.0Daniel Veillard2018-12-031-1/+1
| | | | | | * setup.py: update to bump release number Signed-off-by: Daniel Veillard <veillard@redhat.com>
* Add daemon to list of shutdown reasonsPhilipp Hahn2018-11-261-1/+1
| | | | | | Add the support to work with libvirt commit 66a85cb13. Signed-off-by: Philipp Hahn <hahn@univention.de>
* Fix copy paste error on the version check valueJohn Ferlan2018-11-201-2/+2
| | | | Signed-off-by: John Ferlan <jferlan@redhat.com>
* Implement API binding for virDomainSetIOThreadParamsJohn Ferlan2018-11-203-0/+63
| | | | | | | | Similar to libvirt_virDomainBlockCopy (and migration API's). Create the code for the new API. Signed-off-by: John Ferlan <jferlan@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
* Add check for params, nparams being a dictionaryJohn Ferlan2018-11-201-0/+13
| | | | | | | | If PyDict_Check fails, we should force an error rather than blindly continuing on. Signed-off-by: John Ferlan <jferlan@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
* Add missing virPyDictToTypedParams for libvirt_virDomainBlockCopyJohn Ferlan2018-11-201-0/+1
| | | | | | | | Need to free params like similar API's such as libvirt_virDomainMigrate3 and libvirt_virDomainMigrateToURI3. Signed-off-by: John Ferlan <jferlan@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
* Fix typos in virDomainSetSchedulerParameters nameJohn Ferlan2018-11-201-2/+2
| | | | | Signed-off-by: John Ferlan <jferlan@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
* Release of libvirt-python 4.9.0v4.9.0Daniel Veillard2018-11-041-1/+1
| | | | | | * setup.py: update for new release Signed-off-by: Daniel Veillard <veillard@redhat.com>
* event-test.py: Report ERROR eventsPhilipp Hahn2018-11-011-2/+2
| | | | | | | | VIR_DOMAIN_EVENT_ID_IO_ERROR and VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON callbacks receive the same 'action' parameter, so also translate that numeric action to a descriptive text for the first callback. Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Fix ERROR eventPhilipp Hahn2018-11-011-2/+2
| | | | | | | | | | | | | | | | | | ERROR_EVENTS translates the numeric 'action' argument to a description, not the 'reason' argument which already contains a descriptive string like 'enospc'. > Traceback (most recent call last): > File "/usr/lib/python2.7/dist-packages/libvirt.py", line 4661, in _dispatchDomainEventIOErrorReasonCallback > reason, opaque) > File "libvirt-python/examples/event-test.py", line 536, in myDomainEventIOErrorReasonCallback > dom.name(), dom.ID(), srcpath, devalias, action, ERROR_EVENTS[reason])) > File "libvirt-python/examples/event-test.py", line 474, in __getitem__ > data = self.args[item] > TypeError: tuple indices must be integers, not str Fixes: f5928c6711654f1496707ca77f626b3192843d57 Signed-off-by: Philipp Hahn <hahn@univention.de>
* Release of libvirt-python 4.8.0v4.8.0Daniel Veillard2018-10-011-1/+1
| | | | | | Signed-off-by: Daniel Veillard <veillard@redhat.com> - setup.py : updated for release
* event-test.py: Fix blanksPhilipp Hahn2018-09-241-26/+71
| | | | | | Closer to pep8 Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Convert CONNECTION eventsPhilipp Hahn2018-09-241-4/+5
| | | | | | to use new Description class Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Convert SECRET eventsPhilipp Hahn2018-09-241-8/+8
| | | | | | to use new Description class Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Convert DEVICE eventsPhilipp Hahn2018-09-241-8/+8
| | | | | | to use new Description class Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Convert STORAGE eventsPhilipp Hahn2018-09-241-12/+12
| | | | | | to use new Description class Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Convert NETWORK eventsPhilipp Hahn2018-09-241-19/+10
| | | | | | to use new Description class Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Convert TRAY eventsPhilipp Hahn2018-09-241-1/+4
| | | | | | to use new Description class Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Convert DISK eventsPhilipp Hahn2018-09-241-1/+4
| | | | | | to use new Description class Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Convert GRAPHICS eventsPhilipp Hahn2018-09-241-1/+5
| | | | | | to use new Description class Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Convert AGENT eventsPhilipp Hahn2018-09-241-9/+8
| | | | | | to use new Description class Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Convert ERROR eventsPhilipp Hahn2018-09-241-1/+7
| | | | | | to use new Description class Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Convert WATCHDOG eventsPhilipp Hahn2018-09-241-1/+5
| | | | | | to use new Description class Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Convert BLOCKJOB eventsPhilipp Hahn2018-09-241-11/+14
| | | | | | to use new Description class Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Convert LIVECYCLE eventsPhilipp Hahn2018-09-241-28/+14
| | | | | | to use new Description class Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Add class for event descriptionsPhilipp Hahn2018-09-241-0/+25
| | | | Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Simplify event ID listsPhilipp Hahn2018-09-241-41/+46
| | | | | | | by directly building the list with the IDs instead of appending them explicitly. Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Merge livecycle callbacksPhilipp Hahn2018-09-241-11/+7
| | | | | | | | | | | | | | Registering the same function twice using the old domainEventRegister() interface would not work, as the function reference is used for un-registering. But it is not a problem with the new interface domainEventRegisterAny(), as that returns a unique ID. While at it also demonstrate the 'opaque' mechanism. Signed-off-by: Philipp Hahn <hahn@univention.de> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
* event-test.py: Use __file__Philipp Hahn2018-09-241-1/+1
| | | | | | instead of sys.argv[0] Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Add missing globale statementPhilipp Hahn2018-09-241-0/+1
| | | | | | to fix loop termination on exit. Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Remove dead assignmentPhilipp Hahn2018-09-241-1/+1
| | | | | | variable is unused Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Remove extra parenthesisPhilipp Hahn2018-09-241-1/+1
| | | | Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Handle closed connectionPhilipp Hahn2018-09-241-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If libvirtd terminates while event-test.py has an open connection to it, it will crash with the following traceback: > myConnectionCloseCallback: qemu:///session: Error > Exception in thread libvirtEventLoop: > Traceback (most recent call last): > File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner > self.run() > File "/usr/lib/python2.7/threading.py", line 754, in run > self.__target(*self.__args, **self.__kwargs) > File "examples/event-test.py", line 424, in virEventLoopPollRun > eventLoop.run_loop() > File "examples/event-test.py", line 242, in run_loop > self.run_once() > File "examples/event-test.py", line 187, in run_once > libvirt.virEventInvokeFreeCallback(opaque) > AttributeError: 'module' object has no attribute 'virEventInvokeFreeCallback' > > libvirt: XML-RPC error : internal error: client socket is closed > Traceback (most recent call last): > File "examples/event-test.py", line 872, in <module> > main() > File "examples/event-test.py", line 854, in main > vc.secretEventDeregisterAny(id) > File "/usr/lib/python2.7/dist-packages/libvirt.py", line 4987, in secretEventDeregisterAny > if ret == -1: raise libvirtError ('virConnectSecretEventDeregisterAny() failed', conn=self) > libvirt.libvirtError: internal error: client socket is closed > Closing qemu:///session Skip unregistering the event callbacks and closing the connection if the connection is already broken / closed. Signed-off-by: Philipp Hahn <hahn@univention.de>
* event-test.py: Sync list of domain lifecycle eventsPhilipp Hahn2018-09-241-4/+4
| | | | | | | | | | | | | | | Add new events to prevent crash: > Traceback (most recent call last): > File "/usr/lib/python2.7/dist-packages/libvirt.py", line 4601, in _dispatchDomainEventCallbacks > cb(self, virDomain(self, _obj=dom), event, detail, opaque) > File "libvirt-python/examples/event-test.py", line 505, in myDomainEventCallback1 > domDetailToString(event, detail))) > File "libvirt-python/examples/event-test.py", line 484, in domDetailToString > return domEventStrings[event][detail] > IndexError: tuple index out of range Signed-off-by: Philipp Hahn <hahn@univention.de> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
* Release of libvirt-python=4.7.0v4.7.0Daniel Veillard2018-09-031-1/+1
| | | | | | * setup.py: updated for release Signed-off-by: Daniel Veillard <veillard@redhat.com>
* Release of libvirt-python-4.6.0v4.6.0Daniel Veillard2018-08-061-1/+1
| | | | | | * setup.py: updated for release Signed-off-by: Daniel Veillard <veillard@redhat.com>
* rpm: update min required rhel/fedoraDaniel P. Berrangé2018-07-231-2/+2
| | | | | Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* rpm: add BuildRequires on gccDaniel P. Berrangé2018-07-231-0/+1
| | | | | | | The gcc RPM is no longer part of the default build root. Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* rpm: use the versioned python2 macro namesDaniel P. Berrangé2018-07-231-9/+9
| | | | | | | The use of non-versioned python2 macro names is deprecated in Fedora Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* travis: add libvirt 4.5.0 version to build matrixDaniel P. Berrangé2018-07-161-0/+1
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* fix build with older libvirt missing virNWFilterBindingPtrDaniel P. Berrangé2018-07-161-0/+4
| | | | | | | | | | While we correctly disable all public API bindings that rely on virNWFilterBindingPtr, the generator is still creating a helper function that needs it - libvirt_virNWFilterBinding_pointer. Making this helper conditional is a little hairy, so just provide a trivial typedef to keep it happy. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* spec: Remove Group: and %defattrCole Robinson2018-07-101-5/+0
| | | | | | | | | These are only needed for RHEL5 builds, which are no longer supported https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/CMCUBB4SWS3URHTRRS3OPFM4HF5CGKBW/ https://fedoraproject.org/wiki/RPMGroups Signed-off-by: Cole Robinson <crobinso@redhat.com>
* Release of libvirt-python-4.5.0v4.5.0Daniel Veillard2018-07-021-1/+1
| | | | | | * setup.py: updated for release Signed-off-by: Daniel Veillard <veillard@redhat.com>
* Fix bugs in nwfilter binding APIsDaniel P. Berrangé2018-06-282-2/+5
| | | | | | | We did not correctly mangle the API names in two cases, and we also forgot to specialize the lookup method name in the sanity test. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Add support for nwfilter binding objects / apisDaniel P. Berrangé2018-06-286-3/+122
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* libvirtaio: Fix compat with python 3.7Cole Robinson2018-06-271-4/+7
| | | | | | | | | | | | | | | In python 3.7, async is now a keyword, so this throws a syntax error: File "/usr/lib64/python3.7/site-packages/libvirtaio.py", line 49 from asyncio import async as ensure_future ^ SyntaxError: invalid syntax Switch to getattr trickery to accomplish the same goal Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
* Add support for virNodeGetSEVInfoErik Skultety2018-06-143-0/+42
| | | | | | | | | | This binding allows to query the AMD's SEV firmware for various platform specific things, like a PDH certificate and a certificate chain to establish a trusted connection with the firmware. Because the API uses typed params, it's exempted from generation. Signed-off-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
* Add support for virDomainGetLaunchSecurityInfoErik Skultety2018-06-143-0/+46
| | | | | | | | | Libvirt recently introduced support for getting launch security parameters, most notably AMD SEV VM memory measurement. This API can't be generated as it's using typed parameters which we need to allocate. Signed-off-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>