2015-09-03 58 views
0

我創建了一個主我的機器上使用具有網絡上的公共IP而不是localhost作爲遵循憑證文件:爲什麼我Mesos主身份驗證失敗與奴隸?

./bin/mesos-master.sh --ip=192.168.0.3 --work_dir=/var/lib/mesos --credentials=file://master-cred.json 

然後,我創建了另一臺機器上的從如下:

./bin/mesos-slave.sh --ip=192.168.0.19 --master=<master-ip>:5050 --credential=file://slave-cred.json 

然後主輸出傳入認證請求然而每次它被拒絕:

I0903 15:17:48.264104 165863424 master.cpp:4728] Authenticating slave(1)@192.168.0.19:5051 
I0903 15:17:48.264602 166936576 authenticator.cpp:92] Creating new server SASL connection 
I0903 15:17:48.269961 165326848 authenticator.cpp:197] Received SASL authentication start 
I0903 15:17:48.270058 165326848 authenticator.cpp:319] Authentication requires more steps 
I0903 15:17:48.272733 166400000 authenticator.cpp:225] Received SASL authentication step 
W0903 15:17:48.272817 166400000 authenticator.cpp:325] Authentication failure: authentication failure 
W0903 15:17:48.273136 166400000 master.cpp:4755] Failed to authenticate slave(1)@192.168.0.19:5051: Refused authentication 

兩者克雷德ntial文件是正確的。

這是從站的輸出:

I0903 15:17:48.232733 2377 slave.cpp:747] Authenticating with master [email protected]:5050 
I0903 15:17:48.232951 2377 slave.cpp:752] Using default CRAM-MD5 authenticatee 
I0903 15:17:48.235091 2376 authenticatee.cpp:91] Initializing client SASL 
I0903 15:17:48.239701 2376 authenticatee.cpp:115] Creating new client SASL connection 
I0903 15:17:48.239914 2377 slave.cpp:720] Detecting new master 
I0903 15:17:48.241755 2377 slave.cpp:4193] Received oversubscribable resources from the resource estimator 
I0903 15:17:48.287488 2378 authenticatee.cpp:206] Received SASL authentication mechanisms: CRAM-MD5 
I0903 15:17:48.287619 2378 authenticatee.cpp:232] Attempting to authenticate with mechanism 'CRAM-MD5' 
I0903 15:17:48.290863 2378 authenticatee.cpp:252] Received SASL authentication step 
Master [email protected]:5050 refused authentication 

然而,當我運行在同一臺機器從作爲主,它工作正常。有任何想法嗎?

+0

當啓動mesos主,試加'--authenticate --authenticate_slaves' – haosdent

+0

並沒有在主cred.json和奴隸cred.json內容相匹配? – haosdent

回答

1

它實際上是與我如何設置網絡上的虛擬機從所引起的問題。