大网数据广告活动
服务器运维问答

Foreman displays a server as "out of sync", what could be the reason and what is the right way to troubleshoot such an issue?

· 52CE 我爱测

There's a puppet server in the company I work for with Foreman installed. There are around 200 Linux machines which are being managed by the Puppet server. When looking in the Foreman GUI, most server appear with a green icon say…

问题原文

原帖链接 · Itai Ganot · CC BY-SA 3.0

There's a puppet server in the company I work for with Foreman installed.

There are around 200 Linux machines which are being managed by the Puppet server.

When looking in the Foreman GUI, most server appear with a green icon saying "No changes" but there are some servers which appear with a yellow/orange icon with a tooltip saying "out of sync".

You can see in the following screen shot that most servers appear with green status and only server "sgproxy08" is out of sync:

Running puppet agent -t on the sgproxy08 server finishes properly:

[root@sgproxy08 ~]# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for sgproxy08.sg.company.com
Info: Applying configuration version '1436862601'
Notice: Finished catalog run in 49.90 seconds
[root@sgproxy08 ~]#

Now there are two questions:

  1. What are the requirements for this icon to become green and in sync?
  2. How can I troubleshoot such an issue?

已采纳解答

原帖链接 · Itai Ganot · CC BY-SA 3.0

I found the reason for the out-of-sync notifications in Foreman. It seems like in these servers there was a stuck process of puppet agent -t, is looks like so:

root  7531 21487  0 Aug09 ?   00:00:03 puppet agent: applying configurat

Once I killed this process and ran puppet agent -t again - problem solved.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2015-07-14)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。