免密钥认证的问题
eval $(ssh-agent)
ssh-add ~/.ssh/id_dsa
下载dcos cli失败
TASK [DCOS.master : Installation: Download dcos_install.sh] *********************************************************************************************************************************************
fatal: [54.238.171.221]: FAILED! => {"changed": false, "dest": "/tmp/dcos/2.0.0/", "elapsed": 3, "gid": 0, "group": "root", "mode": "0755", "msg": "Request failed: <urlopen error [Errno 113] 没有到主机的路由>", "owner": "root", "size": 6, "state": "directory", "uid": 0, "url": "http://172.31.40.180:8080/2.0.0/genconf/serve/dcos_install.sh"}
/group_vars/all/dcos.yml配置文件bootstrapIP写错了
认证登陆失败
[root@ip-172-31-34-218 ~]# dcos node list
Error: authentication failed, please run `dcos auth login`
[root@ip-172-31-34-218 ~]# dcos auth login #登陆用户即可
Username: bootstrapuser
Password:
[root@ip-172-31-34-218 ~]# dcos node list
HOSTNAME IP PUBLIC IP(S) ID TYPE STATUS REGION ZONE
172.31.41.246 172.31.41.246 172.31.41.246 ff4f14ff-2887-4816-babe-1d7fb100145f-S0 agent ACTIVE ap-northeast-1 ap-northeast-1a
172.31.43.178 172.31.43.178 172.31.43.178 ff4f14ff-2887-4816-babe-1d7fb100145f-S1 agent (public) ACTIVE ap-northeast-1 ap-northeast-1a
master.mesos. 172.31.43.15 172.31.43.15 33773bc5-e550-40ed-a795-4fb35d5e5e4f master (leader) ap-northeast-1 ap-northeast-1a
timed out waiting for ping module test success: Data could not be sent to remote host
解决方法:
如图用户修改为root
eth0-does not exist
现象:ansible安装后显示正常,没有报错 但是通过master url 无法访问
发现网卡命令错误
修改/group_vars/all/dcos.yml配置文件 网卡名称
把uninstall.sh脚本上传到master节点,卸载master安装,重启机器,在执行play-book脚本重新安装