New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
salt-call falsely reports a master as down if it does not have PKI directories created #40948
Comments
I'm not sure why the /etc/salt/pki directory was not created for you. Are the packages available via brew the same mac packages from repo.saltstack.com? Did you remove the directory after authenticating to the master for some reason? Speaking to the error looks like @terminalmage provided a PR in #40961 if you want to give that a try. |
I could never reproduce this, and I've had a PR open for almost 2 months now. @ScoreUnder can you try the fix in that PR? |
When you say you can't reproduce this, do you mean the |
Sorry for the delay. So, I was finally able to reproduce, but to do so I had to never have started the When you say "Drop in the minion configs for communicating with the masters", what exactly do you mean? With
Using the second option will let you use |
The minion configs only contained the hostnames of the masters to communicate with. It looks like I might have to go for option 1. Usually we would run |
Running into the same issue in docker. Out of the box it works for It DOESN'T work for debian 8 or 9. and its reproducible, each time it does not generate the pki folder. dockerfiles here: Debian 9
Debian 8
|
Just a silly hunch, but could it be a missed dependency? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Description of Issue/Question
After the setup described in the setup section,
salt-call
will give the following output:IPs/hosts scrubbed. Note that while I have not included the next few lines of log, the next master it tries fails in exactly the same way.
In
salt/minion.py
, adding these lines:Causes the real error to appear:
This is a bug in two parts:
salt-call
is not creating the requisite directory structure (though it will happily generate the keys and save them once the directories exist)I would argue that the error message is the more important part of the bug, because with a correct error message, a sufficiently literate operator can solve the problem by themselves.
Setup
/etc/salt/pki
directory does not exist (it was not automatically created for me)Steps to Reproduce Issue
salt-call test.ping -l trace
Versions Report
The text was updated successfully, but these errors were encountered: