Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-libvirt-python for 
openSUSE:Factory checked in at 2023-01-25 17:42:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libvirt-python (Old)
 and      /work/SRC/openSUSE:Factory/.python-libvirt-python.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-libvirt-python"

Wed Jan 25 17:42:23 2023 rev:64 rq:1060521 version:9.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-libvirt-python/python-libvirt-python.changes  
    2022-12-07 17:34:45.856473183 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-libvirt-python.new.32243/python-libvirt-python.changes
   2023-01-25 17:55:22.451970336 +0100
@@ -1,0 +2,7 @@
+Tue Jan 17 18:57:53 UTC 2023 - James Fehlig <jfeh...@suse.com>
+
+- Update to 9.0.0
+  - Add all new APIs and constants in libvirt 9.0.0
+  - jsc#PED-620
+
+-------------------------------------------------------------------

Old:
----
  libvirt-python-8.10.0.tar.gz

New:
----
  libvirt-python-9.0.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-libvirt-python.spec ++++++
--- /var/tmp/diff_new_pack.2ttHn1/_old  2023-01-25 17:55:22.939972941 +0100
+++ /var/tmp/diff_new_pack.2ttHn1/_new  2023-01-25 17:55:22.947972984 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-libvirt-python
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,7 +23,7 @@
 %define srcname libvirt-python
 Name:           python-libvirt-python
 URL:            https://libvirt.org/
-Version:        8.10.0
+Version:        9.0.0
 Release:        0
 Summary:        Library providing a virtualization API
 License:        LGPL-2.1-or-later

++++++ _service ++++++
--- /var/tmp/diff_new_pack.2ttHn1/_old  2023-01-25 17:55:22.983973176 +0100
+++ /var/tmp/diff_new_pack.2ttHn1/_new  2023-01-25 17:55:22.983973176 +0100
@@ -1,7 +1,7 @@
 <services>
   <service name="tar_scm" mode="disabled">
     <param name="filename">libvirt-python</param>
-    <param name="revision">v8.10.0</param>
+    <param name="revision">v9.0.0</param>
     <param name="scm">git</param>
     <param name="submodules">disable</param>
     <param name="url">https://gitlab.com/libvirt/libvirt-python.git</param>

++++++ libvirt-python-8.10.0.tar.gz -> libvirt-python-9.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-8.10.0/.gitignore 
new/libvirt-python-9.0.0/.gitignore
--- old/libvirt-python-8.10.0/.gitignore        2022-11-23 13:24:29.000000000 
+0100
+++ new/libvirt-python-9.0.0/.gitignore 2023-01-12 13:52:25.000000000 +0100
@@ -4,6 +4,12 @@
 *~
 *#*#
 *.#*#
-*.pyc
+*.py[cod]
 tags
 .tox
