-
Notifications
You must be signed in to change notification settings - Fork 457
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
(MODULES-11138) - Fix mac_source Facter.fact().value() issue with Facter 3 #1002
Conversation
|
Testing this on server-agent environment $: cat /etc/puppetlabs/code/environments/production/manifests/site.ppnode default {}
node 'salty-beadle.delivery.puppetlabs.net' {
include firewall
firewall { '001 accept all to lo interface':
proto => 'all',
iniface => 'lo',
action => 'accept',
}
}running Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for salty-beadle.delivery.puppetlabs.net
Info: Applying configuration version '1626871967'
Notice: /Stage[main]/Firewall::Linux::Debian/Package[iptables-persistent]/ensure: created
Notice: /Stage[main]/Main/Node[salty-beadle.delivery.puppetlabs.net]/Firewall[001 accept all to lo interface]/ensure: created
Notice: Applied catalog in 2.87 seconds |
|
I would suggest adding a test to avoid a regression like this happening in the future as our current test suite did not catch it. |
Hi @pmcmaw, I tested in 4 different scenarios: Scenario 1 server-agent environment
Puppetserver v6.16.1
Puppet-agent v6.17.0
Facter v3.14.12 (commit 70d26da13c9fee27973c1eb22200871e21445d97) - on agent machine
*** running using puppet agent -t
*** this environment is similar with the ticket environment
Result: the bug explained in the ticket is reproducingScenario 2 server-agent environment
Puppetserver v7.2.0
Puppet-agent v7.9.0
Facter v4.2.2 - on agent machine
*** running using puppet agent -t
Result: the bug is not reproducingScenario 3 Puppet-agent v6.17.0
Facter v3.14.12 (commit 70d26da13c9fee27973c1eb22200871e21445d97)
*** running the manifest using puppet apply
Result: the bug is not reproducingScenario 4 Puppet-agent v7.9.0
Facter v4.2.2
*** running the manifest using puppet apply
Result: the bug is not reproducingBecause our CI running tests using kind regards, |
According to the firewall module HISTORY.md
Facter.fact().value()is not supported byFacter 3-Replace Facter.fact().value() calls with Facter.value() to support Facter 3I added by mistake trying to repair our nightly CI. This PR should repair users problems created by the previous commit and not block our nightly CI
kind regards,
@adrianiurca