From 60f34c70a2fa8c22829f6a3cb70458b0e3881db4 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Thu, 22 Jul 2021 15:24:52 -0400 Subject: [PATCH] tstest/integration/vms: disable rDNS for sshd on centos (#2492) This prevents centos tests from timing out because sshd does reverse dns lookups on every session being established instead of doing it once on the acutal ssh connection being established. This is odd. Appending this to the sshd config and restarting it seems to fix it though. Signed-off-by: Christine Dodrill --- tstest/integration/vms/distros.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tstest/integration/vms/distros.go b/tstest/integration/vms/distros.go index cc9dffb3e..ad899a1b7 100644 --- a/tstest/integration/vms/distros.go +++ b/tstest/integration/vms/distros.go @@ -26,7 +26,9 @@ func (d *Distro) InstallPre() string { switch d.PackageManager { case "yum": return ` - [ yum, update, gnupg2 ] - - [ yum, "-y", install, iptables ]` + - [ yum, "-y", install, iptables ] + - [ sh, "-c", "printf '\n\nUseDNS no\n\n' | tee -a /etc/ssh/sshd_config" ] + - [ systemctl, restart, "sshd.service" ]` case "zypper": return ` - [ zypper, in, "-y", iptables ]`