+dist/
+eggs/
+.eggs/
+sdist/
+*.egg-info/
+*.egg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-8.10.0/ci/buildenv/fedora-35.sh 
new/libvirt-python-9.0.0/ci/buildenv/fedora-35.sh
--- old/libvirt-python-8.10.0/ci/buildenv/fedora-35.sh  2022-11-23 
13:24:29.000000000 +0100
+++ new/libvirt-python-9.0.0/ci/buildenv/fedora-35.sh   1970-01-01 
01:00:00.000000000 +0100
@@ -1,32 +0,0 @@
-# THIS FILE WAS AUTO-GENERATED
-#
-#  $ lcitool manifest ci/manifest.yml
-#
-# https://gitlab.com/libvirt/libvirt-ci
-
-function install_buildenv() {
-    dnf update -y
-    dnf install -y \
-        ca-certificates \
-        ccache \
-        gcc \
-        git \
-        glibc-langpack-en \
-        libvirt-devel \
-        pkgconfig \
-        python3 \
-        python3-devel \
-        python3-lxml \
-        python3-pip \
-        python3-pytest \
-        python3-setuptools \
-        rpm-build
-    rpm -qa | sort > /packages.txt
-    mkdir -p /usr/libexec/ccache-wrappers
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
-}
-
-export CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
-export LANG="en_US.UTF-8"
-export PYTHON="/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-8.10.0/ci/buildenv/fedora-37.sh 
new/libvirt-python-9.0.0/ci/buildenv/fedora-37.sh
--- old/libvirt-python-8.10.0/ci/buildenv/fedora-37.sh  1970-01-01 
01:00:00.000000000 +0100
+++ new/libvirt-python-9.0.0/ci/buildenv/fedora-37.sh   2023-01-12 
13:52:25.000000000 +0100
@@ -0,0 +1,32 @@
+# THIS FILE WAS AUTO-GENERATED
+#
+#  $ lcitool manifest ci/manifest.yml
+#
+# https://gitlab.com/libvirt/libvirt-ci
+
+function install_buildenv() {
+    dnf update -y
+    dnf install -y \
+        ca-certificates \
+        ccache \
+        gcc \
+        git \
+        glibc-langpack-en \
+        libvirt-devel \
+        pkgconfig \
+        python3 \
+        python3-devel \
+        python3-lxml \
+        python3-pip \
+        python3-pytest \
+        python3-setuptools \
+        rpm-build
+    rpm -qa | sort > /packages.txt
+    mkdir -p /usr/libexec/ccache-wrappers
+    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
+    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
+}
+
+export CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
+export LANG="en_US.UTF-8"
+export PYTHON="/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libvirt-python-8.10.0/ci/containers/fedora-35.Dockerfile 
new/libvirt-python-9.0.0/ci/containers/fedora-35.Dockerfile
--- old/libvirt-python-8.10.0/ci/containers/fedora-35.Dockerfile        
2022-11-23 13:24:29.000000000 +0100
+++ new/libvirt-python-9.0.0/ci/containers/fedora-35.Dockerfile 1970-01-01 
01:00:00.000000000 +0100
@@ -1,44 +0,0 @@
-# THIS FILE WAS AUTO-GENERATED
-#
-#  $ lcitool manifest ci/manifest.yml
-#
-# https://gitlab.com/libvirt/libvirt-ci
-
-FROM registry.fedoraproject.org/fedora:35
-
-RUN dnf install -y nosync && \
-    echo -e '#!/bin/sh\n\
-if test -d /usr/lib64\n\
-then\n\
-    export LD_PRELOAD=/usr/lib64/nosync/nosync.so\n\
-else\n\
-    export LD_PRELOAD=/usr/lib/nosync/nosync.so\n\
-fi\n\
-exec "$@"' > /usr/bin/nosync && \
-    chmod +x /usr/bin/nosync && \
-    nosync dnf update -y && \
-    nosync dnf install -y \
-               ca-certificates \
-               ccache \
-               gcc \
-               git \
-               glibc-langpack-en \
-               libvirt-devel \
-               pkgconfig \
-               python3 \
-               python3-devel \
-               python3-lxml \
-               python3-pip \
-               python3-pytest \
-               python3-setuptools \
-               rpm-build && \
-    nosync dnf autoremove -y && \
-    nosync dnf clean all -y && \
-    rpm -qa | sort > /packages.txt && \
-    mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
-
-ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
-ENV LANG "en_US.UTF-8"
-ENV PYTHON "/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libvirt-python-8.10.0/ci/containers/fedora-37.Dockerfile 
new/libvirt-python-9.0.0/ci/containers/fedora-37.Dockerfile
--- old/libvirt-python-8.10.0/ci/containers/fedora-37.Dockerfile        
1970-01-01 01:00:00.000000000 +0100
+++ new/libvirt-python-9.0.0/ci/containers/fedora-37.Dockerfile 2023-01-12 
13:52:25.000000000 +0100
@@ -0,0 +1,44 @@
+# THIS FILE WAS AUTO-GENERATED
+#
+#  $ lcitool manifest ci/manifest.yml
+#
+# https://gitlab.com/libvirt/libvirt-ci
+
+FROM registry.fedoraproject.org/fedora:37
+
+RUN dnf install -y nosync && \
+    echo -e '#!/bin/sh\n\
+if test -d /usr/lib64\n\
+then\n\
+    export LD_PRELOAD=/usr/lib64/nosync/nosync.so\n\
+else\n\
+    export LD_PRELOAD=/usr/lib/nosync/nosync.so\n\
+fi\n\
+exec "$@"' > /usr/bin/nosync && \
+    chmod +x /usr/bin/nosync && \
+    nosync dnf update -y && \
+    nosync dnf install -y \
+               ca-certificates \
+               ccache \
+               gcc \
+               git \
+               glibc-langpack-en \
+               libvirt-devel \
+               pkgconfig \
+               python3 \
+               python3-devel \
+               python3-lxml \
+               python3-pip \
+               python3-pytest \
+               python3-setuptools \
+               rpm-build && \
+    nosync dnf autoremove -y && \
+    nosync dnf clean all -y && \
+    rpm -qa | sort > /packages.txt && \
+    mkdir -p /usr/libexec/ccache-wrappers && \
+    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
+    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
+
+ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
+ENV LANG "en_US.UTF-8"
+ENV PYTHON "/usr/bin/python3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-8.10.0/ci/gitlab/build-templates.yml 
new/libvirt-python-9.0.0/ci/gitlab/build-templates.yml
--- old/libvirt-python-8.10.0/ci/gitlab/build-templates.yml     2022-11-23 
13:24:29.000000000 +0100
+++ new/libvirt-python-9.0.0/ci/gitlab/build-templates.yml      2023-01-12 
13:52:25.000000000 +0100
@@ -9,14 +9,14 @@
 # We use pre-built containers for any pipelines that are:
 #
 #  - Validating code committed on default upstream branch
