Windows minions return "Minion did not return. [Not connected]" when trying to run a bat file from salt master

175 views
Skip to first unread message

ti...@garena.com

unread,
Oct 6, 2017, 12:36:51 PM10/6/17
to Salt-users
Hello everyone~

This is the first time I post in this forum :D I have a question about salt may need your help to advice.

So I plan to upgrade my windows salt minions version, and because there are quite a few windows minions there, I want to do the installation using salt. 

I managed to put the salt installation packages & install_minion.bat on the salt minions (Directory C:\upgrade_salt_minion), and then I plan to install this bat using salt state function. The command I used on salt master is: salt 'N74' state.sls DeploySaltUpdate. 

However, it seems not working and after waiting for a while it return: 

N74:
    Minion did not return. [Not connected]

Checking on the windows minions itself now, found that salt minion service is stopped and the salt version is not updated. But when I try to run the bat file on my window server itself, it is working well and salt version is updated accordingly. 

I found this is really wired and would like to seek if anyone have any alternative ways to do this. Appreciate the kind help in advance!

Attached is the files I mentioned in case you can spot any errors in them :)

install_minion.bat:
@echo off
C:\upgrade_salt_minion\Salt-Minion-2016.11.7-AMD64-Setup.exe /S /master=XXX /minion-name=N74 /start-service=1
exit
pause
 
DeploySaltUpdate.sls:

deploy:

  cmd.run:

    - name: 'C:\upgrade_salt_minion\install_minions.bat'

Shane Lee

unread,
Oct 9, 2017, 12:48:47 PM10/9/17
to Salt-users
There is a similar issue that was recently filed. Please see my comment...

Reply all
Reply to author
Forward
0 new messages