Problem:
ENC data for a specific Node cannot be gathered (for salt or simple viewing).
$ /usr/bin/foreman-node some.host.fqdn
Couldn't retrieve ENC data: Error retrieving node somehost.fqdn: Net::HTTPPreconditionFailed
Check Foreman's /var/log/foreman/production.log for more information.
Happens with the URL, (i.e. salt/node/somehost.fqdn?format=yml
) or the legacy GUI option too.
Strangely enough, other hosts can generate/display ENC data.
Expected outcome:
ENC data is displayed.
Foreman and Proxy versions:
3.10
Foreman and Proxy plugin versions:
3.10
Distribution and version:
AlmaLinux 9.4
Other relevant data:
/var/log/foreman/production.log
2024-06-11T13:49:53 [I|app|db4a4f68] Started GET "/salt/node/somehost.fqdn?format=yml" for 10.24.0.3 at 2024-06-11 13:49:53 +0000
2024-06-11T13:49:53 [I|app|db4a4f68] Processing by ForemanSalt::MinionsController#node as YML
2024-06-11T13:49:53 [I|app|db4a4f68] Parameters: {"id"=>"somehost.fqdn"}
2024-06-11T13:49:53 [W|app|db4a4f68] No SSL cert with CN supplied - request from 10.xx.xx.xx
2024-06-11T13:49:53 [W|app|db4a4f68] Failed to generate external nodes for somehost with no implicit conversion of Array into Hash
2024-06-11T13:49:53 [I|app|db4a4f68] Rendered text template (Duration: 0.0ms | Allocations: 1)
2024-06-11T13:49:53 [I|app|db4a4f68] Completed 412 Precondition Failed in 58ms (Views: 0.2ms | ActiveRecord: 11.4ms | Allocations: 43204)
nothing more can be found in the logs, what ever the precondition is, I have no clue.