-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Long delay when printing catalog server in Puppet 7.28.0 on IPv6-only clients #9223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for letting us know @sagepe. Are you able to provide the steps you used to disable IPv4 on a dual stack machine so we can try to reproduce this? Also the output of |
I just provision one in our infra, so I don't manually make the changes. It's a bit tricky to provide definitive instructions as it will of course vary depending on how the server instances are provisioned, the OS family, etc. Our IPv6 only systems do have an IPv4 loopback, but no IPv4 address on their public interfaces. They have an IPv6 loopback address, a single global public IPv6 address and a link-local IPv6 address - see the facter output; I've redacted the actual addresses and hostnames: If you're starting point is a dual stack system with both IPv4 and IPv6 addresses, you may be able to replicate it with a
|
Migrated issue to PUP-12022 |
We've added an option to disable this behavior, avoiding the DNS lookup altogether. I'll leave this open since it seems we should be able to do the lookup with a shorter timeout. |
Since there is an option to disable this behavior and this impacts 7.x which is only getting security updates because it is LTS, this issue will be closed. |
Describe the Bug
When running Puppet agent 7.28 interactively (e.g.
puppet agent --test --noop
) on a host with an IPv6 address but without an IPv4 address, the run consistently hangs for over two minutes after printingInfo: Loading facts
and before printingNotice: Requesting catalog from puppet.example.com:8140
.When running on a dual stack host with both IPv4 and IPv6 addresses, there is no pause and the
Notice
includes an IPv4 address in parentheses:Notice: Requesting catalog from puppet.example.com:8140 (10.0.0.1)
.Expected Behavior
There should be no delay when running Puppet on hosts with only an IPv6 address.
Steps to Reproduce
On an IPv6 only host that uses a Puppet server with both IPv4 and IPv6 addresses, run
puppet agent --test --noop
.Environment
Additional Context
The Puppet server is dual stack with routable IPv4 and IPv6 addresses. These are in DNS and can be resolved from the client system using the system resolver as normal.
This delay was not present in previous versions of Puppet. Reverting Puppet agent to 7.27.0 resolves the problem.
Looking at puppetlabs/puppet#9126, it appears that the lookup using
Resolv.getaddress
is causing the delay.Please note that all hostnames and IP addresses have been redacted and replaced in the examples below, but otherwise they are reproduced exactly as we ran them.
Using Ruby 2.7.8 on a dual stack host:
Using Ruby 2.7.8 on an IPv6 only host:
Using Ruby 3.2.2 on an IPv6 only host does return a result, but it's an IPv4 address which is arguably not what you would expect, so I suspect this issue is less visible in Puppet 8.x but may represent a related but slightly different bug:
Noting that if you use the
Resolv
gem under Ruby 2.7.8 rather than the builtin, this works as per 3.2.2 which would seem to be what you'd expect:The text was updated successfully, but these errors were encountered: