You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the build of a fresh salt master, gitfs backed pillars do not populate data until after the salt master has started and is serving traffic. During this time empty pillar data is sent out until pillar data is populated on disk. Pillars from external systems work as intended during this time.
At a minimum an intended behavior of blocking startup until all salt components are started should be a tunable option. This is a change in behavior since 2019.2.3.
Remove gitfs data from local machine:
rm -rf /var/cache/salt/master/git_pillar/*
Start salt master systemctl start salt-master
Get pillar data:
# salt-run pillar.show_pillar --output json [0/930]
[ERROR ] Failed to checkout master from git_pillar remote 'master [email protected]:our-repo.git': remote ref does not exist
{}
Wait for this to appear in the logs, 20200407173007685862 fails but 20200407173019115563 passes:
[DEBUG ] Gathering reactors for tag salt/run/20200407173007685862/new
[DEBUG ] Gathering reactors for tag salt/run/20200407173007685862/ret
[DEBUG ] git_pillar received 12483 objects for remote 'master [email protected]:our-repo'
[DEBUG ] Removed update lock for git_pillar remote 'master [email protected]:our-repo'
[DEBUG ] Gathering reactors for tag salt/run/20200407173019115563/new
[DEBUG ] Gathering reactors for tag salt/run/20200407173019115563/ret
Once the git_pillar remote has ran once after the salt master has started everything is ready to go. Run the following command again:
Description of Issue
On the build of a fresh salt master, gitfs backed pillars do not populate data until after the salt master has started and is serving traffic. During this time empty pillar data is sent out until pillar data is populated on disk. Pillars from external systems work as intended during this time.
At a minimum an intended behavior of blocking startup until all salt components are started should be a tunable option. This is a change in behavior since 2019.2.3.
Setup
Steps to Reproduce Issue
systemctl stop salt-master
rm -rf /var/cache/salt/master/git_pillar/*
systemctl start salt-master
Versions Report
The text was updated successfully, but these errors were encountered: