Skip to content

feature: scripts for tap worker configuration - #23

Draft
tcooper wants to merge 2 commits into
rocky-linux:developfrom
tcooper:multi-machine
Draft

feature: scripts for tap worker configuration#23
tcooper wants to merge 2 commits into
rocky-linux:developfrom
tcooper:multi-machine

Conversation

@tcooper

@tcooper tcooper commented Jul 8, 2025

Copy link
Copy Markdown
Member

@AlanMarshall as promised here are the scripts I used to setup tap workers in openqa.

@tcooper
tcooper requested a review from AlanMarshall July 8, 2025 03:15
@tcooper tcooper self-assigned this Jul 8, 2025
@tcooper tcooper added the enhancement New feature or request label Jul 8, 2025

@AlanMarshall AlanMarshall left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on bare metal clean installed f42 server:
In OpenQA-Fedora-Installation ran:
install-openqa.sh then install-openqa-post-rocky.sh
to install openvswitch and then tested single vm:

openqa-cli api -X POST isos ISO=Rocky-9.6-x86_64-dvd.iso ARCH=x86_64 DISTRI=rocky FLAVOR=dvd-iso VERSION=9.6 CURRREL=9 LOCATION=https://dl.rockylinux.org/pub/rocky/9.6 DNF_CONTENTDIR=pub/rocky DNF_RELEASEVER=9.6 BUILD=-"$(date +%Y%m%d.%H%M%S).0"-dvd-iso-9.6 TEST=install_default_upload

Result: Pass
then ran
install-openqa-multi-machine-support.sh
with br0 instead of br1 (just for the hell of it)
and 4 instances instead of 18
then after configuring:

/etc/openqa/client.conf.d/client.conf
/etc/openqa/client.conf.d/openqa.ini
/etc/openqa/client.conf.d/workers.ini

was able to run:

... TEST=server_role_deploy_domain_controller,realmd_join_sssd
... TEST=support_server,install_updates_nfs,install_repository_nfs_graphical

Result: openvswitch comms within vlan ok but fail when trying to access internet.

Comment: The port tap numbers do not look correct
and there is an error in firewall config for non-existent isotovideo service
but otherwise looks ok:

ovs-vsctl show
ac15a4aa-0730-4d97-8ccc-0d962ae023aa
    Bridge br0
        Port tap68
            Interface tap68
                type: system
        Port tap1
            Interface tap1
                type: system
        Port tap66
            Interface tap66
                type: system
        Port tap65
            Interface tap65
                type: system
        Port tap4
            Interface tap4
                type: system
        Port tap132
            Interface tap132
                type: system
        Port tap64
            Interface tap64
                type: system
        Port tap129
            Interface tap129
                type: system
        Port tap128
            Interface tap128
                type: system
        Port tap130
            Interface tap130
                type: system
        Port br0
            Interface br0
                type: internal
        Port tap0
            Interface tap0
                type: system
        Port tap67
            Interface tap67
                type: system
        Port tap131
            Interface tap131
                type: system
        Port tap3
            Interface tap3
                type: system
        Port tap2
            Interface tap2
                type: system
    ovs_version: "3.4.1-1.fc42"
ip a
...
4: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d6:d8:d6:3f:15:63 brd ff:ff:ff:ff:ff:ff
7: tap68: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether 2a:7b:14:15:d1:32 brd ff:ff:ff:ff:ff:ff
8: tap64: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether 42:65:c5:37:b5:44 brd ff:ff:ff:ff:ff:ff
12: tap128: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether 2a:53:ac:50:73:bc brd ff:ff:ff:ff:ff:ff
16: tap67: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether f6:23:31:06:18:0d brd ff:ff:ff:ff:ff:ff
19: tap129: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether b6:1f:d0:ed:f9:9a brd ff:ff:ff:ff:ff:ff
21: tap132: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether 66:b7:db:04:c7:c2 brd ff:ff:ff:ff:ff:ff
22: tap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether 0e:21:41:12:7f:23 brd ff:ff:ff:ff:ff:ff
23: tap4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether 8e:85:35:cc:52:c6 brd ff:ff:ff:ff:ff:ff
24: tap2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether 86:b5:e1:13:34:26 brd ff:ff:ff:ff:ff:ff
25: tap3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether 6a:80:18:13:cb:ea brd ff:ff:ff:ff:ff:ff
26: tap66: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether 2a:8a:d7:bf:6a:1e brd ff:ff:ff:ff:ff:ff
27: tap131: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether 1e:3b:02:6e:8a:7e brd ff:ff:ff:ff:ff:ff
28: tap130: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether 3a:7a:1a:a4:1e:5b brd ff:ff:ff:ff:ff:ff
29: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1460 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether be:98:22:38:d0:49 brd ff:ff:ff:ff:ff:ff
    inet 172.16.2.2/15 brd 172.17.255.255 scope global noprefixroute br0
       valid_lft forever preferred_lft forever
    inet6 fe80::5182:fea4:64d7:1f57/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
30: tap65: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether ce:ac:19:61:78:f0 brd ff:ff:ff:ff:ff:ff
31: tap1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master ovs-system state DOWN group default qlen 1000
    link/ether 4a:bd:c3:61:d9:d0 brd ff:ff:ff:ff:ff:ff

Still to try out remove-openqa-multi-machine-support.sh will advise.

@AlanMarshall

AlanMarshall commented Jul 11, 2025

Copy link
Copy Markdown

Remove script tested: Ran remove-openqa-multi-machine-support.sh
Result: Success
Script ran through successfully including:

Package                     Arch     Version                       Repository          Size
Removing:
 NetworkManager-ovs         x86_64   1:1.52.0-1.fc42               fedora         103.7 KiB
 openvswitch                x86_64   3.4.1-1.fc42                  fedora           5.5 MiB
 os-autoinst-openvswitch    x86_64   5^20250522gita855b3a-1.fc42   updates         10.5 KiB
Removing unused dependencies:
 dpdk                       x86_64   2:24.11.1-3.fc42              fedora          29.1 MiB
 libatomic                  x86_64   15.1.1-2.fc42                 updates         36.7 KiB
 openvswitch-dpdk           x86_64   3.4.1-1.fc42                  fedora           3.8 MiB

All previously installed items gone.

@AlanMarshall AlanMarshall left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with comment above on tap numbers

A reinstall using br1 and 18 instances untouched gave tap0 to tap17 correctly configured and working correctly but 39 additional tap ports also configured.
isotovideo service error in firewall config remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants