Salt Minion Problems
- 
 Here is the current error on the minion. I'm guessing we have the same issue: [root@minion1 ~]# systemctl status salt-minion ● salt-minion.service - The Salt Minion Loaded: loaded (/usr/lib/systemd/system/salt-minion.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2017-01-31 20:21:59 UTC; 23min ago Main PID: 1228 (salt-minion) CGroup: /system.slice/salt-minion.service ├─1228 /usr/bin/python /usr/bin/salt-minion ├─1237 /usr/bin/python /usr/bin/salt-minion └─1241 /usr/bin/python /usr/bin/salt-minion Jan 31 20:44:27 minion1 salt-minion[1228]: [ERROR ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
- 
 Here are some issues in the /etc/hosts file that will definitely cause things to fail: 192.168.1.97 192.168.1.94 salt 192.128.1.94 salt
- 
 All this because you use another DNS that's not part of the project and it has overlapping details for other testers/production. lol 
- 
 @Dashrender said in Salt Minion Problems: All this because you use another DNS that's not part of the project and it has overlapping details for other testers/production. lol No, you would need this to be correct either way. 
- 
 @scottalanmiller check what does salt have as the minion_id as well, it is in /etc/salt/minion_id 
- 
 Also found the /etc/hosts file had a full double copy of itself in the same file. No idea how that got there. 
- 
 Salt Master will not allow me to delete the keys that are in there. I did a delete all and it said that it was, but it failed. 
- 
 okay. what do i need to do to fix it? sorry for the headache guys 
- 
 well it looks like Scott fixed most of the problems. ( ish ) I just logged on to the server and all the things he pointed out as wrong, arent there anymore 
- 
 @WrCombs said in Salt Minion Problems: okay. what do i need to do to fix it? sorry for the headache guys No idea. 
- 
 @scottalanmiller said in Salt Minion Problems: @Dashrender said in Salt Minion Problems: All this because you use another DNS that's not part of the project and it has overlapping details for other testers/production. lol No, you would need this to be correct either way. I'm sorry - correct what either way? If he had no DNS entry for salt, sure it would fail and he would be told to put entries in /etc/hosts but since there was a working salt server in DNS, things appear to work, but really aren't going where expected... So having an over lapping lab just made the situation harder - ultimately learning more I guess. 
- 
 @WrCombs said in Salt Minion Problems: well it looks like Scott fixed most of the problems. ( ish ) I just logged on to the server and all the things he pointed out as wrong, arent there anymore Don't be - this is learning, sometimes you break things. Sometimes you don't. Scott digging into what you were doing exactly can be helpful in making guides that help future people learn with a little less pain. @scottalanmiller can you pull a log of all of the commands he ran and perhaps find things like how the hosts file was completely doubled? 
- 
 @Dashrender said in Salt Minion Problems: @scottalanmiller said in Salt Minion Problems: @Dashrender said in Salt Minion Problems: All this because you use another DNS that's not part of the project and it has overlapping details for other testers/production. lol No, you would need this to be correct either way. I'm sorry - correct what either way? If he had no DNS entry for salt, sure it would fail and he would be told to put entries in /etc/hosts but since there was a working salt server in DNS, things appear to work, but really aren't going where expected... So having an over lapping lab just made the situation harder - ultimately learning more I guess. No really, it doesn't appear to work any more than if there is no entry at all. 
- 
 @Dashrender said in Salt Minion Problems: @scottalanmiller can you pull a log of all of the commands he ran and perhaps find things like how the hosts file was completely doubled? My guess there is "vi mishap". 
- 
 @scottalanmiller id agree with that, but inly because i thought i was doing one thing. While doing something completely different.. 
- 
 vi is a killer, one wrong key press and anything might happen. 
- 
 @StrongBad said in Salt Minion Problems: vi is a killer, one wrong key press and anything might happen. Which is where i believe i had some problems 
- 
 @WrCombs said in Salt Minion Problems: @StrongBad said in Salt Minion Problems: vi is a killer, one wrong key press and anything might happen. Which is where i believe i had some problems It's so easy, we've all done it. 
- 
 @StrongBad said in Salt Minion Problems: vi is a killer, one wrong key press and anything might happen. Vim is as precise as a scalpel, don't blame it :D. Disclaimer: I'm a vi-lover/addicted. 
- 
 @Francesco-Provino said in Salt Minion Problems: @StrongBad said in Salt Minion Problems: vi is a killer, one wrong key press and anything might happen. Vim is as precise as a scalpel, don't blame it :D. Disclaimer: I'm a vi-lover/addicted. vi doesn't kill files, admins kill files. 




