Skip to content

Commit 4deb920

Browse files
author
Morgan Rhodes
committed
(maint) Switch to ubuntu agent for network stability
When testing with the `puppet/puppet-agent-alpine` image on windows systems with LCOW we had intermittent failures in DNS resolution that occurred fairly regularly. It seems to be specifically interaction between the base alpine (3.8 and 3.9) images with windows/LCOW. Two issues related to this issue are moby/libnetwork#2371 and microsoft/opengcs#303
1 parent b0f9360 commit 4deb920

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

gem/lib/pupperware/spec_helper.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,19 @@ def clean_certificate(agent_name)
237237
# Puppet Agent Helpers
238238
######################################################################
239239

240+
# When testing with the `puppet/puppet-agent-alpine` image on windows
241+
# systems with LCOW we had intermittent failures in DNS resolution that
242+
# occurred fairly regularly. It seems to be specifically interaction
243+
# between the base alpine (3.8 and 3.9) images with windows/LCOW.
244+
#
245+
# Two issues related to this issue are
246+
# https://github.com/docker/libnetwork/issues/2371 and
247+
# https://github.com/Microsoft/opengcs/issues/303
240248
def run_agent(agent_name, network, server = get_container_hostname(get_service_container('puppet')), ca = get_container_hostname(get_service_container('puppet')))
241249
# setting up a Windows TTY is difficult, so we don't
242250
# allocating a TTY will show container pull output on Linux, but that's not good for tests
243251
STDOUT.puts("running agent #{agent_name} in network #{network} against #{server}")
244-
result = run_command("docker run --rm --network #{network} --name #{agent_name} --hostname #{agent_name} puppet/puppet-agent-alpine agent --verbose --onetime --no-daemonize --summarize --server #{server} --ca_server #{ca}")
252+
result = run_command("docker run --rm --network #{network} --name #{agent_name} --hostname #{agent_name} puppet/puppet-agent-ubuntu agent --verbose --onetime --no-daemonize --summarize --server #{server} --ca_server #{ca}")
245253
return result[:status].exitstatus
246254
end
247255

0 commit comments

Comments
 (0)