puppet kick 报错返回值code3 求解答(finished with exit code 3)
环境:puppetserver端RHEL5.8或者RHEL6.4
# cat /etc/redhat-release
Red Hat Enterprise Linux Server> puppetagent端RHEL5.8 和RHEL6.4
# cat /etc/redhat-release
Red Hat Enterprise Linux Server> # cat /etc/redhat-release
Red Hat Enterprise Linux Server> #
#
故障:
puppetserver推送到RHEL6.4上OK,推送到RHEL5.8上报错,具体如下
关于agent端配置参考我的博客 http://dreamfire.blog.51cto.com/418026/1257718
操作:
#
# puppet kick -p 10 --host agent2.bsgchina.com失败
Triggering agent2.bsgchina.com
Getting status
status is running
Host agent2.bsgchina.com is already running
agent2.bsgchina.com finished with exit code 3
Failed: agent2.bsgchina.com
# puppet kick -p 10 --host agent3.bsgchina.com成功
Triggering agent3.bsgchina.com
Getting status
status is success
agent3.bsgchina.com finished with exit code 0
Finished
日志:
# puppet agent --server=puppetserver1.bsgchina.com --verbose --no-daemonize
notice: Starting Puppet client version 2.7.21
info: Caching catalog for agent3.bsgchina.com
info: Applying configuration version '1377075268'
notice: Finished catalog run in 0.37 seconds
info: access[^/catalog/([^/]+)$]: allowing 'method' find
info: access[^/catalog/([^/]+)$]: allowing $1 access
info: access[^/node/([^/]+)$]: allowing 'method' find
info: access[^/node/([^/]+)$]: allowing $1 access
info: access: allowing 'method' find
info: access: allowing * access
info: access[^/report/([^/]+)$]: allowing 'method' save
info: access[^/report/([^/]+)$]: allowing $1 access
info: access: allowing * access
info: access: adding authentication any
info: access: allowing 'method' find
info: access: allowing * access
info: access: adding authentication any
info: access: allowing 'method' find
info: access: allowing * access
info: access: adding authentication any
info: access: allowing 'method' find
info: access: allowing 'method' save
info: access: allowing * access
info: access: allowing 'method' save
info: access: allowing * access
info: access[/]: adding authentication any
info: Inserting default '/status' (auth true) ACL because none were found in '/etc/puppet/auth.conf'
notice: triggered run
info: Caching catalog for agent3.bsgchina.com
info: Applying configuration version '1377075268'
notice: Finished catalog run in 0.37 seconds
notice: triggered run
info: Caching catalog for agent3.bsgchina.com
info: Applying configuration version '1377076924'
info: FileBucket adding {md5}7cf100594d8ae6a01579e438a46420fa
info: /File: Filebucketed /etc/motd to puppet with sum 7cf100594d8ae6a01579e438a46420fa
notice: /File/content: content changed '{md5}7cf100594d8ae6a01579e438a46420fa' to '{md5}2c63eed05992c19d860406fb538b029c'
notice: Finished catalog run in 0.57 seconds
notice: triggered run
info: Caching catalog for agent3.bsgchina.com
info: Applying configuration version '1377076924'
notice: Finished catalog run in 0.49 seconds
info: Caching catalog for agent3.bsgchina.com
info: Applying configuration version '1377076924'
notice: Finished catalog run in 0.40 seconds
^Cnotice: Caught INT; calling stop
# puppet agent --server=puppetserver1.bsgchina.com --verbose --no-daemonize
notice: Starting Puppet client version 2.7.21
info: access[^/catalog/([^/]+)$]: allowing 'method' find
info: access[^/catalog/([^/]+)$]: allowing $1 access
info: access[^/node/([^/]+)$]: allowing 'method' find
info: access[^/node/([^/]+)$]: allowing $1 access
info: access: allowing 'method' find
info: access: allowing * access
info: access[^/report/([^/]+)$]: allowing 'method' save
info: access[^/report/([^/]+)$]: allowing $1 access
info: access: allowing * access
info: access: adding authentication any
info: access: allowing 'method' find
info: access: allowing * access
info: access: adding authentication any
info: access: allowing 'method' find
info: access: allowing * access
info: access: adding authentication any
info: access: allowing 'method' find
info: access: allowing 'method' save
info: access: allowing * access
info: access: allowing 'method' save
info: access: allowing * access
info: access[/]: adding authentication any
info: access[/]: allowing * access
info: Inserting default '/status' (auth true) ACL because none were found in '/etc/puppet/auth.conf'
notice: Caught INT; calling stop
如果需要交流puppet 可加入puppet技术交流QQ群296934942
页:
[1]