summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Post-release version bump to 7.9.0Jiri Denemark2021-10-011-1/+1
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* sanitytest: Add virNetworkCreateXMLFlags() to list of name fixupsv7.8.0Michal Privoznik2021-09-241-1/+2
| | | | | | | | | | | | | | When checking whether each C API is exported to Python and vice versa the sanitytest script is doing some name fixing. For instance virNetworkCreateXML() is translated into virConnect.networkCreateXML(). However, we have new C API on the way: virNetworkCreateXMLFlags() which is not on the list for these name fixups. Add it there. Mind you, the python code generator works just fine because generator.py:1082 compares just the prefix. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
* Don't mention email patch submission in READMEJonathon Jongsma2021-09-211-13/+2
| | | | | | | | Since patches are now submitted via gitlab merge requests, don't mention mailing list patch submission in the README. Point to the CONTRIBUTING file instead. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
* Update readme to mention pytest instead of noseJonathon Jongsma2021-09-211-1/+1
| | | | | | | Commit a376a2ab switch from python-nose to python-pytest for tests, but the README was not updated. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
* Add new autostart API for node devicesJonathon Jongsma2021-09-213-0/+35
| | | | | | | Provide a manual override for the virNodeDeviceGetAutostart() API modeled on what's done for the network and storage APIs. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
* ci: remove obsolete refresh script and documentationDaniel P. Berrangé2021-09-022-41/+0
| | | | | | We now use lcitool's manifest feature to generate files. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* ci: re-generate containers/gitlab config from manifestDaniel P. Berrangé2021-09-0213-210/+271
| | | | | | | This uses the command "lcitool manifest ci/manifest.yml" to re-generate all existing dockerfiles and gitlab CI config. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* ci: define a CI manifest fileDaniel P. Berrangé2021-09-021-0/+54
| | | | | | | This is to be used with the command "lcitool manifest ci/manifest.yml" to re-generate all existing dockerfiles and gitlab CI config. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* rpm: drop support for RHEL-7Daniel P. Berrangé2021-09-011-15/+2
| | | | | | We no longer support libvirt on this distro Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Post-release version bump to 7.8.0Jiri Denemark2021-09-011-1/+1
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* Post-release version bump to 7.7.0v7.7.0Jiri Denemark2021-08-021-1/+1
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* gitlab: use custom docker:dind imagev7.6.0Daniel P. Berrangé2021-07-271-1/+2
| | | | | | | | | | | The current docker:dind container has broken default seccomp filter that results in clone3 being blocked, which in turn breaks Fedora 35 rawhide. This custom image has a workaround that causes the seccomp filter to return ENOSYS for clone3 instad of EPERM, thus triggering glibc to fallback to clone correctly. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Post-release version bump to 7.6.0Jiri Denemark2021-07-011-1/+1
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* Fix BlockThreshold Callback argument conversion once morev7.5.0Peter Krempa2021-06-251-1/+1
| | | | | | | | | | | The conversion was changed from "OssiiO" to "OssLLO". Unfortunately the arguments are unsigned long long, where the proper coversion character is 'K'. Fixes: https://gitlab.com/libvirt/libvirt-python/-/merge_requests/40 Fixes: fd069ac85c8cf1593587dc9287a3d5eb6bd4bdb9 Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1976109 Signed-off-by: Peter Krempa <pkrempa@redhat.com>
* Post-release version bump to 7.5.0Jiri Denemark2021-06-011-1/+1
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* iothread: fix memory access out of boundsv7.4.0w005067502021-05-271-4/+8
| | | | | | | | | When the 'pcpu' is larger then the last 'iothr->cpumap' bits, set the list element to False to avoid out of bounds access 'iothr->cpumap'. Signed-off-by: suruifeng <suruifeng@huawei.com> Reviewed-by: Hogan Wang <hogan.wang@huawei.com>
* Post-release version bump to 7.4.0Jiri Denemark2021-05-271-1/+1
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* containers: refresh containers with latest libvirt-ciDaniel P. Berrangé2021-05-259-15/+13
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* gitlab: don't set RPM variable on container jobDaniel P. Berrangé2021-05-251-1/+0
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* gitlab: add OpenSUSE Tumbleweed container and buildDaniel P. Berrangé2021-05-252-0/+45
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* gitlab: introduce Fedora 34 container and buildDaniel P. Berrangé2021-05-252-0/+55
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* gitlab: rename opensuse-152 to opensuse-leap-152Daniel P. Berrangé2021-05-252-5/+5
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* gitlab: rename centos-stream to centos-stream-8Daniel P. Berrangé2021-05-252-5/+5
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* gitlab: drop Fedora 32 container and buildDaniel P. Berrangé2021-05-252-55/+0
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* gitlab: drop centos-7 container and buildDaniel P. Berrangé2021-05-252-47/+0
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* generator.py: Untangle virNodeDevice name fixupv7.3.0Michal Privoznik2021-04-151-8/+9
| | | | | | | | | The way that virNodeDevice method name fixup is written makes it hard to find via grep (matching the virNodeDevice prefix and then matching only the operation like "Get", "Lookup", ...). Expand the string matching to match the pattern of other cases. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
* generator.py: Fix method names for new virNodeDevice*() APIsMichal Privoznik2021-04-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In the 7.3.0 release we are going to have three new public APIs: virNodeDeviceDefineXML() virNodeDeviceUndefine() virNodeDeviceCreate() The first one is slightly problematic, because it takes virConnectPtr argument and thus our generator wants to put its wrapper under virConnect python class, which is correct, but what's incorrect is the name it chooses for the method: defineXML(). Such method already exists and wraps virDomainDefineXML() around. Also, the name is rather confusing anyway - it's missing the 'nodeDevice' prefix. Fortunately, the fix is easy - add another case into nameFixup(). The story with virNodeDeviceCreate() is similar. Except, this time the class in which the method was put is correct. But the name is still wrong, because our generator matched 'virNodeDeviceCreate' thinking it's the good old virNodeDeviceCreateXML() API and "fixed" the name of the method to nodeDeviceCreate(). Luckily, virNodeDeviceUndefine() is just fine. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
* spec: use pytest instead of noseJán Tomko2021-04-121-2/+2
| | | | Signed-off-by: Ján Tomko <jtomko@redhat.com>
* rpm: use HTTPS for URLsDaniel P. Berrangé2021-04-121-2/+2
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Don't run sanity checks by defaultDaniel P. Berrangé2021-04-092-9/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The sanity check scripts verify that the binding covers all APIs in the libvirt library/headers being built against. This is primarily there for libvirt maintainers to identify when there are gaps in API coverage. This is not something downstream consumers of libvirt-python should be running themselves, so we shouldn't added it to tests by default. In addition if people are working on branches or submitting merge requests for python changes, we shouldn't block their work for failed API coverage sanity tests, if the python binding otherwise builds fine and passes regular unit tests. Thus, we introduce a new gitlab job "api-coverage" with some conditions: - If pushing to a branch, the job is treated as non-fatal - For regular scheduled builds, it is mandatory - Don't run in any other scenarios This job uses the artifacts from the centos-8-git-build job and re-runs the test suite, requesting the sanity tests to be run too. This will achieve the result of letting us see missing API coverage in nightly builds, without blocking other contributions. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* tests: use assertEqual instead of assertEqualsJán Tomko2021-04-072-4/+4
| | | | | | tests/test_conn.py:17: DeprecationWarning: Please use assertEqual instead. Signed-off-by: Ján Tomko <jtomko@redhat.com>
* ci: refresh containers for nose->pytest switchJán Tomko2021-04-0711-34/+35
| | | | | | Matches libvirt-ci commit facd5d855c97bf5b127ff9bf245c8fdf514dd916 Signed-off-by: Ján Tomko <jtomko@redhat.com>
* setup: use pytest instead of nose to run the test suiteJán Tomko2021-04-072-10/+10
| | | | | | | | | | | | The software we use for running tests - nose - has been deprecated in favor of nose2. We don't use anything nose-specific, just unittest.TestCase, which pytest can handle just fine. Switch to using pytest, which we already use for libvirt-dbus. Signed-off-by: Ján Tomko <jtomko@redhat.com>
* setup: drop have_libvirtaioJán Tomko2021-04-071-10/+2
| | | | | | | This function says we have libvirtaio on Python >= 3.3, however we already mandate Python >= 3.5 at the start of the file. Signed-off-by: Ján Tomko <jtomko@redhat.com>
* ci: Move dco job to sanity_checks stageAndrea Bolognani2021-04-071-2/+3
| | | | | | | | If the DCO check fails we still want the pipeline to fail, but that doesn't mean there's no value in running the other jobs to get a better picture. Signed-off-by: Andrea Bolognani <abologna@redhat.com>
* ci: Use 'extends' GitLab CI featureAndrea Bolognani2021-04-071-26/+26
| | | | | | | This is the recommended way to use templates in job definitions. Signed-off-by: Andrea Bolognani <abologna@redhat.com>
* ci: drop openSUSE leap 15.1 in favor of 15.2Ján Tomko2021-04-062-9/+10
| | | | Signed-off-by: Ján Tomko <jtomko@redhat.com>
* ci: refresh dockerfilesJán Tomko2021-04-0610-17/+28
| | | | | | Refresh to match libvirt-ci commit 94c25bde639eb31ff2071fb6abfd3d5c777f4ab2 Signed-off-by: Ján Tomko <jtomko@redhat.com>
* Post-release version bump to 7.3.0Jiri Denemark2021-04-011-1/+1
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* Post-release version bump to 7.2.0v7.2.0Jiri Denemark2021-03-011-1/+1
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* Fix wrong type for BlockThreshold Callbackv7.1.0renlei42021-03-011-1/+1
| | | | | | | | | | type of threshold and excess are unsigned long long, but PyObject_CallMethod incorrectly set it to int. if threshold or excess greater than 0x7FFFFFFF(max int), those variables will overflow. Signed-off-by: Ren Lei <ren.lei4@zte.com.cn>
* Add impl override for virDomainGetMessagesDaniel P. Berrangé2021-02-153-0/+53
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* improving readme with requirementsBeraldo Leal2021-02-091-2/+11
| | | | | | | | When installing this library in a fresh system, some basic packages are necessary to compile and run. This patch will add basic instructions with some requirements to help new contributors and users. Signed-off-by: Beraldo Leal <bleal@redhat.com>
* Post-release version bump to 7.1.0Jiri Denemark2021-01-151-1/+1
| | | | Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
* ci: refresh containers for CentOS-8 PowerTools repo renamev7.0.0Daniel P. Berrangé2020-12-1511-69/+140
| | | | | | | | | | | A recent CentOS-8 update renamed the "PowerTools" repo to "powertools" and since dnf is case sensitive wrt repo names, this broke ability to build new containers. The refresh fixes the repo name and pulls in other misc improvements to containers. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* Avoid signed/unsigned warnings in loop over SSH keysDaniel P. Berrangé2020-12-031-2/+2
| | | | | | | | | libvirt-override.c: In function ‘libvirt_virDomainAuthorizedSSHKeysGet’: libvirt-override.c:10455:19: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 10455 | for (i = 0; i < nkeys; i++) | ^ Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* gitlab: replace "libvirt-" prefix with "ci-" in dockerfilesDaniel P. Berrangé2020-12-0113-4/+4
| | | | | | This makes the dockerfile name match the output container name Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* gitlab: refresh containers with lcitool for fully minimized baseDaniel P. Berrangé2020-12-0111-140/+4
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* gitlab: re-generate container images from lcitoolDaniel P. Berrangé2020-12-0112-227/+34
| | | | | | This introduces Fedora 33 and removes some redundant packages. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* gitlab: move dockerfiles into ci/containers sub-directoryDaniel P. Berrangé2020-12-0114-1/+1
| | | | | | This brings the repo into alignment with the main libvirt.git practice. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>