Task #2009
closed
top.sls SALT problem on some vms.
Added by Jan Iversen over 8 years ago.
Updated almost 8 years ago.
Target version:
Team - Pool
Description
When applying "salt-call state.apply" We still have:
[WARNING ] Top file merge strategy set to 'merge' and multiple top files found. Top file merging order is undefined; for better results use 'same' option
[WARNING ] State for file: /root/.setup_state/initial - Neither 'source' nor 'contents' nor 'contents_pillar' nor 'contents_grains' was defined, yet 'replace' was set to 'True'. As there is no source to replace the file with, 'replace' has been set to 'False' to avoid reading the file unnecessarily.
Maybe the first one goes away when floyd, is changed, but the report is just to make sure we do not forget to test it.
Who's gonna look into that and how urgent is this?
- Assignee set to Jan Iversen
Seems I forgot to assign myself, It is not urgent, will be done, once floyd is cleaned up (just made the task not to forget it)
- Target version set to Pool
Remark this is observed when using "salt-call" on the client.
Hello Jan, *,
Jan Iversen wrote:
Remark this is observed when using "salt-call" on the client.
as a Salt n00b, I have found out that changing
<quote>
- When using multiple environments, each with their own top file, the
- default behaviour is an unordered merge. To prevent top files from
- being merged together and instead to only use the top file from the
- requested environment, set this value to 'same'.
#top_file_merging_strategy: merge
</quote>
to
<quote>
- When using multiple environments, each with their own top file, the
- default behaviour is an unordered merge. To prevent top files from
- being merged together and instead to only use the top file from the
- requested environment, set this value to 'same'.
top_file_merging_strategy: same
</quote>
in /etc/salt/master should stop this warning (or uncomment "#env_order:...“ one paragraph below,, followed by the order of the environments). As I have no access to our infra stuff, I could not test, if it really works as expected, so ...
HTH
Thomas.
- Status changed from New to Closed
Also available in: Atom
PDF