From 375caaa1d868ad08db364e1573f99d0c29b7d94b Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Tue, 30 Jan 2024 10:25:15 -0700 Subject: [PATCH] chore: Disable firewall during nightly package tests (#14652) --- .circleci/config.yml | 6 +++--- scripts/install_incus.sh | 20 +++++++++++++++++++- tools/package_incus_test/main.go | 2 -- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d44ad4420..02b744532 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -142,7 +142,7 @@ jobs: arch: "386" test-integration: machine: - image: ubuntu-2004:current + image: ubuntu-2204:current resource_class: large steps: - checkout @@ -355,7 +355,7 @@ jobs: --acl public-read docker-nightly: machine: - image: ubuntu-2004:current + image: ubuntu-2204:current steps: - run: name: login to quay.io @@ -381,7 +381,7 @@ jobs: docker push quay.io/influxdb/telegraf-nightly:alpine amd64-package-test-nightly: machine: - image: ubuntu-2004:current + image: ubuntu-2204:current steps: - checkout - attach_workspace: diff --git a/scripts/install_incus.sh b/scripts/install_incus.sh index dd9a4c2dc..6f6df7ce5 100755 --- a/scripts/install_incus.sh +++ b/scripts/install_incus.sh @@ -22,8 +22,26 @@ networks: - name: incusbr0 type: bridge config: - ipv4.address: auto + ipv4.address: 192.168.100.1/24 + ipv4.nat: true ipv6.address: none +storage_pools: +- name: default + driver: dir +profiles: +- name: default + devices: + eth0: + name: eth0 + network: incusbr0 + type: nic + root: + path: / + pool: default + type: disk EOF +# Disable the firewall to prevent issues with the default configuration. +sudo ufw disable + sudo usermod -a -G incus-admin "$(whoami)" diff --git a/tools/package_incus_test/main.go b/tools/package_incus_test/main.go index 97d640597..88ab41519 100644 --- a/tools/package_incus_test/main.go +++ b/tools/package_incus_test/main.go @@ -12,9 +12,7 @@ import ( var imagesRPM = []string{ "fedora/39", "fedora/38", - "centos/7", "centos/9-Stream", - "amazonlinux/2", //"opensuse/15.3", // shadow-utils dependency bug see #3833 //"opensuse/tumbleweed", // shadow-utils dependency bug see #3833 }