为什么我的Mesos master无法通过slave进行身份验证?

时间:2015-09-03 13:38:12

标签: authentication distributed-computing mesos mesosphere

我在我的机器上创建了一个主人,其凭据文件在网络上具有公共IP而不是localhost,如下所示:

./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

两个凭证文件都是正确的。

这是奴隶的输出:

I0903 15:17:48.232733  2377 slave.cpp:747] Authenticating with master master@192.168.0.3: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 master@192.168.0.3:5050 refused authentication

然而,当我从与主机相同的机器运行从机时,它工作正常。有什么想法吗?

1 个答案:

答案 0 :(得分:1)

这实际上是由我在虚拟机奴隶上设置网络的问题引起的。