文章详情

短信预约-IT技能 免费直播动态提醒

请输入下面的图形验证码

提交验证

短信预约提醒成功

puppet kick 报错返回值cod

2023-01-31 06:57

关注

环境:
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端配置参考我的博客 http://dreamfire.blog.51cto.com/418026/1257718

操作:
[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

阅读原文内容投诉

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

软考中级精品资料免费领

  • 历年真题答案解析
  • 备考技巧名师总结
  • 高频考点精准押题
  • 2024年上半年信息系统项目管理师第二批次真题及答案解析(完整版)

    难度     813人已做
    查看
  • 【考后总结】2024年5月26日信息系统项目管理师第2批次考情分析

    难度     354人已做
    查看
  • 【考后总结】2024年5月25日信息系统项目管理师第1批次考情分析

    难度     318人已做
    查看
  • 2024年上半年软考高项第一、二批次真题考点汇总(完整版)

    难度     435人已做
    查看
  • 2024年上半年系统架构设计师考试综合知识真题

    难度     224人已做
    查看

相关文章

发现更多好内容

猜你喜欢

AI推送时光机
位置:首页-资讯-后端开发
咦!没有更多了?去看看其它编程学习网 内容吧
首页课程
资料下载
问答资讯