对 Salt 客户端显示为关闭状态的问题和 DNS 设置进行查错

即使 Salt 客户端正在运行,软件包刷新或应用状态这样的操作也可能会标示为失败,并显示以下消息:

受控端已关闭或无法联系。

在此情况下,请尝试重新安排该操作。如果重新安排成功,发生问题的原因可能在于 DNS 配置有误。

To access a shell inside the Server container run mgrctl term on the container host.

When the Salt client is restarted, or in case the grains are refreshed, the client calculates its FQDN grains, and it is unresponsive until the grains are proceeded. When a scheduled action on SUSE Multi-Linux Manager Server is going to be executed, SUSE Multi-Linux Manager Server performs a test.ping to the client before the actual action to ensure the client is actually running and the action can be triggered.

By default, SUSE Multi-Linux Manager Server waits for 5 seconds to get the response from test.ping command. If the response is not received within 5 seconds, then the action is set to fail with the message that the client is down or could not be contacted.

要解决此问题,请修复客户端上的 DNS 解析,使客户端在解析其 FQDN 时不会卡顿 5 秒时间。

If this is not possible, try to increase the value for java.salt_presence_ping_timeout in the /etc/rhn/rhn.conf file on the SUSE Multi-Linux Manager Server to a value higher than 4.

例如:

mgrctl term
vim /etc/rhn/rhn.conf
java.salt_presence_ping_timeout = 6

然后运行以下命令:

mgradm restart

将此值增大会使 SUSE Multi-Linux Manager 服务器花费更长时间检查受控端是否无法连接或无响应,导致 SUSE Multi-Linux Manager 服务器总体速度更慢或响应能力更低。