-#  - Validating patches targetting default upstream branch
+#  - Validating patches targeting default upstream branch
 #    which do not have CI changes
 #
 # We use a local build env for any pipelines that are:
 #
 #  - Validating code committed to a non-default upstream branch
-#  - Validating patches targetting a non-default upstream branch
-#  - Validating patches targetting default upstream branch which
+#  - Validating patches targeting a non-default upstream branch
+#  - Validating patches targeting default upstream branch which
 #    include CI changes
 #  - Validating code committed to a fork branch
 #
@@ -26,6 +26,7 @@
 .gitlab_native_build_job_prebuilt_env:
   image: $CI_REGISTRY/$RUN_UPSTREAM_NAMESPACE/libvirt-python/ci-$NAME:latest
   stage: builds
+  interruptible: true
   before_script:
     - cat /packages.txt
   rules:
@@ -36,14 +37,14 @@
     - if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && 
$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
       when: on_success
 
-    # upstream: other web/api/scheduled pipelines targetting the default branch
+    # upstream: other web/api/scheduled pipelines targeting the default branch
     - if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && 
$CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME == 
$CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
       when: manual
       allow_failure: true
     - if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && 
$CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME == 
$CI_DEFAULT_BRANCH'
       when: on_success
 
-    # upstream+forks: merge requests targetting the default branch, without CI 
changes
+    # upstream+forks: merge requests targeting the default branch, without CI 
changes
     - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && 
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
       changes:
         - ci/gitlab/container-templates.yml
@@ -61,6 +62,7 @@
 .gitlab_native_build_job_local_env:
   image: $IMAGE
   stage: builds
+  interruptible: true
   before_script:
     - source ci/buildenv/$NAME.sh
     - install_buildenv
@@ -79,7 +81,7 @@
     - if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && 
$CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE'
       when: on_success
 
-    # upstream: other web/api/scheduled pipelines targetting non-default 
branches
+    # upstream: other web/api/scheduled pipelines targeting non-default 
branches
     - if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && 
$CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME != 
$CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
       when: manual
       allow_failure: true
@@ -93,7 +95,7 @@
     - if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && 
$CI_PIPELINE_SOURCE =~ /(web|api|schedule)/'
       when: on_success
 
-    # upstream+forks: merge requests targetting the default branch, with CI 
changes
+    # upstream+forks: merge requests targeting the default branch, with CI 
changes
     - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && 
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
       changes:
         - ci/gitlab/container-templates.yml
@@ -106,7 +108,7 @@
         - ci/containers/$NAME.Dockerfile
       when: on_success
 
-    # upstream+forks: merge requests targetting non-default branches
+    # upstream+forks: merge requests targeting non-default branches
     - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && 
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
       when: manual
       allow_failure: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-8.10.0/ci/gitlab/builds.yml 
