-
-
Notifications
You must be signed in to change notification settings - Fork 149
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 4 compatibilty #318
Comments
Looks like this was also an issue in early Facter 2: https://tickets.puppetlabs.com/browse/FACT-409 |
ping @IrimieBogdan |
Are you certain that the confine statement is working? Seems like the exec statement shouldn't be evaluated at all on non-RedHat nodes although you would also run into issues on a RedHat based OS where rpm is not available. |
Note that this is in CI, which is always a bit different. I suspect the RH facts are loaded on an Ubuntu machine. That might mess up things. |
@ekohl thanks for the info, in the next release of Facter 4 (probably tomorrow) this will be fixed. |
Great to hear. I'll revert theforeman/puppet-pulpcore@011f84b to verify it's been fixed. |
@ekohl We have identified the problem, when running Facter 4 in a gem context, the exit code should be 0, even if there were errors. There is an experimental fix, but it will not get in today's release. You can expect the fix to get in early next week. |
Thanks for the update! theforeman/puppet-pulpcore#83 should test that branch. |
It looks like that passes, but still outputs the error. Now that makes me wonder: were custom facts always executed in CI? |
@ekohl a new release of Facter 4 is out https://rubygems.org/gems/facter/versions/4.0.13 Please give it a try. |
Closing due to the new facter version. |
Since Facter 4 was released, it appears the
selinux_python_command.rb
fact has started to fail whenrpm
is not present. This happens when running tests on a non-Red Hat OS whererpm
is not present:It looks like
Facter::Core::Execution.execute
now raises an exception when the command fails where previously it didn't.The text was updated successfully, but these errors were encountered: