[問題] saltstack設定問題(已解決)

看板Python作者 (阿東)時間10年前 (2015/04/09 18:10), 10年前編輯推噓8(801)
留言9則, 3人參與, 最新討論串1/1
各位版友好, 請問有無版友對於這個工具有所了解呢? 想請問一下,當我安裝好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://www.ptt.cc/bbs/Python/M.1428574200.A.403.html

04/09 18:28, , 1F
先用netstat看誰占用port吧?
04/09 18:28, 1F
安裝前已先用netstat看過,並沒有看到這兩個port被使用, 安裝後再開netstat看,發現這兩個port已被使用, 所以認為是master安裝好後自動把這兩個port綁住, 但在執行salt-master start時卻顯示上述警告... ※ 編輯: Dong0129 (220.137.131.213), 04/09/2015 18:33:36

04/09 21:35, , 2F
它已經啟動,應該是service restart
04/09 21:35, 2F
感謝您的提醒,但現在問題變成沒辦法收到key...

04/09 22:11, , 3F
不是,我是說你要看哪個process占用阿...
04/09 22:11, 3F
感謝您,後來在執行時下netstat的確有出現python正在使用!

04/09 22:34, , 4F
IP 要 bind 在 0.0.0.0 才對,不用改
04/09 22:34, 4F
您好,謝謝您的提醒,但為什麼網路上有些資料說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

04/11 15:35, , 5F
在salt master 下 salt-key -A
04/11 15:35, 5F

04/11 15:37, , 6F
minion 也要設定 master ip http://docs.saltstack.
04/11 15:37, 6F

04/11 15:37, , 7F
com/en/latest/ref/configuration/
04/11 15:37, 7F
您好,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

04/14 12:52, , 8F
firewall 有開 4505, 4506嗎?
04/14 12:52, 8F
謝謝您,已經解決囉!! 不能設實際IP,我設成實際IP... ※ 編輯: Dong0129 (220.137.122.205), 04/14/2015 20:39:13

04/14 20:55, , 9F
哦,因為你兩台都是VM的關係
04/14 20:55, 9F
所以假如不是VM是要設定成實際位置嗎? ※ 編輯: Dong0129 (220.137.122.205), 04/15/2015 15:11:59
文章代碼(AID): #1L9a_uG3 (Python)
文章代碼(AID): #1L9a_uG3 (Python)