new/libvirt-python-9.0.0/ci/gitlab/builds.yml
--- old/libvirt-python-8.10.0/ci/gitlab/builds.yml      2022-11-23 
13:24:29.000000000 +0100
+++ new/libvirt-python-9.0.0/ci/gitlab/builds.yml       2023-01-12 
13:52:25.000000000 +0100
@@ -123,52 +123,52 @@
     NAME: debian-sid
 
 
-x86_64-fedora-35-prebuilt-env:
+x86_64-fedora-36-prebuilt-env:
   extends: .native_build_job_prebuilt_env
   needs:
-    - job: x86_64-fedora-35-container
+    - job: x86_64-fedora-36-container
       optional: true
   allow_failure: false
   variables:
-    NAME: fedora-35
+    NAME: fedora-36
   artifacts:
     expire_in: 1 hour
     paths:
       - libvirt-python-rpms
 
-x86_64-fedora-35-local-env:
+x86_64-fedora-36-local-env:
   extends: .native_build_job_local_env
   needs: []
   allow_failure: false
   variables:
-    IMAGE: registry.fedoraproject.org/fedora:35
-    NAME: fedora-35
+    IMAGE: registry.fedoraproject.org/fedora:36
+    NAME: fedora-36
   artifacts:
     expire_in: 1 hour
     paths:
       - libvirt-python-rpms
 
 
-x86_64-fedora-36-prebuilt-env:
+x86_64-fedora-37-prebuilt-env:
   extends: .native_build_job_prebuilt_env
   needs:
-    - job: x86_64-fedora-36-container
+    - job: x86_64-fedora-37-container
       optional: true
   allow_failure: false
   variables:
-    NAME: fedora-36
+    NAME: fedora-37
   artifacts:
     expire_in: 1 hour
     paths:
       - libvirt-python-rpms
 
-x86_64-fedora-36-local-env:
+x86_64-fedora-37-local-env:
   extends: .native_build_job_local_env
   needs: []
   allow_failure: false
   variables:
-    IMAGE: registry.fedoraproject.org/fedora:36
-    NAME: fedora-36
+    IMAGE: registry.fedoraproject.org/fedora:37
+    NAME: fedora-37
   artifacts:
     expire_in: 1 hour
     paths:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libvirt-python-8.10.0/ci/gitlab/container-templates.yml 
new/libvirt-python-9.0.0/ci/gitlab/container-templates.yml
--- old/libvirt-python-8.10.0/ci/gitlab/container-templates.yml 2022-11-23 
13:24:29.000000000 +0100
+++ new/libvirt-python-9.0.0/ci/gitlab/container-templates.yml  2023-01-12 
13:52:25.000000000 +0100
@@ -16,6 +16,7 @@
 .container_job:
   image: docker:stable
   stage: containers
+  interruptible: false
   needs: []
   services:
     - docker:dind
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-8.10.0/ci/gitlab/containers.yml 
new/libvirt-python-9.0.0/ci/gitlab/containers.yml
--- old/libvirt-python-8.10.0/ci/gitlab/containers.yml  2022-11-23 
13:24:29.000000000 +0100
+++ new/libvirt-python-9.0.0/ci/gitlab/containers.yml   2023-01-12 
13:52:25.000000000 +0100
@@ -35,18 +35,18 @@
     NAME: debian-sid
 
 
-x86_64-fedora-35-container:
+x86_64-fedora-36-container:
   extends: .container_job
   allow_failure: false
   variables:
-    NAME: fedora-35
+    NAME: fedora-36
 
 
-x86_64-fedora-36-container:
+x86_64-fedora-37-container:
   extends: .container_job
   allow_failure: false
   variables:
-    NAME: fedora-36
+    NAME: fedora-37
 
 
 x86_64-fedora-rawhide-container:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-8.10.0/ci/gitlab/sanity-checks.yml 
new/libvirt-python-9.0.0/ci/gitlab/sanity-checks.yml
--- old/libvirt-python-8.10.0/ci/gitlab/sanity-checks.yml       2022-11-23 
13:24:29.000000000 +0100
+++ new/libvirt-python-9.0.0/ci/gitlab/sanity-checks.yml        2023-01-12 
13:52:25.000000000 +0100
@@ -9,6 +9,7 @@
   stage: sanity_checks
   needs: []
   image: registry.gitlab.com/libvirt/libvirt-ci/check-dco:master
