- 论坛徽章:
- 0
|
本帖最后由 a6447 于 2013-11-07 11:34 编辑
clientA:
/etc/hosts
172.18.21.136 test01.abc.com test01
172.20.0.10 cluster01.abc.com cluster01
172.20.0.13 desktop.abc.com desktop
[root@cluster01 puppet]# hostname
cluster01.abc.com
[root@cluster01 puppet]# /etc/init.d/puppet start
Starting puppet: [ OK ]
serverB:
/etc/hosts
172.18.21.136 test01.abc.com test01
172.20.0.10 cluster01.abc.com cluster01
172.20.0.13 desktop.abc.com desktop
[root@desktop puppet]# hostname
desktop.yihuacomputer.com
[root@desktop puppet]# /etc/init.d/puppetmaster start
Starting puppetmaster: [ OK ]
A和B的时间是一致的
=======================================================
实验步骤:
1、A
[root@cluster01 puppet]# puppet agent --server=desktop.abc.com --no-daemonize --verbose --onetime
info: Creating a new SSL key for cluster01.abc.com
info: Caching certificate for ca
info: Creating a new SSL certificate request for cluster01.abc.com
info: Certificate Request fingerprint (md5): 9D:23 6:8A:EB:6E:B3:3B:1B:BF:6F:9E:16:3C:0F:9C
Exiting; no certificate found and waitforcert is disabled
2、B
[root@desktop puppet]# puppetca -s -a
notice: Signed certificate request for cluster01.abc.com
notice: Removing file Puppet::SSL::CertificateRequest cluster01.abc.com at '/var/lib/puppet/ssl/ca/requests/cluster01.abc.com.pem'
3、A
[root@cluster01 puppet]# puppet agent --server=desktop.abc.com --no-daemonize --verbose --onetime
info: Caching certificate for cluster01.abc.com
info: Caching certificate_revocation_list for ca
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by name with 'cluster01.abc.com, cluster01.abc, cluster01' on node cluster01.abc.com
notice: Using cached catalog
err: Could not retrieve catalog; skipping run
===========================================================
/var/log/message
B、
Nov 6 17:37:50 desktop puppet-master[18151]: desktop.abc.com has a waiting certificate request
Nov 6 17:37:50 desktop puppet-master[18151]: Signed certificate request for desktop.abc.com
Nov 6 17:37:50 desktop puppet-master[18151]: Removing file Puppet::SSL::CertificateRequest desktop.abc.com at '/var/lib/puppet/ssl/ca/requests/desktop.abc.com.pem'
Nov 6 17:37:50 desktop puppet-master[18151]: Removing file Puppet::SSL::CertificateRequest desktop.abc.com at '/var/lib/puppet/ssl/certificate_requests/desktop.abc.com.pem'
Nov 6 17:37:50 desktop puppet-master[18177]: Reopening log files
Nov 6 17:37:50 desktop puppet-master[18177]: Starting Puppet master version 2.6.18
Nov 6 17:38:16 desktop puppet-master[18177]: cluster01.abc.com has a waiting certificate request
Nov 6 17:39:04 desktop puppet-master[18177]: Could not find default node or by name with 'cluster01.abc.com, cluster01.abc, cluster01' on node cluster01.abc.com
Nov 6 17:39:04 desktop puppet-master[18177]: Could not find default node or by name with 'cluster01.abc.com, cluster01.abc, cluster01' on node cluster01.abc.com
Nov 6 17:48:57 desktop puppet-master[18177]: Caught TERM; calling stop
Nov 6 17:49:00 desktop puppet-master[18479]: Reopening log files
Nov 6 17:49:00 desktop puppet-master[18479]: Starting Puppet master version 2.6.18
A、
Nov 6 17:37:56 cluster01 puppet-agent[11692]: Reopening log files
Nov 6 17:37:56 cluster01 puppet-agent[11692]: Could not request certificate: getaddrinfo: Name or service not known
Nov 6 17:38:15 cluster01 puppet-agent[11697]: Caching certificate for ca
Nov 6 17:38:15 cluster01 puppet-agent[11697]: Creating a new SSL certificate request for cluster01.abc.com
Nov 6 17:38:15 cluster01 puppet-agent[11697]: Certificate Request fingerprint (md5): 44:88:2E:63 2:11:8A:C2:C9:6A:FE:C5:EB:AC:2A:C5
Nov 6 17:39:01 cluster01 puppet-agent[11740]: Caching certificate for cluster01.abc.com
Nov 6 17:39:04 cluster01 puppet-agent[11740]: Caching certificate_revocation_list for ca
Nov 6 17:39:04 cluster01 puppet-agent[11740]: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by name with 'cluster01.abc.com, cluster01.abc, cluster01' on node cluster01.abc.com
Nov 6 17:39:04 cluster01 puppet-agent[11740]: Not using cache on failed catalog
Nov 6 17:39:04 cluster01 puppet-agent[11740]: Could not retrieve catalog; skipping run
Nov 6 17:39:56 cluster01 puppet-agent[11692]: Starting Puppet client version 2.6.18
Nov 6 17:39:58 cluster01 puppet-agent[11692]: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
Nov 6 17:39:58 cluster01 puppet-agent[11692]: Using cached catalog
Nov 6 17:39:58 cluster01 puppet-agent[11692]: Could not retrieve catalog; skipping run
Nov 6 17:48:23 cluster01 puppet-agent[11692]: Caught TERM; calling stop
Nov 6 17:48:26 cluster01 puppet-agent[12205]: Reopening log files
Nov 6 17:48:27 cluster01 puppet-agent[12205]: Starting Puppet client version 2.6.18
Nov 6 17:48:29 cluster01 puppet-agent[12205]: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
Nov 6 17:48:29 cluster01 puppet-agent[12205]: Using cached catalog
Nov 6 17:48:29 cluster01 puppet-agent[12205]: Could not retrieve catalog; skipping run
==========================================================================
问题:
1、软件是否算安装和运行成功?
2、为什么第二次注册的时候会出现那么多的报错?
麻烦各位大大看下 |
|