Project

General

Profile

Task #2009

top.sls SALT problem on some vms.

Added by Jan Iversen over 1 year ago. Updated 10 months ago.

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

0%

Estimated time:
Tags:
URL:

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.

History

#1 Updated by Florian Effenberger over 1 year ago

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

#2 Updated by Jan Iversen over 1 year 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)

#3 Updated by Florian Effenberger over 1 year ago

  • Target version set to Pool

#4 Updated by Jan Iversen over 1 year ago

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

#5 Updated by Thomas Hackert about 1 year 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.

#6 Updated by Jan Iversen 10 months ago

  • Status changed from New to Closed

Also available in: Atom PDF