saltstack / saltstack/salt

[BUG] Minion does not run startup_states in local mode until it connects to master

Open
#57,865 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Core severity-low
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

I have the following config (Salt 3001):

file_client: local
startup_states: sls
sls_list:
  - start

When I shutdown salt master start.sls is not executed until the minion is connected to the master.

I think it should execute local startup states regardless of master connection.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported configuration with file_client: local, startup_states: sls, and sls_list containing start while the master is shut down. Trace the minion startup-state path to determine why execution waits for a master connection; done means start.sls runs locally without that connection and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.