windows minion install

265 views
Skip to first unread message

twalker

unread,
Apr 5, 2012, 5:06:24 PM4/5/12
to salt-...@googlegroups.com
Is the visual studio express actually needed for a minion install on a Windows machine?

It seems that an IDE would have any added components that would allow it to function

David Boucha

unread,
Apr 5, 2012, 7:23:50 PM4/5/12
to salt-...@googlegroups.com


On Apr 5, 2012 3:06 PM, "twalker" <twa...@heartflow.com> wrote:
>
> Is the visual studio express actually needed for a minion install on a Windows machine?
>
> It seems that an IDE would have any added components that would allow it to function

You can definitely uninstall visual studio after the install.

I'm working on an easier way to do the install. I've been out of town for a couple weeks and will be finishing it soon

Dave Boucha

twalker

unread,
Apr 6, 2012, 4:59:38 PM4/6/12
to salt-...@googlegroups.com
Thanks for the reply ... I did see that msgpack needed a compiler 

BTW - I did get this working on a Windows 7 x64 machine 
 ... just use 32-bit packages when given a choice
 ... and always open your command prompts with 'Run as Administrator'

I am not sure if it will have any life for me after this prototype, but it was an interesting journey

Utah_Dave

unread,
Apr 8, 2012, 9:02:20 PM4/8/12
to salt-...@googlegroups.com
I don't quite have the Salt Minion working yet, but I did get a msgpack installer to build. This
should remove the need to have Visual Studio installed.

I committed it to our salt windows install repository here:  https://github.com/saltstack/salt-windows-install

Could you give that a try and let me know how it works for you? 

Thanks!

Dave Boucha

P.S.   Also do you have any suggestions or ideas for Windows support? 

twalker

unread,
Apr 9, 2012, 11:50:19 AM4/9/12
to Salt-users
Yeah,

I will check it out

I can't really think of any suggestions except streamlining the
install process.

Perhaps add some "windowsy" stuff like Win32 / WMI stuff (I have
'some' python methods for this stuff, since we run a windows inventory
on some of our workstations here, which is why I started down this
path)

Perhaps, a native Win32 service for the salt minion, but I am not sure
how that even works in the windows/python realm.

On Apr 8, 6:02 pm, Utah_Dave <bou...@gmail.com> wrote:
> On Friday, April 6, 2012 2:59:38 PM UTC-6, twalker wrote:
>
> > Thanks for the reply ... I did see that msgpack needed a compiler
>
> > BTW - I did get this working on a Windows 7 x64 machine
> >  ... just use 32-bit packages when given a choice
> >  ... and always open your command prompts with 'Run as Administrator'
>
> > I am not sure if it will have any life for me after this prototype, but it
> > was an interesting journey
>
> > On Thursday, April 5, 2012 2:06:24 PM UTC-7, twalker wrote:
>
> >> Is the visual studio express actually needed for a minion install on a
> >> Windows machine?
>
> >> It seems that an IDE would have any added components that would allow it
> >> to function
>
> I don't quite have the Salt Minion working yet, but I did get a msgpack
> installer to build. This
> should remove the need to have Visual Studio installed.
>
> I committed it to our salt windows install repository here:  https://github.com/saltstack/salt-windows-installhttps://github.com/saltstack/salt-windows-install/blob/master/deps/wi...

David Boucha

unread,
Apr 9, 2012, 12:35:05 PM4/9/12
to salt-...@googlegroups.com


On Apr 9, 2012 9:50 AM, "twalker" <twa...@heartflow.com> wrote:
>
> Yeah,
>
> I will check it out
>
> I can't really think of any suggestions except streamlining the
> install process.
>
> Perhaps add some "windowsy" stuff like Win32 / WMI stuff (I have
> 'some' python methods for this stuff, since we run a windows inventory
> on some of our workstations here, which is why I started down this
> path)
>
> Perhaps, a native Win32 service for the salt minion, but I am not sure
> how that even works in the windows/python realm.
>

Win32 service already works.

python c:\python27\Scripts\salt-minion -d

Note the "-d".
That will install and start the salt-minion service

I'm hoping to have an easier windows released later this week

twalker

unread,
Apr 9, 2012, 1:27:13 PM4/9/12
to Salt-users
The msgpack installer worked great

When I did the salt-minion -d I was unable to get any response from
the salt master (i.e. grains.items)

However, when I did the salt-minion command without the -d, I was able
to get a response from the master (grains.items)

When trying to start the Salt Minion service on my Win7(x64) machine,
I get a "Windows could not start the service on the Local Computer"

The Application Event Log provided the following event/event detail
- <EventData>
<Data>Traceback (most recent call last): File "C:\Python27\lib\site-
packages\salt\utils\saltminionservice.py", line 6, in <module> import
salt File "C:\Python27\lib\site-packages\salt\__init__.py", line 14,
in <module> import salt.config File "C:\Python27\lib\site-packages\salt
\config.py", line 14, in <module> import yaml File "C:\Python27\lib
\site-packages\salt\utils\yaml.py", line 6, in <module> from
yaml.nodes import MappingNode ImportError: No module named nodes</
Data>
</EventData>

