Hello,
I’ve seen this problem already reported but i didn’t found any solution.
I can accept a salt key in foreman smart proxy, but the salt_minion
host is not created when salt_master
execute foreman-node
It 's OK if i run foreman-node my-salt-minion-host-name
manually or if i run salt-call --grains
from salt-minion host.
Foreman and Proxy versions:
foreman-installer.noarch 1:2.1.2-1.el8 @foreman
foreman.noarch 2.1.2-1.el8 @foreman
foreman-proxy.noarch 2.1.2-1.el8 @foreman
Foreman and Proxy plugin versions:
rubygem-foreman_salt.noarch 13.2.3-1.fm2_1.el8 @foreman-plugins
rubygem-smart_proxy_salt.noarch 3.1.2-3.fm2_1.el8 @foreman-plugins
rubygem-smart_proxy_salt_core.noarch 0.0.3-1.el8 @foreman-plugins
Distribution and version:
CentOS Linux release 8.1.1911 (Core)
Other relevant data:
2020-09-09 12:29:55,999 [salt.loaded.int.module.cmdmod:854 ][ERROR ][8429] Command '['/usr/bin/foreman-node', 'sphynx.ac-test.fr']' failed with return code: 1
2020-09-09 12:29:56,000 [salt.loaded.int.module.cmdmod:856 ][ERROR ][8429] stdout: Could not get grains: undefined method `merge' for nil:NilClass
Couldn't retrieve ENC data: Could not send facts to Foreman: exit
2020-09-09 12:29:56,000 [salt.loaded.int.module.cmdmod:860 ][ERROR ][8429] retcode: 1
2020-09-09 12:29:56,000 [salt.loaded.int.module.cmdmod:1218][ERROR ][8429] Command '/usr/bin/foreman-node sphynx.ac-test.fr' failed with return code: 1
2020-09-09 12:29:56,001 [salt.loaded.int.module.cmdmod:1223][ERROR ][8429] output: Could not get grains: undefined method `merge' for nil:NilClass
Couldn't retrieve ENC data: Could not send facts to Foreman: exit
2020-09-09 12:29:56,001 [salt.loaded.int.pillar.puppet:31 ][CRITICAL][8429] YAML data from /usr/bin/foreman-node failed to parse