作者Dong0129 (阿东)
看板Python
标题[问题] saltstack设定问题
时间Thu Apr 9 18:09:55 2015
各位版友好,
请问有无版友对於这个工具有所了解呢?
想请问一下,当我安装好master和minion後,
将/etc/salt/master里的interface: 0.0.0.0改成interface: 220.xxx.xxx.xxx(真实IP)
执行salt-master时却一直出现以下讯息:
[WARNING ]Unable to bind socket, error: [Error99] Cannot assign requested
address
The ports are not available to bind
在安装以前看过使用的4505跟4506并没有被使用,
但安装後4505跟4506却自动被启用,
但这应该是salt-master安装後自动把这两个port绑住避免被其他程序使用,
为什麽还会出现上述的警告讯息呢?
或是有地方没设定好?
麻烦各位帮帮忙了...
新的问题如下,
执行salt-master跟salt-minion时的确有跑出python正在使用,
但是为什麽minion过一阵子就显示[ERROR ]Attempt to authenticate with the salt
master failed呢...
是否我有漏掉什麽步骤?
基本上是参考这个网页在做的!
http://ppt.cc/~pzO
已解决,minion的IP不能设实际位置...
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 220.137.131.213
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1428574200.A.403.html
1F:推 mars90226: 先用netstat看谁占用port吧? 04/09 18:28
安装前已先用netstat看过,并没有看到这两个port被使用,
安装後再开netstat看,发现这两个port已被使用,
所以认为是master安装好後自动把这两个port绑住,
但在执行salt-master start时却显示上述警告...
※ 编辑: Dong0129 (220.137.131.213), 04/09/2015 18:33:36
2F:推 MortonRainey: 它已经启动,应该是service restart 04/09 21:35
感谢您的提醒,但现在问题变成没办法收到key...
3F:推 mars90226: 不是,我是说你要看哪个process占用阿... 04/09 22:11
感谢您,後来在执行时下netstat的确有出现python正在使用!
4F:推 darkgerm: IP 要 bind 在 0.0.0.0 才对,不用改 04/09 22:34
您好,谢谢您的提醒,但为什麽网路上有些资料说master interface可以设自己IP呢?
※ 编辑: Dong0129 (220.137.131.127), 04/10/2015 11:28:13
※ 编辑: Dong0129 (220.137.131.127), 04/10/2015 11:29:49
※ 编辑: Dong0129 (220.137.131.127), 04/10/2015 11:31:49
5F:推 MortonRainey: 在salt master 下 salt-key -A 04/11 15:35
7F:→ MortonRainey: com/en/latest/ref/configuration/ 04/11 15:37
您好,salt-key -A应该是会显示已经接受的minion id,
minion有设定master机的实体位置(内文中提到的220.X.X.X)
因为master跟minion机都是装在VM里(不同电脑),
这样子会有问题吗?
有试过service salt-master restart & service salt-minion restart
但是在master里下salt-key -L没有看到任何ID编号...
※ 编辑: Dong0129 (220.137.131.127), 04/11/2015 20:38:28
※ 编辑: Dong0129 (220.137.131.127), 04/12/2015 10:06:05
8F:推 MortonRainey: firewall 有开 4505, 4506吗? 04/14 12:52
谢谢您,已经解决罗!!
不能设实际IP,我设成实际IP...
※ 编辑: Dong0129 (220.137.122.205), 04/14/2015 20:39:13
9F:推 MortonRainey: 哦,因为你两台都是VM的关系 04/14 20:55
所以假如不是VM是要设定成实际位置吗?
※ 编辑: Dong0129 (220.137.122.205), 04/15/2015 15:11:59