Ask Your Question

puppet agent --test takes forever to run

asked 2014-03-31 08:46:51 -0600

Adam Ryczkowski gravatar image

I had to reinstall puppetmaster, and come to a wall of various problem. After 2 days of work I am still faced with ridiculous run time of puppet agent.

When I run it with --debug switch it gets stuck (the wait time in order of minutes) on:

sudo puppet agent --test --debug

Debug: Failed to load library 'selinux' for feature 'selinux'
Debug: Using settings: adding file resource 'confdir': 'File[/etc/puppet]{:path=>"/etc/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist
Debug: Puppet::Type::User::ProviderPw: file ...
edit retag flag offensive close merge delete


Didn't read the full log, tl;dr: Just suggestions, do you have a working DNS? Do you have a working NTP and clocks synchronized between your machines?

frederik gravatar imagefrederik ( 2014-04-01 21:22:37 -0600 )edit

@frederik Thank you for your answer. The things healed themselves after reboot. My clue is just the same as yours it might well be a problem with DNS.

Adam Ryczkowski gravatar imageAdam Ryczkowski ( 2014-04-02 04:42:06 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-04-02 04:44:27 -0600

Adam Ryczkowski gravatar image

The problem disappeared after reboot, but I strongly suspect problems with my DNS configuration.

Specifically, if there is no dedicated NS service, it is important to make sure, that

  • /etc/hostname is specified with fqdn and
  • this entry is copied to the on the /etc/hosts
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-03-31 08:46:51 -0600

Seen: 1,000 times

Last updated: Apr 02 '14