微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

centos – Puppet代理偶尔会失败,有超时或“找不到类”错误

我有一个在Xen dom0上运行的木偶大师,并且有3个domUs通过每小时的crontab木偶代理–test同步.

大约80%的时间,木偶代理 – 测试成功完成:

info: Retrieving plugin
info: Caching catalog for test3
info: Applying configuration version '1333319732'
notice: Finished catalog run in 5.08 seconds

另外20%的时间,它在中途失败,出现以下错误

err: Could not retrieve catalog from Remote Server: Error 400 on SERVER:
     Could not find class iptables for test1 at /etc/puppet/manifests/site.pp:1 on node test1
warning: Not using cache on Failed catalog
err: Could not retrieve catalog; skipping run

要么

info: Retrieving plugin
info: Caching catalog for test2
info: Applying configuration version '1333319732'
notice: Finished catalog run in 24.73 seconds
err: Could not send report: Error 500 on SERVER: 

Internal Server Error

private method `gsub' called for WEBrick::HTTPStatus::RequestTimeout:Class

 WEBrick/1.3.1 (Ruby/1.8.5/2006-08-25) OpenSSL/0.9.8e-rhel5 at
 puppet:8140

要么

info: Retrieving plugin
err: Could not retrieve catalog from Remote Server: execution expired
warning: Not using cache on Failed catalog
err: Could not retrieve catalog; skipping run

要么

info: Retrieving plugin
info: Caching catalog for test3
info: Applying configuration version '1333319732'
notice: Finished catalog run in 9.47 seconds
err: Could not send report: Error 408 on SERVER: Request Timeout

在此期间,我没有对Puppet配置进行任何更改 – 它只是偶尔会失败.

我在CentOS上运行puppet-2.7.12,并按照http://docs.puppetlabs.com/learning/agent_master_basic.html中描述的设置说明进行操作.

关于我如何解决这个问题的任何想法?

几个星期前,我将运行puppet master的虚拟机的内存分配增加了几百兆,从那时起就没有任何失败.

(这是表示记忆力不足的奇怪方式……)

原文地址:https://www.jb51.cc/centos/373424.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。