Chinaunix

标题: puppet配置环境的问题 [打印本页]

作者: 战魔312    时间: 2014-10-13 14:47
标题: puppet配置环境的问题
[root@agent ~]# puppet agent --test --noop --environment testing
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Connection timed out - connect(2)
Info: Retrieving pluginfacts
Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': Connection timed out - connect(2)
Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/pluginfacts: Connection timed out - connect(2)
Wrapped exception:
Connection timed out - connect(2)
Info: Retrieving plugin
Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/plugins: Connection timed out - connect(2)
Wrapped exception:
Connection timed out - connect(2)
Error: Could not retrieve catalog from remote server: Connection timed out - connect(2)
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: Connection timed out - connect(2)


请大拿看看,这个是什么原因造成的,我是按照puppet实例这这本书配置的,客户端运行后报错,帮忙看下啊,谢谢!!
作者: rdcwayx    时间: 2014-10-16 09:20
本帖最后由 rdcwayx 于 2014-10-16 09:22 编辑

给我些信息:
1. 你装的是puppet open source 还是 puppet Enterprice (PE ),以及版本号。
2. puppet config print 的命令输出
3. 还有,你的puppet master 和agent是装在一台服务器上的吗? /etc/hosts 的ip地址 和对应的hostname都配好了吗?互相之间的联通有问题吗?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2