Foreman 3.3 "No facts available for target"

Problem:

When I run the following hiera key lookup for a host on Foreman 3.3 I get the following output.

$ puppet lookup --debug hascert --node foreman-2.t2.ucsd.edu --environment production --explain


Debug: Facter: Facter.load_external(true) called. External facts will be loaded
Debug: Runtime environment: puppet_version=7.17.0, ruby_version=2.7.6, run_mode=server, default_encoding=UTF-8
Error: Could not run: No facts available for target node: foreman-2.t2.ucsd.edu

Expected outcome:

I expect to get the value of the fact, or at least a dump of facts for a host like I did with my foreman 1.2x systems

eg.


Path “/etc/puppetlabs/code/environments/production/hieradata/global.yaml”
Original path: “global”
Found key: “hascert” value: false
Debug: Facter: Facter.load_external(true) called. External facts will be loaded

Foreman and Proxy versions:

3.3.0

Foreman and Proxy plugin versions:

3.3.0

Distribution and version:

AlmaLinux 8.6

1 Like