On Apr 9, 9:35 am, David Boucha <bou...@gmail.com> wrote:

David Boucha

unread,
Apr 9, 2012, 5:00:22 PM4/9/12
to salt-...@googlegroups.com
On Mon, Apr 9, 2012 at 11:27 AM, twalker <twa...@heartflow.com> wrote:
> The msgpack installer worked great

Great! Thanks for testing that.

>
> When I did the salt-minion -d I was unable to get any response from
> the salt master (i.e. grains.items)
>
> However, when I did the salt-minion command without the -d, I was able
> to get a response from the master (grains.items)
>
> When trying to start the Salt Minion service on my Win7(x64) machine,
> I get a "Windows could not start the service on the Local Computer"
>
> The Application Event Log provided the following event/event detail
> - <EventData>
>  <Data>Traceback (most recent call last): File "C:\Python27\lib\site-
> packages\salt\utils\saltminionservice.py", line 6, in <module> import
> salt File "C:\Python27\lib\site-packages\salt\__init__.py", line 14,
> in <module> import salt.config File "C:\Python27\lib\site-packages\salt
> \config.py", line 14, in <module> import yaml File "C:\Python27\lib
> \site-packages\salt\utils\yaml.py", line 6, in <module> from
> yaml.nodes import MappingNode ImportError: No module named nodes</
> Data>
>  </EventData>

Hmm. Thanks for that traceback. I can confirm that it's not creating
the service
on Windows7 64 bit for me either. I think your traceback will be helpful.

Tom, any ideas there?

Thomas S Hatch

unread,
Apr 9, 2012, 5:07:33 PM4/9/12
to salt-...@googlegroups.com
Hmm, does the yaml lib differ on windows? That would be awkward...
can you make sure the python laml libs are installed and maybe try to import yaml.nodes from the python shell?

David Boucha

unread,
Apr 9, 2012, 5:14:24 PM4/9/12
to salt-...@googlegroups.com
>> Hmm. Thanks for that traceback.  I can confirm that it's not creating
>> the service
>> on Windows7 64 bit for me either. I think your traceback will be helpful.
>>
>> Tom, any ideas there?
>
>
> Hmm, does the yaml lib differ on windows? That would be awkward...
> can you make sure the python laml libs are installed and maybe try to import
> yaml.nodes from the python shell?

import yaml.nodes works fine.

it's a path issue again, of course.

I'm still digging. I'm not sure why this is working fine in WinXP

Jeff Schroeder

unread,
Apr 9, 2012, 5:15:54 PM4/9/12
to salt-...@googlegroups.com

I've got an idea of what this is. Hop on IRC and I'll troubleshoot
with you for a few.

--
Jeff Schroeder

Don't drink and derive, alcohol and analysis don't mix.
http://www.digitalprognosis.com

Utah_Dave

unread,
Apr 11, 2012, 12:55:25 AM4/11/12
to salt-...@googlegroups.com
On Monday, April 9, 2012 11:27:13 AM UTC-6, twalker wrote:
The msgpack installer worked great

When I did the salt-minion -d I was unable to get any response from
the salt master (i.e. grains.items)

However, when I did the salt-minion command without the -d, I was able
to get a response from the master (grains.items)

When trying to start the Salt Minion service on my Win7(x64) machine,
I get a "Windows could not start the service on the Local Computer"

The Application Event Log provided the following event/event detail
- <EventData>
  <Data>Traceback (most recent call last): File "C:\Python27\lib\site-
packages\salt\utils\saltminionservice.py", line 6, in <module> import
salt File "C:\Python27\lib\site-packages\salt\__init__.py", line 14,
in <module> import salt.config File "C:\Python27\lib\site-packages\salt
\config.py", line 14, in <module> import yaml File "C:\Python27\lib
\site-packages\salt\utils\yaml.py", line 6, in <module> from
yaml.nodes import MappingNode ImportError: No module named nodes</
Data>
  </EventData>

OK, I got the service to run correctly on Windows 7 64 bit.

python \Python27\Scripts\salt-minion -c "c:\etc\salt\minion" -d 

I forgot that you have to specify the path to the minion config when you install the service.

This successfully installed and started the windows service.

twalker

unread,
Apr 11, 2012, 11:43:19 AM4/11/12
to salt-...@googlegroups.com
Still a "no-go" for me

I see the service in the services.msc (set to automatic), but it is not started.

When I try to start it from the msc, the app event log shows an event :

"The Salt Minion service terminated with service-specific error Incorrect function.."

Since I had already tried the salt-minion -d without the config file, will the re-issue of the command salt-minion -d with the config file actually re-install the service correctly?

Do I need to re-install/re-initialize something else?
Reply all
Reply to author
Forward
0 new messages