Actions
Bug #34030
openautomatically accepting minion key after calling built-URL doesn't trigger
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
Environment: Foreman 3.0.1, salt 3004
Currently, new salt-keys are not automatically accepted. It seems, that the relevant code doesn't run.
In
app/models/foreman_salt/concerns/host_managed_extensions.rb
at least one of two messages should show up in the log - either...
Rails.logger.info("Host #{fqdn} is built, accepting Salt key")
or
Rails.logger.warn("Unable to accept key for #{fqdn}: #{e}")
Neither does. Tracing back this issue, it seems that the function build_hooks in
app/models/host/managed.rb
...is never called. Even with logging set to debug, the line
logger.debug "custom hook before_provision on #{name} will be executed if defined."
...never shows up in the logs when the "built"-URL is called, although it should. The line...
logger.debug "custom hook after_build on #{name} will be executed if defined."
DOES show up, so logging works as it should.
No data to display
Actions