Ask Your Question
0

puppet agent --test takes forever to run

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

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 ...
(more)
edit retag flag offensive close merge delete

Comments

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 -0500 )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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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 127.0.1.1 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

Stats

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

Seen: 625 times

Last updated: Apr 02 '14