[Puppet - Bug #2996] (Unreviewed) Puppetmaster not working with symlinks for puppet data directory

5 views
Skip to first unread message

red...@reductivelabs.com

unread,
Dec 30, 2009, 12:29:23 PM12/30/09
to ja...@lovedthanlost.net, r...@devco.net, lusis.or...@gmail.com, puppe...@googlegroups.com
Issue #2996 has been reported by John Vincent.

Bug #2996: Puppetmaster not working with symlinks for puppet data directory

  • Author: John Vincent
  • Status: Unreviewed
  • Priority: High
  • Assigned to:
  • Category:
  • Target version:
  • Affected version: 0.25.1
  • Keywords:
  • Branch:

This may be similar to the bug that caused puppetmasterd to get deleted on shutdown via CentOS/Redhat init script.

I decided to create a new LV to store my puppet stuff. This is a whole new project for me so I wanted to think ahead. Once I got the basics working, I shutdown puppetmaster, created the new LV, mounted it on /puppet and then moved the files from /var/lib/puppet to /puppet. I rm'd /var/lib/puppet and create a symlink to /puppet. I started puppetmaster back up and was greeted with a nasty error about CA certificate headers being too long. I wasn't able to find anything that seemed to match the problem exactly.

In the process of verifying permissions and troubleshooting, I realized that /var/lib/puppet was no longer a symlink but instead a new directory with all new files. My original files were still intact in /puppet so I went through the process again. Sure enough, symlink removed and directory recreated. In the end I simply changed the puppet.conf to point to /puppet.


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://reductivelabs.com/redmine/my/account

red...@reductivelabs.com

unread,
Dec 30, 2009, 12:30:17 PM12/30/09
to ja...@lovedthanlost.net, r...@devco.net, lusis.or...@gmail.com, puppe...@googlegroups.com
Issue #2996 has been updated by John Vincent.

Puppetmaster startup:

[root@peer1-chef lib]# /etc/init.d/puppetmaster start
Starting puppetmaster: /usr/lib/ruby/site_ruby/1.8/puppet/ssl/base.rb:42:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/base.rb:42:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/base.rb:42:in `read'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/ssl_file.rb:86:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:213:in `find_in_cache'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:189:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:51:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:175:in `certificate'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:241:in `setup'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:154:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:31:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:31:in `init_singleton_instance'
/usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `cached_value'
/usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:46:in `singleton_instance'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:45:in `instance'
/usr/lib/ruby/site_ruby/1.8/puppet/application/puppetmasterd.rb:163:in `run_setup'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:216:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:216:in `run'
/usr/sbin/puppetmasterd:66
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/base.rb:42:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/base.rb:42:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/base.rb:42:in `read'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/ssl_file.rb:86:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:213:in `find_in_cache'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:189:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:51:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:104:in `crl'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:144:in `generate_ca_certificate'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:241:in `setup'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:154:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:31:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:31:in `init_singleton_instance'
/usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:106:in `cached_value'
/usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:46:in `singleton_instance'
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:45:in `instance'
/usr/lib/ruby/site_ruby/1.8/puppet/application/puppetmasterd.rb:163:in `run_setup'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:216:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:216:in `run'
/usr/sbin/puppetmasterd:66
/usr/lib/ruby/site_ruby/1.8/puppet/ssl/key.rb:46:in `initialize': Neither PUB key nor PRIV key:: header too long (OpenSSL::PKey::RSAError)
    from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/key.rb:46:in `new'
    from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/key.rb:46:in `read'
    from /usr/lib/ruby/site_ruby/1.8/puppet/indirector/ssl_file.rb:86:in `find'
    from /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:198:in `find'
    from /usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:51:in `find'
    from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:130:in `key'
    from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:170:in `certificate'
    from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:27:in `init_localhost'
     ... 6 levels...
    from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
    from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
    from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
    from /usr/sbin/puppetmasterd:66
                                                           [FAILED]

red...@reductivelabs.com

unread,
Dec 30, 2009, 12:32:44 PM12/30/09
to ja...@lovedthanlost.net, r...@devco.net, lusis.or...@gmail.com, puppe...@googlegroups.com
Issue #2996 has been updated by John Vincent.
  • File puppetmaster.log added

puppetmaster log. I can see where it is intentionally removing the symlink.

red...@reductivelabs.com

unread,
Dec 30, 2009, 12:37:24 PM12/30/09
to ja...@lovedthanlost.net, r...@devco.net, lusis.or...@gmail.com, puppe...@googlegroups.com
Issue #2996 has been updated by John Vincent.
  • Category set to Red Hat
  • Author: John Vincent
  • Status: Unreviewed
  • Priority: High
  • Assigned to:
  • Category: Red Hat
  • Target version:
  • Affected version: 0.25.1
  • Keywords:
  • Branch:

red...@reductivelabs.com

unread,
Dec 30, 2009, 12:53:10 PM12/30/09
to ja...@lovedthanlost.net, r...@devco.net, lusis.or...@gmail.com, puppe...@googlegroups.com
Issue #2996 has been updated by Peter Meier.
  • Priority changed from High to Normal

I think this is duplicated to the bug that puppet manages its own files, hence overwrites the symlink, which I currently can't find. If somebody agrees and/or find the bug, please close this report.

  • Author: John Vincent
  • Status: Unreviewed
  • Priority: Normal
  • Assigned to:
  • Category: Red Hat
  • Target version:
  • Affected version: 0.25.1
  • Keywords:
  • Branch:

red...@reductivelabs.com

unread,
Dec 30, 2009, 1:09:25 PM12/30/09
to ja...@lovedthanlost.net, r...@devco.net, lusis.or...@gmail.com, puppe...@googlegroups.com
Issue #2996 has been updated by John Vincent.

Yeah I attempted to search for an existing bug but my search-fu wasn't strong enough to suss out a specific match for the issue.

  • Author: John Vincent
  • Status: Unreviewed
  • Priority: Normal
  • Assigned to:
  • Category: Red Hat
  • Target version:
  • Affected version: 0.25.1
  • Keywords:
  • Branch:

red...@reductivelabs.com

unread,
Dec 30, 2009, 7:02:31 PM12/30/09
to ja...@lovedthanlost.net, r...@devco.net, lusis.or...@gmail.com, puppe...@googlegroups.com
Issue #2996 has been updated by Markus Roberts.
  • Status changed from Unreviewed to Investigating
  • Target version set to Puppet - 0.25.3
  • Author: John Vincent
  • Status: Investigating
  • Priority: Normal
  • Assigned to:
  • Category: Red Hat
  • Target version: 0.25.3
  • Affected version: 0.25.1
  • Keywords:
  • Branch:

red...@reductivelabs.com

unread,
Dec 31, 2009, 6:30:44 PM12/31/09
to ja...@lovedthanlost.net, r...@devco.net, lusis.or...@gmail.com, puppe...@googlegroups.com
Issue #2996 has been updated by Thomas Bellman.

That would be feature #2827, which is implemented in 0.25.2.

  • Author: John Vincent
  • Status: Investigating
  • Priority: Normal
  • Assigned to:
  • Category: Red Hat
  • Target version: 0.25.3
  • Affected version: 0.25.1
  • Keywords:
  • Branch:

red...@reductivelabs.com

unread,
Jan 4, 2010, 3:10:10 PM1/4/10
to ja...@lovedthanlost.net, r...@devco.net, lusis.or...@gmail.com, puppe...@googlegroups.com
Issue #2996 has been updated by Luke Kanies.
  • Status changed from Investigating to Duplicate

#2827 provides a workaround, but #650 is the real bug.

  • Author: John Vincent
  • Status: Duplicate
  • Priority: Normal
  • Assigned to:
  • Category: Red Hat
  • Target version: 0.25.3
  • Affected version: 0.25.1
  • Keywords:
  • Branch:

red...@reductivelabs.com

unread,
Jan 8, 2010, 2:07:24 AM1/8/10
to ja...@lovedthanlost.net, r...@devco.net, lusis.or...@gmail.com, puppe...@googlegroups.com
Issue #2996 has been updated by James Turnbull.
  • Target version deleted (Puppet - 0.25.3)
  • Author: John Vincent
  • Status: Duplicate
  • Priority: Normal
  • Assigned to:
  • Category: Red Hat
  • Target version:
  • Affected version: 0.25.1
  • Keywords:
  • Branch:
Reply all
Reply to author
Forward
0 new messages