puppet ignores storeconfig_backend in puppet.conf

瀏覽次數:31 次
跳到第一則未讀訊息

Joseph Lorenzini

未讀,
2016年8月25日 下午3:34:042016/8/25
收件者:Puppet Users
Hi all,

I am encountered an odd behavior when i revoke a certificate on the puppet master. I see this error. I am using puppet 3.7.4 on CentOS 7.

Error: undefined method `verify_active_connections!' for ActiveRecord::Base:Class

This leads me to think that when a revocation is happening, the storeconfig_backend is set to activerecord. However, i have specifically configured /etc/puppet/puppet.conf to use puppetdb. Here's the master section in /etc/puppet.conf

[master]
    ssl_client_header = SSL_CLIENT_S_DN
    ssl_client_verify_header = SSL_CLIENT_VERIFY

    storeconfigs = true
    storeconfigs_backend = puppetdb
  #  reports = puppetdb,tagmail
    reports = puppetdb
    pluginsync=true


Does anyone know what might  be going on here?

Thanks,
Joe 

Martin Alfke

未讀,
2016年8月26日 凌晨2:59:482016/8/26
收件者:puppet...@googlegroups.com
Hi Joe,
Have you restarted the Puppet Server (or Master) process after doing the changes?

Best,
Martin

Joseph Lorenzini

未讀,
2016年8月26日 清晨7:52:292016/8/26
收件者:puppet...@googlegroups.com
Hi Martin,

Yes I did several times. Here's what I find interesting. Puppetdb is fully functional and working for actually storing configs and retrieving data from the rest Api. In addition, if I downgrade the activesupport gem from 4.2.7 to 3.2, then the exception is no longer thrown when I revoke a certificate.

So I think everything seems fine and leads me to think that puppet may use activesupport for other internals and I just hit gem versioning issuing. I suspect I wouldn't be able to reproduce this problem on the latest version of puppet.

Joe 

--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/n07zT_F7RZo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/244798A7-6A39-4AED-92D5-A8C26FC65C59%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
回覆所有人
回覆作者
轉寄
0 則新訊息