From 2b567d18df47508372f5c00cb93b7e6b80b80ce7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0pl=C3=ADchal?= Date: Tue, 5 Sep 2023 13:01:43 +0200 Subject: [PATCH] Disable `systemd-resolved` to prevent dns failures Prevent random dns failures caused (most probably) by `systemd-resolved`. Using workaround from Testing Farm. Fix #2063. --- plans/main.fmf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plans/main.fmf b/plans/main.fmf index 4d837feb4a..34ccc0a8df 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -13,3 +13,17 @@ adjust: how: install directory: tmp/RPMS/noarch when: how == full + + # Disable systemd-resolved to prevent dns failures + # See: https://github.com/teemtee/tmt/issues/2063 + - prepare+: + - name: disable-systemd-resolved + how: shell + script: | + systemctl disable systemd-resolved + systemctl mask systemd-resolved + rm -f /etc/resolv.conf + systemctl restart NetworkManager + sleep 3 + cat /etc/resolv.conf + when: initiator == packit and distro == fedora