+  interruptible: true
   script:
     - /check-dco "$RUN_UPSTREAM_NAMESPACE"
   rules:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-8.10.0/ci/gitlab.yml 
new/libvirt-python-9.0.0/ci/gitlab.yml
--- old/libvirt-python-8.10.0/ci/gitlab.yml     2022-11-23 13:24:29.000000000 
+0100
+++ new/libvirt-python-9.0.0/ci/gitlab.yml      2023-01-12 13:52:25.000000000 
+0100
@@ -67,6 +67,7 @@
 debug:
   image: docker.io/library/alpine:3
   stage: sanity_checks
+  interruptible: true
   needs: []
   script:
     - printenv | sort
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-8.10.0/ci/manifest.yml 
new/libvirt-python-9.0.0/ci/manifest.yml
--- old/libvirt-python-8.10.0/ci/manifest.yml   2022-11-23 13:24:29.000000000 
+0100
+++ new/libvirt-python-9.0.0/ci/manifest.yml    2023-01-12 13:52:25.000000000 
+0100
@@ -16,24 +16,47 @@
 
     jobs:
       - arch: x86_64
+        artifacts:
+          expire_in: 1 hour
+          paths:
+            - libvirt-python-rpms
+
       - arch: x86_64
         template: .native_git_build_job
         suffix: -git
         artifacts:
-          expiry: 2 days
+          expire_in: 2 days
           paths:
             - scratch
             - build
 
-  centos-stream-9: x86_64
+  centos-stream-9:
+    jobs:
+      - arch: x86_64
+        artifacts:
+          expire_in: 1 hour
+          paths:
+            - libvirt-python-rpms
 
   debian-10: x86_64
 
   debian-sid: x86_64
 
-  fedora-35: x86_64
+  fedora-36:
+    jobs:
+      - arch: x86_64
+        artifacts:
+          expire_in: 1 hour
+          paths:
+            - libvirt-python-rpms
 
-  fedora-36: x86_64
+  fedora-37:
+    jobs:
+      - arch: x86_64
+        artifacts:
+          expire_in: 1 hour
+          paths:
+            - libvirt-python-rpms
 
   fedora-rawhide: x86_64
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-8.10.0/generator.py 
new/libvirt-python-9.0.0/generator.py
--- old/libvirt-python-8.10.0/generator.py      2022-11-23 13:24:29.000000000 
+0100
+++ new/libvirt-python-9.0.0/generator.py       2023-01-12 13:52:25.000000000 
+0100
@@ -484,6 +484,7 @@
     'virConnectListAllSecrets',  # overridden in virConnect.py
     'virConnectGetAllDomainStats',  # overridden in virConnect.py
     'virDomainListGetStats',  # overridden in virConnect.py
+    'virDomainFDAssociate',  # overridden in virDomain.py
 
     'virStreamRecvAll',  # Pure python libvirt-override-virStream.py
     'virStreamSendAll',  # Pure python libvirt-override-virStream.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-8.10.0/libvirt-override-virDomain.py 
new/libvirt-python-9.0.0/libvirt-override-virDomain.py
--- old/libvirt-python-8.10.0/libvirt-override-virDomain.py     2022-11-23 
13:24:29.000000000 +0100
+++ new/libvirt-python-9.0.0/libvirt-override-virDomain.py      2023-01-12 
13:52:25.000000000 +0100
@@ -80,3 +80,31 @@
         if ret == -1:
             raise libvirtError('virDomainSetTime() failed')
         return ret
