From dc196b3f5b60f2695dccfbcfa016145d60df1d26 Mon Sep 17 00:00:00 2001 From: Sabina Aledort Date: Sun, 8 May 2022 14:37:17 +0300 Subject: [PATCH] MetalLB: Remove MetalLB deployment scripts The MetalLB deployment scripts for OCP CI are now part of the openshift/metallb repo: https://github.com/openshift/metallb/tree/main/openshift-ci --- .gitignore | 1 - 06_create_cluster.sh | 14 - config_example.sh | 329 ------------------ metallb/Makefile | 10 - metallb/OWNERS | 7 - metallb/README.md | 37 -- metallb/configure_metallb.sh | 11 - metallb/deploy_operator.sh | 26 -- .../controller_manager_patch.yaml | 19 - .../kustomization.yaml | 7 - metallb/metallb.yaml | 6 - metallb/metallb_common.sh | 8 - metallb/run_e2e.sh | 58 --- 13 files changed, 533 deletions(-) delete mode 100755 config_example.sh delete mode 100644 metallb/Makefile delete mode 100644 metallb/OWNERS delete mode 100644 metallb/README.md delete mode 100755 metallb/configure_metallb.sh delete mode 100755 metallb/deploy_operator.sh delete mode 100644 metallb/metallb-operator-deploy/controller_manager_patch.yaml delete mode 100644 metallb/metallb-operator-deploy/kustomization.yaml delete mode 100644 metallb/metallb.yaml delete mode 100644 metallb/metallb_common.sh delete mode 100755 metallb/run_e2e.sh diff --git a/.gitignore b/.gitignore index cad6ccaa6..7439e3166 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,6 @@ clouds.yaml _clouds_yaml metal3-dev/deployment-*.yaml assets/generated -metallb/frr/ # Conditionally created for appropriate environments assets/templates/99_master-chronyd-redhat.yaml diff --git a/06_create_cluster.sh b/06_create_cluster.sh index a1842b51a..886ad8967 100755 --- a/06_create_cluster.sh +++ b/06_create_cluster.sh @@ -69,20 +69,6 @@ if [[ ${NUM_EXTRA_WORKERS} -ne 0 && -d "${OCP_DIR}/extras" ]]; then oc create secret generic extraworkers-secret --from-file="${OCP_DIR}/extras/" -n openshift-machine-api fi -if [[ ! -z "${ENABLE_METALLB}" ]]; then - - if [[ -z ${METALLB_IMAGE_BASE} ]]; then - export METALLB_IMAGE_BASE=$(\ - jq -r .references.spec.tags[0].from.name ${OCP_DIR}/release_info.json | sed -e 's/@.*$//g') - export METALLB_IMAGE_TAG="metallb" - export FRR_IMAGE_TAG="metallb-frr" - fi - - pushd metallb - ./configure_metallb.sh - popd -fi - if [[ ! -z "${ENABLE_VIRTUAL_MEDIA_VIA_EXTERNAL_NETWORK}" ]]; then oc patch provisioning provisioning-configuration --type merge -p "{\"spec\":{\"virtualMediaViaExternalNetwork\":true}}" fi diff --git a/config_example.sh b/config_example.sh deleted file mode 100755 index e3ab963c4..000000000 --- a/config_example.sh +++ /dev/null @@ -1,329 +0,0 @@ -#!/bin/bash - -# You can get this token from https://console-openshift-console.apps.ci.l2s4.p1.openshiftapps.com/ by -# clicking on your name in the top right corner and coping the login -# command (the token is part of the command) -set +x -export CI_TOKEN='' -set -x - -# When testing e.g cluster-bot builds, you must change CI_TOKEN to one -# from a different cluster, in which case this should be updated -#export CI_SERVER=api.ci.l2s4.p1.openshiftapps.com - -# Select a different release stream from which to pull the latest image, if the -# image name is not specified -#export OPENSHIFT_RELEASE_STREAM=4.8 - -# Select a different release type from which to pull the latest image, -# e.g ci, nightly or ga -# if using ga then set OPENSHIFT_VERSION to the required version. -#export OPENSHIFT_RELEASE_TYPE=nightly - -# Use _LOCAL_IMAGE to build or use copy of container images locally e.g. -#export IRONIC_LOCAL_IMAGE=https://github.com/metal3-io/ironic -#export IRONIC_LOCAL_IMAGE=quay.io/username/ironic -#export MACHINE_CONFIG_OPERATOR_LOCAL_IMAGE=https://github.com/openshift/machine-config-operator -# NOTE: If a checkout already exists in $HOME, it won't be re-created. -# NOTE: You must set CUSTOM_REPO_FILE to build some OpenShift images, e.g. ironic ones. -# NOTE: The use of IRONIC_INSPECTOR_LOCAL_IMAGE is limited to Openshift up to -# Version 4.8, starting from Openshift 4.9 the ironic-inspector container is not used anymore. - -# Use _EXTRA_PACKAGES to set the path (relative to dev-scripts or -# absolute) to a file with extra packages to install in the image, one per line. -# At the moment, this option is supported with ironic-image and -# ironic-inspector-image (NOTE: the ironic-inspector container has been -# removed in Openshift 4.9) -# For example: -# export IRONIC_EXTRA_PACKAGES=ironic-extra-pkgs.txt - -# Uncomment this to build a custom base image for ironic images -# export CUSTOM_BASE_IMAGE=true - -# Set this variable to point the custom base image to a different location -# It can be an absolute path or a local path under the dev-scripts dir -# export BASE_IMAGE_DIR=base-image - -# To build custom images based on custom base images with custom repositories -# put all the custom repositories in a .repo file inside the base-image directory -# (default to dev-scripts/base-image) and set this variable with the name of the -# .repo file, e.g. if the filename is ocp46.repo -# export CUSTOM_REPO_FILE=ocp46.repo - -# We can also change the very image the base-image is built from using the BASE_IMAGE_FROM -# variable; when we choose this, the repos included in the base image won't be removed. -# export BASE_IMAGE_FROM=centos:8 - -# If needed, we can fetch the change associated to a Pull Request for the images -# we're building locally. Specifying the PR number will fetch the PR, switch the -# local image repo to it, and build the image locally with that specific change. -# For example, for the PR #34 for the ironic-image: -# export IRONIC_PR=34 - -# IP stack for the cluster. The default is "v6". You may also set "v4", or -# "v4v6" for dual stack. -#export IP_STACK=v4 - -# IP stack for the hosts. If unset, defaults to ${IP_STACK}, but you can set -# IP_STACK to "v4" or "v6" and HOST_IP_STACK to "v4v6" to install a single-stack -# cluster on dual-stack hosts. -#export HOST_IP_STACK=v4v6 - -# BMC type. Valid values are redfish, redfish-virtualmedia, or ipmi. -#export BMC_DRIVER=redfish-virtualmedia - -# Mirror latest ci images to local registry. This is always true for IPv6, but can be turned off -# for an IPv4 install. -#export MIRROR_IMAGES=true - -# Comma-separated list of OLM operators to mirror into the local registry. This -# has no effect if MIRROR_IMAGES is false. -# This will not work for releases that have not yet shipped. The content for -# the release must have been published in order for mirroring to work. -#export MIRROR_OLM=kubernetes-nmstate-operator - -# Ensure that the local registry will be available -#export ENABLE_LOCAL_REGISTRY=true - -# Switch to upstream metal3-io ironic images instead of openshift ones. -#export UPSTREAM_IRONIC=true - -# SSH key used to ssh into deployed hosts. This must be the contents of the -# variable, not the filename. The contents of ~/.ssh/id_rsa.pub are used by -# default. -#export SSH_PUB_KEY=$(cat ~/.ssh/id_rsa.pub) - -# Configure custom ntp servers if needed -#export NTP_SERVERS="00.my.internal.ntp.server.com;01.other.ntp.server.com" - -# Indicate number of workers to deploy -#export NUM_WORKERS=0 - -# Indicate number of extra VMs to create but not deploy -#export NUM_EXTRA_WORKERS=0 - -# Apply extra workers automatically if NUM_EXTRA_WORKERS is set -#export APPLY_EXTRA_WORKERS=true - -# Indicate the online status of the NUM_EXTRA_WORKERS set in extra_host_manifests.yaml -#export EXTRA_WORKERS_ONLINE_STATUS=true - -# Provisioning interface on the helper ndoe -#export PRO_IF="eno1" - -# Internal interface -#export INT_IF="eno2" - -# Provisioning interface within the cluster -#export CLUSTER_PRO_IF="eno1" - -# Which disk to deploy -#export ROOT_DISK_NAME="/dev/sda" - -# Cluster name -#export CLUSTER_NAME="mycluster" - -# Domain name -#export BASE_DOMAIN="kni.lab.metal3.io" - -# Manage bridge -#export MANAGE_BR_BRIDGE=n - -# Path to the json files with ipmi credentials -#export NODES_FILE="/root/git/dev-scripts/bm.json" - -# Whether the installation is on baremetal or not -#export NODES_PLATFORM=BM - -# DNS_VIP -#export DNS_VIP="11.0.0.2" - -# Network type -#export NETWORK_TYPE="OpenShiftSDN" - -# Provisioning network -#export PROVISIONING_NETWORK="172.23.0.0/16" - -# IPv6 Provisioning network -#export PROVISIONING_NETWORK=fd00:1101::0/64 - -# Provisioning network profile, can be set to "Managed" or "Disabled" -#export PROVISIONING_NETWORK_PROFILE=Managed - -# Instruct the redfish emulator to ignore any instructions to set the boot device -#export REDFISH_EMULATOR_IGNORE_BOOT_DEVICE=False - -# External subnet -#export EXTERNAL_SUBNET_V4="11.0.0.0/24" -#export EXTERNAL_SUBNET_V6="fd2e:6f44:5dd8:c956::/120" - -# Cluster Subnet -#export CLUSTER_SUBNET_V4="10.128.0.0/14" -#export CLUSTER_HOST_PREFIX_V4="23" -#export CLUSTER_SUBNET_V6="fd01::/48 -#export CLUSTER_HOST_PREFIX_V6="64" - -# Cluster Host Prefix - -# Service Subnet -#export SERVICE_SUBNET_V4="172.30.0.0/16" -#export SERVICE_SUBNET_V6="fd02::/112" - -# Enable virtualMediaViaExternalNetwork in provisioning -# configuration. -# More info: https://github.com/openshift/cluster-baremetal-operator/blob/master/api/v1alpha1/provisioning_types.go#L163-L171 -#export ENABLE_VIRTUAL_MEDIA_VIA_EXTERNAL_NETWORK=true - -# Enable testing of custom machine-api-operator-image -#export TEST_CUSTOM_MAO=true - -# Custom machine-api-operator image with tag -#export CUSTOM_MAO_IMAGE="quay.io/mao-user/machine-api-operator:mao-fix" - -# Git repository that is holding any custom machine-api-operator changes -#export REPO_NAME="mao-user" - -# Name of branch in the above repo which contains the custom MAO changes -#export MAO_BRANCH="mao-fix" - -#export LOCAL_REGISTRY_DNS_NAME="virthost.ostest.test.metalkube.org" -#export LOCAL_REGISTRY_PORT="5000" - -# configure username for registry -#export REGISTRY_USER=some-user - -# congiugre password for registry user -#export REGISTRY_PASS=some-pass - -# configure base directory for registry -#export REGISTRY_DIR=/opt/registry - -# configure location of mirror's creds -#export REGISTRY_CREDS=${REGISTRY_CREDS:-$USER/private-mirror.json} - -# Install operator-sdk for local testing of baremetal-operator -#export INSTALL_OPERATOR_SDK=1 - -# Set a custom hostname format for masters. This is a format string that should -# include one %d field, which will be replaced with the number of the node. -#export MASTER_HOSTNAME_FORMAT=master-%d - -# Set a custom hostname format for workers. This is a format string that should -# include one %d field, which will be replaced with the number of the node. -#export WORKER_HOSTNAME_FORMAT=worker-%d - -# Change VM resources for masters -#export MASTER_MEMORY=16384 -#export MASTER_DISK=20 -#export MASTER_VCPU=8 - -# Change VM resources for workers -#export WORKER_MEMORY=8192 -#export WORKER_DISK=20 -#export WORKER_VCPU=4 - -# Change VM resources for extra workers. If not supplied defaults to the -# regular workers specs -#export EXTRA_WORKER_MEMORY=8192 -#export EXTRA_WORKER_DISK=20 -#export EXTRA_WORKER_VCPU=4 - -# Add extradisks to VMs -# export VM_EXTRADISKS=true - -# Configure how many extra disks to add to VMs. Takes a string of disk -# names delimited by spaces. Example "vdb vdc" -# export VM_EXTRADISKS_LIST="vdb vdc" - -# Configure size of extra disks added to VMs -# export VM_EXTRADISKS_SIZE="10G" - -# Add TPM2.0 emulator to VMs -# export VM_TPM_EMULATOR=true - -# Provide additional master/worker ignition configuration, will be -# merged with the installer provided config, can be used to modify -# the default nic configuration etc -#export IGNITION_EXTRA=extra.ign - -# Folder where to copy extra manifests for the cluster deployment -#export ASSETS_EXTRA_FOLDER=local_file_path - -# Enable FIPS mode -#export FIPS_MODE=true - -# In order to test using unicast for keepalived, one needs to disable multicast. -# Setting this variable to true will block multicast via ebtables for both IPv4 and IPv6. -#export DISABLE_MULTICAST=false - -# Enable metallb ("l2" or "bgp" ) -#export ENABLE_METALLB_MODE="l2" -# metallb container location (optional) -#export METALLB_IMAGE_BASE= -#export METALLB_IMAGE_TAG= - -# Set the DHCP lease time -#export DHCP_LEASE_EXPIRY=60 - -## -## Multi-cluster/Hive variables -## - -# Image reference for installing hive. See hive_install.sh. -#export HIVE_DEPLOY_IMAGE="registry.ci.openshift.org/openshift/hive-v4.0:hive" - -# PEM-encoded X.509 certificate bundle that will be added to the nodes' trusted -# certificate store. This trust bundle may also be used when a proxy has -# been configured. -# export ADDITIONAL_TRUST_BUNDLE=/path/to/ca_file - -# Configures the installer to use a proxy running on the local host -# and blocks all outgoing traffic -# export INSTALLER_PROXY=true - -## -## Assisted Deployment -## - -# The following variables will allow for setting a custom image to use for each -# of the components deployed by the Assisted Operator - -# export ASSISTED_SERVICE_IMAGE="quay.io/ocpmetal/assisted-service:latest" -# export ASSISTED_INSTALLER_IMAGE="quay.io/ocpmetal/assisted-installer:latest" -# export ASSISTED_AGENT_IMAGE="quay.io/ocpmetal/assisted-installer-agent:latest" -# export ASSISTED_DATABASE_IMAGE="quay.io/ocpmetal/postgresql-12-centos7:latest" -# export ASSISTED_CONTROLLER_IMAGE="quay.io/ocpmetal/assisted-installer-controller:latest" - -# Get the latest default versions from the assisted-service repo itself. -# export ASSISTED_OPENSHIFT_VERSIONS=$(wget -qO- https://raw.githubusercontent.com/openshift/assisted-service/master/default_ocp_versions.json) - -# Operator's bundle index to use. This will allow for testing a custom Assisted operator build that has -# not been published yet. For custom Assisted Service images it's enough to overwrite one of the images above. -# Overwrite this image only if you are working on the operator itself. -# export ASSISTED_OPERATOR_INDEX="quay.io/ocpmetal/assisted-service-index:latest" - -# The namespace to use for Assisted Service. Note that the assisted service also deploys Hive -# and the Local Storage oeprator. Hive's subscription will be deployed on the `openshift-operators` -# namespace and the Local Storage in the `openshift-local-storage` one. -# export ASSISTED_NAMESPACE="assisted-installer" - -# Uncomment the following line to have BareMetal Operator -# watch the BareMetalHosts on all namespaces. Note that -# setting this variable to true will require more RAM -# More info here: https://github.com/openshift-metal3/dev-scripts/pull/1241#issuecomment-846067822 -# export BMO_WATCH_ALL_NAMESPACES="true" - -## -## Agent Deployment -## - -# To use a local checkout of the fleeting repo, instead of fetching the remote -# main branch -# export FLEETING_PATH=~/go/src/github.com/openshift-agent-team/fleeting - -# When set, the changes associated to the specified pull request (for the fleeting repo) -# are fetched, instead of using the main branch -# export FLEETING_PR=12 - -# Set whether static IPs will be used for all nodes or only Node0 -# export FLEETING_STATIC_IP_NODE0_ONLY="true" diff --git a/metallb/Makefile b/metallb/Makefile deleted file mode 100644 index 389c94a93..000000000 --- a/metallb/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -.PHONY: config_l2 config_bgp start_frr stop_frr run_e2e - -all: - echo "make {config_bgp | config_l2}" - -config_metallb: - ./configure_metallb.sh - -run_e2e: - ./run_e2e.sh diff --git a/metallb/OWNERS b/metallb/OWNERS deleted file mode 100644 index 15e12fbf2..000000000 --- a/metallb/OWNERS +++ /dev/null @@ -1,7 +0,0 @@ -# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md - -approvers: - - fedepaol - - msherif1234 - - russellb - - s1061123 diff --git a/metallb/README.md b/metallb/README.md deleted file mode 100644 index d2132b0c6..000000000 --- a/metallb/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# MetalLB test env - -This scripts installs MetalLB into OCP, for test environment. - -## Prerequisites - -- Succeed to deploy OCP by dev-script -- IPv4 is enabled (Currently we targets IPv4. v4v6 case, we only support IPv4 for now) - -## Quickstart - -Make sure that OCP is deployed by dev-script - -To configure MetalLB - -``` -$ cd /metallb -$ make config_metallb -``` - -### Check MetalLB pod status - -``` -$ export KUBECONIFG=/ocp//auth/kubeconfig -$ oc get pod -n metallb-system -``` - -### Run E2E tests against development cluster - -The test suite will run the appropriate tests against the cluster. - -To run the E2E tests - -``` -$ cd /metallb -$ make run_e2e -``` diff --git a/metallb/configure_metallb.sh b/metallb/configure_metallb.sh deleted file mode 100755 index 1622d8b26..000000000 --- a/metallb/configure_metallb.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/bash - -metallb_dir="$(dirname $(readlink -f $0))" -source ${metallb_dir}/metallb_common.sh - -# configure metallb through metallb-operator -${metallb_dir}/deploy_operator.sh -oc apply -f ${metallb_dir}/metallb.yaml -oc adm policy add-scc-to-user privileged -n metallb-system -z speaker - -sudo ip route add 192.168.10.0/24 dev ${BAREMETAL_NETWORK_NAME} diff --git a/metallb/deploy_operator.sh b/metallb/deploy_operator.sh deleted file mode 100755 index 6402c6d9d..000000000 --- a/metallb/deploy_operator.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/bash - -metallb_dir="$(dirname $(readlink -f $0))" -source ${metallb_dir}/metallb_common.sh - -METALLB_OPERATOR_REPO=${METALLB_OPERATOR_REPO:-"https://github.com/metallb/metallb-operator.git"} -METALLB_OPERATOR_COMMIT=${METALLB_OPERATOR_COMMIT:-"4d52b86"} -METALLB_OPERATOR_IMAGE_TAG=${METALLB_OPERATOR_IMAGE_TAG:-"metallb-operator"} -export NAMESPACE=${NAMESPACE:-"metallb-system"} - -if [ ! -d ./metallb-operator ]; then - git clone ${METALLB_OPERATOR_REPO} - cd metallb-operator - git checkout ${METALLB_OPERATOR_COMMIT} - cd - -fi -cd metallb-operator - -# install yq v4 for metallb deployment -go install -mod='' github.com/mikefarah/yq/v4@v4.13.3 - -yq e --inplace '.spec.template.spec.containers[0].env[] |= select (.name=="SPEAKER_IMAGE").value|="'${METALLB_IMAGE_BASE}':'${METALLB_IMAGE_TAG}'"' ${metallb_dir}/metallb-operator-deploy/controller_manager_patch.yaml -yq e --inplace '.spec.template.spec.containers[0].env[] |= select (.name=="CONTROLLER_IMAGE").value|="'${METALLB_IMAGE_BASE}':'${METALLB_IMAGE_TAG}'"' ${metallb_dir}/metallb-operator-deploy/controller_manager_patch.yaml -yq e --inplace '.spec.template.spec.containers[0].env[] |= select (.name=="FRR_IMAGE").value|="'${METALLB_IMAGE_BASE}':'${FRR_IMAGE_TAG}'"' ${metallb_dir}/metallb-operator-deploy/controller_manager_patch.yaml - -PATH="${GOPATH}:${PATH}" ENABLE_OPERATOR_WEBHOOK=true KUSTOMIZE_DEPLOY_DIR="../metallb-operator-deploy" IMG="${METALLB_IMAGE_BASE}:${METALLB_OPERATOR_IMAGE_TAG}" make deploy diff --git a/metallb/metallb-operator-deploy/controller_manager_patch.yaml b/metallb/metallb-operator-deploy/controller_manager_patch.yaml deleted file mode 100644 index a56f50f9d..000000000 --- a/metallb/metallb-operator-deploy/controller_manager_patch.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: controller-manager - namespace: system -spec: - template: - spec: - containers: - - name: manager - env: - - name: SPEAKER_IMAGE - value: "quay.io/metallb/speaker:main" - - name: CONTROLLER_IMAGE - value: "quay.io/metallb/controller:main" - - name: METALLB_BGP_TYPE - value: "frr" - - name: FRR_IMAGE - value: "quay.io/frrouting/frr:stable_7.5" diff --git a/metallb/metallb-operator-deploy/kustomization.yaml b/metallb/metallb-operator-deploy/kustomization.yaml deleted file mode 100644 index 964ed38df..000000000 --- a/metallb/metallb-operator-deploy/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- ../metallb-operator/config/webhook-on-openshift - -patchesStrategicMerge: -- controller_manager_patch.yaml diff --git a/metallb/metallb.yaml b/metallb/metallb.yaml deleted file mode 100644 index 3f83d73c7..000000000 --- a/metallb/metallb.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -apiVersion: metallb.io/v1beta1 -kind: MetalLB -metadata: - name: metallb - namespace: metallb-system diff --git a/metallb/metallb_common.sh b/metallb/metallb_common.sh deleted file mode 100644 index 6a6d942a9..000000000 --- a/metallb/metallb_common.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/bash - -METALLB_IMAGE_BASE=${METALLB_IMAGE_BASE:-"quay.io/metallb"} -METALLB_IMAGE_TAG=${METALLB_IMAGE_TAG:-"main"} - -metallb_dir="$(dirname $(readlink -f $0))" -source ${metallb_dir}/../common.sh -source ${metallb_dir}/../network.sh diff --git a/metallb/run_e2e.sh b/metallb/run_e2e.sh deleted file mode 100755 index 4cd1d8eba..000000000 --- a/metallb/run_e2e.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/bash - -metallb_dir="$(dirname $(readlink -f $0))" -source ${metallb_dir}/metallb_common.sh - -export METALLB_REPO=${METALLB_REPO:-https://github.com/metallb/metallb.git} -METALLB_BRANCH=${METALLB_BRANCH:-"main"} -[[ -d /usr/local/go ]] && export PATH=${PATH}:/usr/local/go/bin - -if [ ! -d ./metallb ]; then - git clone $METALLB_REPO - cd metallb - git checkout "${METALLB_BRANCH}" - cd - -fi -cd metallb - -# add firewalld rules -sudo firewall-cmd --zone=libvirt --permanent --add-port=179/tcp -sudo firewall-cmd --zone=libvirt --add-port=179/tcp -sudo firewall-cmd --zone=libvirt --permanent --add-port=180/tcp -sudo firewall-cmd --zone=libvirt --add-port=180/tcp -# BFD control packets -sudo firewall-cmd --zone=libvirt --permanent --add-port=3784/udp -sudo firewall-cmd --zone=libvirt --add-port=3784/udp -# BFD echo packets -sudo firewall-cmd --zone=libvirt --permanent --add-port=3785/udp -sudo firewall-cmd --zone=libvirt --add-port=3785/udp -# BFD multihop packets -sudo firewall-cmd --zone=libvirt --permanent --add-port=4784/udp -sudo firewall-cmd --zone=libvirt --add-port=4784/udp - -# need to skip L2 metrics test because the pod that's running the tests is not in the -# same subnet of the cluster nodes, so the arp request that's done in the test won't work. -SKIP="\"L2 metrics\"" -if [ "${IP_STACK}" = "v4" ]; then - SKIP="$SKIP\|IPV6\|DUALSTACK" - export PROVISIONING_HOST_EXTERNAL_IPV4=${PROVISIONING_HOST_EXTERNAL_IP} - export PROVISIONING_HOST_EXTERNAL_IPV6=1111:1:1::1 -elif [ "${IP_STACK}" = "v6" ]; then - SKIP="$SKIP\|IPV4\|DUALSTACK" - export PROVISIONING_HOST_EXTERNAL_IPV6=${PROVISIONING_HOST_EXTERNAL_IP} - export PROVISIONING_HOST_EXTERNAL_IPV4=1.1.1.1 -elif [ "${IP_STACK}" = "v4v6" ]; then - SKIP="$SKIP\|IPV6" - export PROVISIONING_HOST_EXTERNAL_IPV4=${PROVISIONING_HOST_EXTERNAL_IP} - export PROVISIONING_HOST_EXTERNAL_IPV6=1111:1:1::1 -fi -echo "Skipping ${SKIP}" - -pip3 install --user -r ./dev-env/requirements.txt -export PATH=${PATH}:${HOME}/.local/bin -export CONTAINER_RUNTIME=podman -export RUN_FRR_CONTAINER_ON_HOST_NETWORK=true -inv e2etest --kubeconfig=$(readlink -f ../../ocp/ostest/auth/kubeconfig) \ - --service-pod-port=8080 --system-namespaces="metallb-system" --skip-docker \ - --ipv4-service-range=192.168.10.0/24 --ipv6-service-range=fc00:f853:0ccd:e799::/124 \ - --skip="${SKIP}" --use-operator