我刚刚设置的 Spacewalk 出现了一些问题。
我已经注册了我的测试客户端,并安装了 osad 服务以避免执行 rhn_check。
但是当我启动 osad 服务时,出现以下错误:
Starting osad: Not able to reconnect
Traceback (most recent call last):
File "/usr/share/rhn/osad/jabber_lib.py", line 253, in setup_connection
c = self._get_jabber_client(js)
File "/usr/share/rhn/osad/jabber_lib.py", line 320, in _get_jabber_client
c.connect()
File "/usr/share/rhn/osad/jabber_lib.py", line 604, in connect
raise SSLDisabledError
SSLDisabledError
[ OK ]
我尝试使用命令启动 osadosad -v
并得到以下结果:
2014-11-06 11:26:23 jabber_lib.__init__:
2014-11-06 11:26:23 jabber_lib.connect: Server did not return a <features /> stanza, reconnecting
2014-11-06 11:26:24 jabber_lib.connect: Server did not return a <features /> stanza, reconnecting
2014-11-06 11:26:25 jabber_lib.connect: Server did not return a <features /> stanza, reconnecting
Not able to reconnect
2014-11-06 11:26:26 jabber_lib.print_message: SSLError
2014-11-06 11:26:26 jabber_lib.print_message: Could not connect to jabber server spacewalk.example.com
Traceback (most recent call last):
File "/usr/share/rhn/osad/jabber_lib.py", line 253, in setup_connection
c = self._get_jabber_client(js)
File "/usr/share/rhn/osad/jabber_lib.py", line 320, in _get_jabber_client
c.connect()
File "/usr/share/rhn/osad/jabber_lib.py", line 604, in connect
raise SSLDisabledError
SSLDisabledError
2014-11-06 11:26:26 jabber_lib.setup_connection: Could not connect to any jabber server
Spacewalk 服务器已正确运行 jabberd 和 osa-dispatcher,并监听端口 5222/TCP
另外,我能够从客户端机器通过 telnet 连接到 Spacewalk 的端口 5222。
两台机器都禁用了 iptables,并且 SELinux 处于宽容模式。
任何帮助将不胜感激。
诚挚的问候。Miguel
答案1
我增加了调试详细程度,发现 SSL 证书 CN 与 Satellite 服务器的 FQDN 不匹配。
似乎在 Spacewalk 服务器设置时 SSL 证书没有正确创建