博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
puppet kick 报错返回值code3 求解答(finished with exit code 3)
阅读量:6349 次
发布时间:2019-06-22

本文共 4965 字,大约阅读时间需要 16 分钟。

环境:

puppetserver端  RHEL5.8或者RHEL6.4
[root@puppetserver1 etc]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
puppetagent端  RHEL5.8 和RHEL6.4
[root@agent3 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root@agent2 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
[root@agent2 ~]#
[root@agent3 ~]#
故障:
puppetserver推送到RHEL6.4上OK,推送到RHEL5.8上报错,具体如下  
关于agent端配置参考我的博客
操作:
[root@puppetserver1 etc]#
[root@puppetserver1 etc]# 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
[root@puppetserver1 etc]# 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
日志:
[root@agent3 ~]# 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[/certificate_revocation_list/ca]: allowing 'method' find
info: access[/certificate_revocation_list/ca]: allowing * access
info: access[^/report/([^/]+)$]: allowing 'method' save
info: access[^/report/([^/]+)$]: allowing $1 access
info: access[/file]: allowing * access
info: access[/certificate/ca]: adding authentication any
info: access[/certificate/ca]: allowing 'method' find
info: access[/certificate/ca]: allowing * access
info: access[/certificate/]: adding authentication any
info: access[/certificate/]: allowing 'method' find
info: access[/certificate/]: allowing * access
info: access[/certificate_request]: adding authentication any
info: access[/certificate_request]: allowing 'method' find
info: access[/certificate_request]: allowing 'method' save
info: access[/certificate_request]: allowing * access
info: access[/run]: allowing 'method' save
info: access[/run]: 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[/etc/motd]: Filebucketed /etc/motd to puppet with sum 7cf100594d8ae6a01579e438a46420fa
notice: /File[/etc/motd]/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
[root@agent2 puppet]# 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[/certificate_revocation_list/ca]: allowing 'method' find
info: access[/certificate_revocation_list/ca]: allowing * access
info: access[^/report/([^/]+)$]: allowing 'method' save
info: access[^/report/([^/]+)$]: allowing $1 access
info: access[/file]: allowing * access
info: access[/certificate/ca]: adding authentication any
info: access[/certificate/ca]: allowing 'method' find
info: access[/certificate/ca]: allowing * access
info: access[/certificate/]: adding authentication any
info: access[/certificate/]: allowing 'method' find
info: access[/certificate/]: allowing * access
info: access[/certificate_request]: adding authentication any
info: access[/certificate_request]: allowing 'method' find
info: access[/certificate_request]: allowing 'method' save
info: access[/certificate_request]: allowing * access
info: access[/run]: allowing 'method' save
info: access[/run]: 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

转载地址:http://vopla.baihongyu.com/

你可能感兴趣的文章
Matplotlib绘图与可视化
查看>>
openstack ocata版(脚本)控制节点安装
查看>>
【微信公众号开发】获取并保存access_token、jsapi_ticket票据(可用于微信分享、语音识别等等)...
查看>>
datatable 获取最大值
查看>>
sqlserver2012一直显示正在还原(Restoring)和从单用户转换成多用户模式(单用户连接中)...
查看>>
spark复习总结02
查看>>
李瑞红201771010111《第九周学习总结》
查看>>
[译]ZOOKEEPER RECIPES-Barriers
查看>>
navicat下载安装和激活一分钟完成
查看>>
6_5 一些有用网址
查看>>
NFC 鏈表操作
查看>>
pymongo模块
查看>>
第0次作业
查看>>
Ubuntu里设置python默认版本为python3(转载)
查看>>
快排+折半查找
查看>>
c# GC 新典型
查看>>
ssh bash 通配符
查看>>
seajs在jquery多个版本下引用jquery的插件的方案
查看>>
关于网络上java,php和.net的“口角之争“的一点想法 !
查看>>
python 第二周(第十三天) 我的python成长记 一个月搞定python数据挖掘!(21) -正则表达式re...
查看>>