-
Notifications
You must be signed in to change notification settings - Fork 498
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
Facter still tries to access EC2 metadata service with EC2 in the blocklist #2672
Comments
@robert-cam can you try with facter 4.5.2 and include the output of |
|
Hi. I'm on Debian bookworm with facter 4.5.2 and blocklist does not work for me, too:
|
Migrated issue to FACT-3454 |
@robert-cam @lemkep Could you try installing earlier puppet-agent/facter versions to see if this is a regression? |
This happens with facter 4.0.52 from the puppet-agent 7.5.0 package:
Doesn't happen with facter 4.0.51 from the puppet-agent 7.4.1 package:
|
Seems to be a different issue for me. It is just the case when using puppet libs with '-p', also with an older versions (tested back until 4.2.10). Without blocklist:
With blocklist (blocks):
With blocklist and '-p':
|
@robert-cam could your provide what your facter config file looks like? thanks! |
I just have a basic config for testing this:
|
@robert-cam in your example of the issue happening in the |
Apologies, I was testing on 2 different VMs and one has this config:
I've updated and they both have the same facter.conf now. I've checked and the VM I was using to test all the different facter versions was configured to block az_metadata. |
@robert-cam I am going to make the assumption that there is no breakage like you described above between facter versions Do you think that you could run facter from that branch in your VM and share the debug output? You may have to do some installation of packages to allow for |
@tvpartytonight here's the debug output with your fork:
|
Ahh, sorry @robert-cam I accidentally left my changes on my local fork; can you try again? We are looking for the debug statements that are added here: main...tvpartytonight:facter:add_block_filtering_debug_comments |
@tvpartytonight ok, debug output attached. |
@robert-cam I realize I made a mistake in that branch which I have now fixed; would you mind fetching the latest for that branch and retrying? |
@tvpartytonight sure, see attached. |
Ok @robert-cam AFAICT there's nothing wrong with the blocking of facts happening; I added some more debug about the resolution of |
@tvpartytonight done, see attached. |
@robert-cam can you run a test for me on the main branch of |
@robert-cam I opened up #2690 to track what I think is really the issue here; I'm going to close this issue out as I think that your issue can be resolved by further blocking the |
Confirmed, blocking cloud.provider works for me. Thanks! |
We're not running in a cloud environment and don't want or need facter to hit metadata services. The docs say adding EC2 will prevent the facts being resolved but facter still tries to access the metadata services.
Testing with facter 4.2.8 on CentOS 7.9 and AlmaLinux 8.9.
The text was updated successfully, but these errors were encountered: