我用一个主机(server0)设置了一个01-machines.json,我可以从管理节点(master0)SSH到server0。我在UI中收到一条错误消息,说A compatible version of Cockpit is not installed on 192.168.66.17.
具有相同的确切版本,因此该错误具有误导性。我可以使用相同的凭据(cockpit / 密码 )访问server0:9090上的UI,不是那不是密码。
{
"server0": {
"address": "192.168.66.17",
"visible": true,
"color": "green"
}
}
我在master0或server0的日志中看不到任何内容以查看发生了什么。我在UI中连接的用户在server0上相同,它在wheel组中,并且具有无密码sudo
# ssh cockpit@192.168.66.17
cockpit@192.168.66.17's password:
Last login: Wed Oct 24 14:16:18 2018 from 192.168.0.20
[cockpit@app-node-0 ~]$ sudo su -
Last login: Wed Oct 24 14:16:58 UTC 2018 on pts/1
[root@app-node-0 ~]#
答案 0 :(得分:2)
因此,仅安装座舱不包括仪表板,您还需要安装座舱仪表板。
答案 1 :(得分:1)
我遇到了同样的问题,并为此解决了:
在主服务器中,我安装了dashoard。 在CentOS中,您可以安装:
sudo yum install cockpit-dashboard
这将启用仪表板,并允许您从仪表板UI添加新服务器。
在所有其他服务器中,您必须按照官方文档安装座舱: Official doc to install Dockpit
如果您正在运行centOS,只需运行:
sudo yum install cockpit
sudo systemctl enable --now cockpit.socket
sudo firewall-cmd --permanent --zone=public --add-service=cockpit
sudo firewall-cmd --reload
此后,在主服务器上的信息中心中,您将能够添加新的服务器
有了这个方法,您不需要使用/etc/cockpit/machines.d/ json文件