【问题标题】:Why is my Mesos master failing authentication with slave?为什么我的 Mesos 主服务器无法通过从服务器进行身份验证?
【发布时间】:2015-09-03 13:38:11
【问题描述】:

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

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

然后我在另一台机器上创建了一个slave,如下:

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

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

【问题讨论】:

  • 启动mesos-master时,尝试添加--authenticate --authenticate_slaves
  • 并且master-cred.json和slave-cred.json中的内容是否匹配?

标签: authentication distributed-computing mesos mesosphere


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-08
    • 1970-01-01
    • 1970-01-01
    • 2017-03-03
    • 1970-01-01
    相关资源
    最近更新 更多