+
+    def FDAssociate(self, name: str, files: List[int], flags: int = 0) -> int:
+        """Associate the array of FDs passed as @fds with the domain object
+        under @name. The FDs are associated as long as the connection used to
+        associated exists and are disposed of afterwards. FD may still be kept
+        open by the hypervisor for as long as it's needed.
+
+        Security labelling (e.g. via the selinux) may be applied on the passed
+        FDs when requiredg for usage by the VM. By default libvirt does not
+        restore the seclabels on the FDs afterwards to avoid keeping it open
+        unnecessarily.
+
+        Restoring of the security label can be requested by passing either
+        VIR_DOMAIN_FD_ASSOCIATE_SECLABEL_RESTORE for a best-effort attempt to
+        restore the security label after use.  Requesting the restore of
+        security label will require that the file descriptors are kept open for
+        the whole time they are used by the hypervisor, or other additional
+        overhead.
+
+        In certain cases usage of the fd group would imply read-only access.
+        Passing VIR_DOMAIN_FD_ASSOCIATE_SECLABEL_WRITABLE in @flags ensures
+        that a writable security label is picked in case when the file
+        represented by the fds may be used in write mode. """
+        ret = libvirtmod.virDomainFDAssociate(self._o, name, files, flags)
+        if ret == -1:
+            raise libvirtError('virDomainFDAssociate() failed')
+        return ret
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-8.10.0/libvirt-override.c 
new/libvirt-python-9.0.0/libvirt-override.c
--- old/libvirt-python-8.10.0/libvirt-override.c        2022-11-23 
13:24:29.000000000 +0100
+++ new/libvirt-python-9.0.0/libvirt-override.c 2023-01-12 13:52:25.000000000 
+0100
@@ -10789,6 +10789,59 @@
 }
 #endif /* LIBVIR_CHECK_VERSION(8, 4, 0) */
 
+
+#if LIBVIR_CHECK_VERSION(9, 0, 0)
+static PyObject *
+libvirt_virDomainFDAssociate(PyObject *self ATTRIBUTE_UNUSED,
+                             PyObject *args)
+{
+    PyObject *py_retval = NULL;
+    int c_retval;
+    virDomainPtr domain;
+    PyObject *pyobj_domain;
+    PyObject *pyobj_files;
+    const char *name = NULL;
+    unsigned int flags;
+    unsigned int nfiles;
+    int *files = NULL;
+    ssize_t i;
+
+    if (!PyArg_ParseTuple(args, (char *)"OsOI:virDomainFDAssociate",
+                          &pyobj_domain, &name, &pyobj_files, &flags))
+        return NULL;
+    domain = (virDomainPtr) PyvirDomain_Get(pyobj_domain);
+
+    nfiles = PyList_Size(pyobj_files);
+
+    if (VIR_ALLOC_N(files, nfiles) < 0)
+        return PyErr_NoMemory();
+
+    for (i = 0; i < nfiles; i++) {
+        PyObject *pyfd;
+        int fd;
+
+        pyfd = PyList_GetItem(pyobj_files, i);
+
+        if (libvirt_intUnwrap(pyfd, &fd) < 0)
+            goto cleanup;
+
+        files[i] = fd;
+    }
+
+    LIBVIRT_BEGIN_ALLOW_THREADS;
+    c_retval = virDomainFDAssociate(domain, name, nfiles, files, flags);
+    LIBVIRT_END_ALLOW_THREADS;
+
+    py_retval = libvirt_intWrap((int) c_retval);
+
+ cleanup:
+    VIR_FREE(files);
+    return py_retval;
+}
+#endif /* LIBVIR_CHECK_VERSION(9, 0, 0) */
+
+
+
 /************************************************************************
  *                                                                     *
  *                     The registration stuff                          *
@@ -11070,6 +11123,9 @@
     {(char *) "virDomainSaveParams", libvirt_virDomainSaveParams, 
METH_VARARGS, NULL},
     {(char *) "virDomainRestoreParams", libvirt_virDomainRestoreParams, 
METH_VARARGS, NULL},
 #endif /* LIBVIR_CHECK_VERSION(8, 4, 0) */
+#if LIBVIR_CHECK_VERSION(9, 0, 0)
+    {(char *) "virDomainFDAssociate", libvirt_virDomainFDAssociate, 
METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(9, 0, 0) */
     {NULL, NULL, 0, NULL}
 };
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvirt-python-8.10.0/setup.py 
new/libvirt-python-9.0.0/setup.py
--- old/libvirt-python-8.10.0/setup.py  2022-11-23 13:24:29.000000000 +0100
+++ new/libvirt-python-9.0.0/setup.py   2023-01-12 13:52:25.000000000 +0100
@@ -335,7 +335,7 @@
 _c_modules, _py_modules = get_module_lists()
 
 setup(name = 'libvirt-python',
-      version = '8.10.0',
+      version = '9.0.0',
       url = 'http://www.libvirt.org',
       maintainer = 'Libvirt Maintainers',
       maintainer_email = 'libvir-l...@redhat.com',

Reply via email to