Bug #17349
openexecute states salt after create new host
Description
Hello,
I select a state salt in a hostgroup and start create a new host (installation with pxe). The state is never automatically executed and I see these errors in salt log:
2016-11-15 16:19:43,874 [salt.loaded.int.module.cmdmod][ERROR ]21032 Command '/usr/bin/foreman-node salt-test01' failed with return code: 1
2016-11-15 16:19:43,875 [salt.loaded.int.module.cmdmod][ERROR ]21032 output: Couldn't retrieve ENC data: execution expired
2016-11-15 16:19:43,878 [salt.loaded.int.pillar.puppet][CRITICAL]21032 YAML data from /usr/bin/foreman-node failed to parse
However, when I click on the 'Run Salt' button, it work's.
Thanks for your help,
Updated by Dominic Cleal about 8 years ago
- Project changed from Foreman to Salt
"execution expired" indicates a timeout, you may find more information in logs - particularly Foreman's if something like a grains (facts) import is taking a long time.
Updated by Sam Amara about 8 years ago
these logs are repeated many times before import facts:
2016-11-15 16:18:37 8fc94e80 [app] [I] [[1;32mDeface: [WARNING][[0m No :original defined for 'add_salt_environment_to_host', you should change its definition to include:
| :original => '74d57f935e5361ae992107a6668503669e42d4fb'
2016-11-15 16:18:37 8fc94e80 [app] [I] [[1;32mDeface: [WARNING][[0m No :original defined for 'add_salt_modules_tab_to_host', you should change its definition to include:
| :original => 'f234dfccee67a10906661b649c8cf0ee976e3c58'
2016-11-15 16:18:37 8fc94e80 [app] [I] [[1;32mDeface: [WARNING][[0m No :original defined for 'add_salt_modules_tab_pane_to_host', you should change its definition to include:
| :original => '09291eb6aa1da563e5cf9560f87c647036318438'
2016-11-15 16:18:37 8fc94e80 [app] [I] [[1;32mDeface: [WARNING][[0m No :original defined for 'add_salt_proxy_to_host', you should change its definition to include:
| :original => '09291eb6aa1da563e5cf9560f87c647036318438'
.
.
.
.
2016-11-15 16:19:39 6bdcf16a [app] [I] Import facts for 'sama-li11v.revops.local' completed. Added: 201, Updated: 0, Deleted 0 facts
Should I increase a timeout in foreman setting ?
:timeout: 60
Thanks
Updated by Sam Amara about 8 years ago
I try again to create new host and this time I see an another logs:
2016-11-15 17:36:22,869 [salt.loaded.int.module.cmdmod][ERROR ]12866 Command '/usr/bin/foreman-node sama-li12v.revops.local' failed with return code: 1
2016-11-15 17:36:22,871 [salt.loaded.int.module.cmdmod][ERROR ]12866 output: Could not get grains: undefined method `merge' for nil:NilClass
2016-11-15 17:36:22,875 [salt.loaded.int.pillar.puppet][CRITICAL]12866 YAML data from /usr/bin/foreman-node failed to parse