Issue #10955 has been updated by Mark Johnston.

I ran into this same problem on my XP box, although the command did eventually 
finish after close to a minute.  I think I've tracked it down to 
puppet/util/suidmanager.rb.  On Windows, suidmanager.rb calls 
Sys::Admin.get_group() like so:

    group = Sys::Admin.get_group("Administrators", :sid => 
Win32::Security::SID::BuiltinAdministrators)

This call takes 30-40 seconds, because I'm on a big AD domain at a remote 
office.  I changed it to say:

    group = Sys::Admin.get_group("Administrators", :sid => 
Win32::Security::SID::BuiltinAdministrators, :domain => Facter.value(:hostname))

This runs a lot quicker (typically 1-5 sec), and I think it's more correct 
anyway - the question is "are we an admin on this machine", not "are we a 
domain admin".  This resolves the apparent hang for me.  I'm curious whether 
Jeff is on a big domain too.
----------------------------------------
Bug #10955: Puppet agent hangs on Windows XP
https://projects.puppetlabs.com/issues/10955#change-55856

Author: Jeff Sussna
Status: Investigating
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Followed the Windows puppet agent install instructions 
(http://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows) very carefully. 
Verified I'm running the correct version of ruby. All install steps completed 
without errors. Did install and am running as local account, not admin.

Any puppet command (i.e., "puppet config print all") hangs. .puppet directory 
was not created. Tried creating it by hand, along with 
.puppet\Puppetlabs\puppet\etc and puppet.conf file. Not sure what needs to go 
in puppet.conf other than server=.

OS is Windows XP SP3.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to