问题原文
原帖链接 · 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:
- What are the requirements for this icon to become green and in sync?
- 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
