Facter in nightly runs 2 minutes causing slow f-i


I am trying out nightly build and it looks like Facter is trying to reach out to a HTTP address which times out on my system. This is causing a very long timeout everytime installer is executed.

To reproduce: /opt/puppetlabs/puppet/bin/facter --log-level=trace

2021-11-03 20:17:32.959350 DEBUG puppetlabs.facter - resolving EC2 facts.
2021-11-03 20:17:32.960443 DEBUG puppetlabs.facter - requesting IMDSv2 token at
2021-11-03 20:17:32.960486 DEBUG leatherman.curl:358 - requesting
2021-11-03 20:17:32.960600 DEBUG leatherman.curl:592 - Trying

I think we might need to rebase facter in nightly or do something with this. The bug is still open:


Perhaps we can disable EC2 fact gathering alltogether for the installation of Foreman. I am wondering - do we need facter at all for the installation? I know we use some facts like hostname, maybe we can filter out many unused facts and speedup installer speed, that could be helpful when executing something like --help.

Apologies, this is a problem on my home router which, apparently, routes local-link addresses to the internet. Well, these packets are not gonna get any responses… :slight_smile:

1 Like