Project

General

Profile

Actions

Task #2009

closed

top.sls SALT problem on some vms.

Added by Jan Iversen over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Team - Pool
Start date:
Due date:
% Done:

0%

Tags:

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.

Actions #1

Updated by Florian Effenberger over 7 years ago

Who's gonna look into that and how urgent is this?

Actions #2

Updated by Jan Iversen over 7 years ago

  • 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)

Actions #3

Updated by Florian Effenberger over 7 years ago

  • Target version set to Pool
Actions #4

Updated by Jan Iversen over 7 years ago

Remark this is observed when using "salt-call" on the client.

Actions #5

Updated by Thomas Hackert over 7 years ago

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>
  1. When using multiple environments, each with their own top file, the
  2. default behaviour is an unordered merge. To prevent top files from
  3. being merged together and instead to only use the top file from the
  4. requested environment, set this value to 'same'.
    #top_file_merging_strategy: merge
    </quote>

to

<quote>
  1. When using multiple environments, each with their own top file, the
  2. default behaviour is an unordered merge. To prevent top files from
  3. being merged together and instead to only use the top file from the
  4. 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.

Actions #6

Updated by Jan Iversen about 7 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF