[BUG] Without use_master_when_local=True minion ignores master parameter
See original GitHub issueIn this config:
file_client: local
master: 1.2.3.4
use_master_when_local: False
minion is tries to connect to 127.0.0.1:
21:19:31 - salt.minion:245 - DEBUG - Master URI: tcp://127.0.0.1:4506
But if I set use_master_when_local: True
minion starts to connect to the master:
21:22:58 - salt.transport.zeromq:258 - DEBUG - Connecting the Minion to the Master URI (for the return server): tcp://1.2.3.4:4506
21:22:58 - salt.transport.zeromq:1300 - DEBUG - Trying to connect to: tcp://1.2.3.4:4506
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Incorrect Parameters (1-48) :: Minion Masters Bug Reporting
ErrorCode: Incorrect Parameters (1-48) - Same thing when I try both Mayhem battle and Mayhem team battle. I have the output log I...
Read more >Feature #18351: Support anonymous rest and keyword rest ...
Anonymous rest and keyword rest arguments were already supported in method parameters, this just allows them to be used as arguments to other...
Read more >This Minion Bug has been in the game for 10+ ... - YouTube
Caenen's Reddit Thread: https://www.reddit.com/r/leagueoflegends/comments/hyr8dn/red_side_cannon_minions_have_20_lower_attack/➤ Send me ...
Read more >Storing Static Data in the Pillar - Salt Project Documentation
Here is an example using the ignore_missing keyword parameter to ignore ... all pillar data from servers pillar is delivered to minions and...
Read more >Bug descriptions — spotbugs 4.7.3 documentation
Consider using the equals(Object) method instead. ES: Comparison of String parameter using == or != (ES_COMPARING_PARAMETER_STRING_WITH_EQ)¶. This code compares ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just ran into this, but in an even worse way that killed my dev server 😦
With this config:
And then I (accidentally) forgot to disable the salt-minion systemd service while using my masterless minion. My
/var/log/salt/minion
file quickly filled up my ~30GB root disk in about 2.5 hours.Repeated ad-infinitum:
~20 million exceptions between
2022-09-20 16:16:36,385
(first log entry) and2022-09-20 18:44:12,741
(last log entry) - about 2.5 hours.This works:
As far as I can figure, I don’t think
master_type: disable
was actually ever tested - at least not thoroughly. The previous lineraise salt.ext.tornado.gen.Return((None, None))
has literally no effect, given that the function is always returned as a coroutine generator, which itself lives inside an infinite loop.I’m looking a little bit more to see what test cases might look like for a PR, but I’m afraid I might have to build out a non-trivial amount of code to test if any Salt daemon should self-exit, given a certain configuration (such as this).
This patch also may not be viable for a scenario such as:
salt-call
with a temporary configuration ofmaster_type: disable
, via a Saltfile for example, (instead of, for some reason, using--local
)