-
Notifications
You must be signed in to change notification settings - Fork 45
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
Token unknown with good grains in swarm master #22
Comments
It's using salt mine to share tokens and should be working out of the box when using salt-formula-salt to setup salt master and minions. |
Thanks for your help, {%- for node_name, node_grains in salt['mine.get']('*', swarm.mine_function).iteritems() %} |
hello. @JohanMoreau did you manage to track down what it was? I encounter the same issue when deploying to a real environment. it worked ok using salt-ssh deployment on a vagrant env, but everything is off on the real machine. I manually tested the docker installs on both machines and I can connect them but not with salt. |
Hello, no without salt-formula-salt. I know another people with the same
issue. I think if we use salt-formula-salt this error doesn't appear. I
will test it this weekend.
Johan
Le ven. 20 juil. 2018 à 14:41, Denis Rendler <[email protected]> a
écrit :
… hello. @JohanMoreau <https://github.com/JohanMoreau> did you manage to
track down what it was? I encounter the same issue when deploying to a real
environment. it worked ok using salt-ssh deployment on a vagrant env, but
everything is off on the real machine.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAxu0__1j-Q3Aoyc-g9ZecX6wMg_kWC7ks5uIdAOgaJpZM4SUBe_>
.
|
Hello, @JohanMoreau . I managed to make it work after a few days of pain. In my case, I needed to add the grains.items in the salt mine functions on the minion and after quite a few mine.flush, refresh_grains it seems to be working as expected. Salt Version: Dependency Versions: |
We also hit this issue. There is a chicken egg issue here. When you highstate the custom grains are run first but the commands return empty because docker isn't installed yet. Then when the snip..
We are also working on adding secrets and configs into this formula and hope to submit a PR soon. |
Hello,
I try to create a docker swarm. My master seems to be good :
But on my worker, I can't transfert the token :
docker swarm join --token unknown
I try to add mine like :
or
But it doesn't work. Any idea ?
salt 2017.7.4 (Nitrogen)
salt-call 2017.7.4 (Nitrogen)
The text was updated successfully, but these errors were encountered: