From 05ffa7bf6cd4880a60821b4f421fbe728cb705e7 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Wed, 15 Apr 2026 11:15:01 +0200 Subject: [PATCH 1/4] kvm: install dependencies for Linux network namespace --- Ansible/roles/kvm/tasks/centos8.yml | 13 +++++++++++++ Ansible/roles/kvm/tasks/debian.yml | 14 ++++++++++++++ Ansible/roles/kvm/tasks/el9.yml | 13 +++++++++++++ Ansible/roles/kvm/tasks/ubuntu.yml | 14 ++++++++++++++ 4 files changed, 54 insertions(+) diff --git a/Ansible/roles/kvm/tasks/centos8.yml b/Ansible/roles/kvm/tasks/centos8.yml index 1d7941555c..23761d55a7 100644 --- a/Ansible/roles/kvm/tasks/centos8.yml +++ b/Ansible/roles/kvm/tasks/centos8.yml @@ -86,6 +86,19 @@ tags: - kvm +- name: Install utilities and tools for Linux network namespace + dnf: name={{ item }} state=present enablerepo=base + with_items: + - iproute + - iptables + - iputils + - dnsmasq + - haproxy + - httpd + - util-linux + tags: + - kvm + - name: install python-argparse pip: name: argparse diff --git a/Ansible/roles/kvm/tasks/debian.yml b/Ansible/roles/kvm/tasks/debian.yml index f85bebf205..961076810d 100644 --- a/Ansible/roles/kvm/tasks/debian.yml +++ b/Ansible/roles/kvm/tasks/debian.yml @@ -70,6 +70,20 @@ - ovmf - swtpm +- name: Install utilities and tools for Linux network namespace + apt: + pkg: "{{ item }}" + state: latest + update_cache: yes + with_items: + - iproute2 + - iptables + - arping + - dnsmasq + - haproxy + - apache2 + - util-linux + - set_fact: java_ver="{{ kvm_java_ver }}" - set_fact: java_path="{{ kvm_java_path }}" diff --git a/Ansible/roles/kvm/tasks/el9.yml b/Ansible/roles/kvm/tasks/el9.yml index 72e1282948..b280124e40 100644 --- a/Ansible/roles/kvm/tasks/el9.yml +++ b/Ansible/roles/kvm/tasks/el9.yml @@ -101,6 +101,19 @@ tags: - kvm +- name: Install utilities and tools for Linux network namespace + dnf: name={{ item }} state=present enablerepo=base + with_items: + - iproute + - iptables + - iputils + - dnsmasq + - haproxy + - httpd + - util-linux + tags: + - kvm + - name: install python-argparse pip: name: argparse diff --git a/Ansible/roles/kvm/tasks/ubuntu.yml b/Ansible/roles/kvm/tasks/ubuntu.yml index 3ebc66c3b0..a99c9efa2e 100644 --- a/Ansible/roles/kvm/tasks/ubuntu.yml +++ b/Ansible/roles/kvm/tasks/ubuntu.yml @@ -69,6 +69,20 @@ - qemu-kvm - parted +- name: Install utilities and tools for Linux network namespace + apt: + pkg: "{{ item }}" + state: latest + update_cache: yes + with_items: + - iproute2 + - iptables + - arping + - dnsmasq + - haproxy + - apache2 + - util-linux + - name: Install packages for UEFI apt: pkg: "{{ item }}" From 17417e9fe5ada8f2ab4c078aa3f4dcd1b7efb6b6 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Fri, 8 May 2026 11:08:01 +0200 Subject: [PATCH 2/4] kvm: Stop dnsmasq and haproxy and apache2/httpd services --- Ansible/roles/kvm/tasks/centos8.yml | 5 +++++ Ansible/roles/kvm/tasks/debian.yml | 5 +++++ Ansible/roles/kvm/tasks/el9.yml | 5 +++++ Ansible/roles/kvm/tasks/ubuntu.yml | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/Ansible/roles/kvm/tasks/centos8.yml b/Ansible/roles/kvm/tasks/centos8.yml index 23761d55a7..b14a2ac5ea 100644 --- a/Ansible/roles/kvm/tasks/centos8.yml +++ b/Ansible/roles/kvm/tasks/centos8.yml @@ -98,6 +98,11 @@ - util-linux tags: - kvm + ignore_errors: yes + +- name: Stop dnsmasq and haproxy and httpd services + shell: systemctl stop dnsmasq haproxy httpd && systemctl disable dnsmasq haproxy httpd + ignore_errors: yes - name: install python-argparse pip: diff --git a/Ansible/roles/kvm/tasks/debian.yml b/Ansible/roles/kvm/tasks/debian.yml index 961076810d..46f47d1638 100644 --- a/Ansible/roles/kvm/tasks/debian.yml +++ b/Ansible/roles/kvm/tasks/debian.yml @@ -83,6 +83,11 @@ - haproxy - apache2 - util-linux + ignore_errors: yes + +- name: Stop dnsmasq and haproxy and apache2 services + shell: systemctl stop dnsmasq haproxy apache2 && systemctl disable dnsmasq haproxy apache2 + ignore_errors: yes - set_fact: java_ver="{{ kvm_java_ver }}" - set_fact: java_path="{{ kvm_java_path }}" diff --git a/Ansible/roles/kvm/tasks/el9.yml b/Ansible/roles/kvm/tasks/el9.yml index b280124e40..1b1653e450 100644 --- a/Ansible/roles/kvm/tasks/el9.yml +++ b/Ansible/roles/kvm/tasks/el9.yml @@ -113,6 +113,11 @@ - util-linux tags: - kvm + ignore_errors: yes + +- name: Stop dnsmasq and haproxy and httpd services + shell: systemctl stop dnsmasq haproxy httpd && systemctl disable dnsmasq haproxy httpd + ignore_errors: yes - name: install python-argparse pip: diff --git a/Ansible/roles/kvm/tasks/ubuntu.yml b/Ansible/roles/kvm/tasks/ubuntu.yml index a99c9efa2e..8a95bebcbd 100644 --- a/Ansible/roles/kvm/tasks/ubuntu.yml +++ b/Ansible/roles/kvm/tasks/ubuntu.yml @@ -82,6 +82,11 @@ - haproxy - apache2 - util-linux + ignore_errors: yes + +- name: Stop dnsmasq and haproxy and apache2 services + shell: systemctl stop dnsmasq haproxy apache2 && systemctl disable dnsmasq haproxy apache2 + ignore_errors: yes - name: Install packages for UEFI apt: From 983b83ef7653868495ab9999409c3c9fd04ea75f Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Wed, 13 May 2026 11:56:40 +0200 Subject: [PATCH 3/4] marvin: install pyvmomi 9.0.0.0 Got the following issue with pyvmomi 9.1.0.0 ``` Failure: Exception (Python 3.10 or newer is required (found 3.9)) ... === TestName: Failure: | Status : EXCEPTION === ERROR ====================================================================== ERROR: Failure: Exception (Python 3.10 or newer is required (found 3.9)) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/nose/failure.py", line 39, in runTest raise self.exc_val.with_traceback(self.tb) File "/usr/local/lib/python3.9/site-packages/nose/loader.py", line 417, in loadTestsFromName module = self.importer.importFromPath( File "/usr/local/lib/python3.9/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/local/lib/python3.9/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/usr/lib64/python3.9/imp.py", line 234, in load_module return load_source(name, filename, file) File "/usr/lib64/python3.9/imp.py", line 171, in load_source module = _load(spec) File "", line 711, in _load File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/marvin/tests/smoke/test_2fa.py", line 33, in from marvin.lib.common import (get_domain, File "/usr/local/lib/python3.9/site-packages/marvin/lib/common.py", line 100, in from marvin.lib.vcenter import Vcenter File "/usr/local/lib/python3.9/site-packages/marvin/lib/vcenter.py", line 18, in from pyVmomi import vim, vmodl File "/usr/local/lib/python3.9/site-packages/pyVmomi/__init__.py", line 14, in from . import _init_utils # noqa: E402 File "/usr/local/lib/python3.9/site-packages/pyVmomi/_init_utils.py", line 8, in raise Exception(msg) Exception: Python 3.10 or newer is required (found 3.9) -------------------- >> begin captured stdout << --------------------- === TestName: Failure: | Status : EXCEPTION === ``` --- Ansible/roles/marvin/tasks/install_marvin_prereqs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ansible/roles/marvin/tasks/install_marvin_prereqs.yml b/Ansible/roles/marvin/tasks/install_marvin_prereqs.yml index 4d6e641c6c..1fd0a71c59 100644 --- a/Ansible/roles/marvin/tasks/install_marvin_prereqs.yml +++ b/Ansible/roles/marvin/tasks/install_marvin_prereqs.yml @@ -102,7 +102,7 @@ - pycparser - mysql-connector-python==8.0.30 - netaddr - - pyvmomi + - pyvmomi==9.0.0.0 tags: - marvin - marvin_install From a2eaa210a855de7f6785bb04021b4d1c29c1be84 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Thu, 21 May 2026 08:17:39 +0200 Subject: [PATCH 4/4] marvin: install paramiko 4.0.0 --- Ansible/roles/marvin/tasks/install_marvin_prereqs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ansible/roles/marvin/tasks/install_marvin_prereqs.yml b/Ansible/roles/marvin/tasks/install_marvin_prereqs.yml index 1fd0a71c59..8ad0d873c6 100644 --- a/Ansible/roles/marvin/tasks/install_marvin_prereqs.yml +++ b/Ansible/roles/marvin/tasks/install_marvin_prereqs.yml @@ -92,7 +92,7 @@ - pip - six - pyOpenSSL - - paramiko + - paramiko==4.0.0 - wheel==0.45.1 - kubernetes - pyasn1