0

我尝试使用创建新集群,OpsCenter 5.2.4但出现此错误:

Error: Fingerprint Detection failed: sequence item 0: expected string, NoneType found

在 OpsCenter 的日志中,/var/log/opscenter/opscenterd.log我收到了这个错误:

2016-10-09 10:02:06+0000 []  INFO: Determining ssh fingerprints of new instances.
2016-10-09 10:02:06+0000 [] ERROR: /usr/bin/ssh-keyscan had some issues:
        stdout=
        stderr=        getaddrinfo None: Name or service not known^M

2016-10-09 10:02:06+0000 [] ERROR: /usr/bin/ssh-keyscan had some issues:
        stdout=
        stderr=        getaddrinfo None: Name or service not known^M

2016-10-09 10:02:06+0000 [] ERROR: /usr/bin/ssh-keyscan had some issues:
        stdout=
        stderr=        getaddrinfo None: Name or service not known^M

2016-10-09 10:02:06+0000 [] Error determining fingerprints
        Traceback (most recent call last):
        Failure: exceptions.TypeError: sequence item 0: expected string, NoneType found

2016-10-09 10:02:06+0000 [] ERROR: Fingerprint Detection failed: sequence item 0: expected string, NoneType found sequence item 0: expected string, NoneType found
          File "/usr/share/opscenter/lib/py-debian/2.7/amd64/twisted/internet/defer.py", line 1018, in _inlineCallbacks
            result = result.throwExceptionIntoGenerator(g)

          File "/usr/share/opscenter/lib/py-debian/2.7/amd64/twisted/python/failure.py", line 349, in throwExceptionIntoGenerator
            return g.throw(self.type, self.value, self.tb)

          File "/usr/lib/python2.7/dist-packages/opscenterd/cloud/Ec2Launcher.py", line 582, in _determine_fingerprints

          File "/usr/share/opscenter/lib/py-debian/2.7/amd64/twisted/internet/defer.py", line 1018, in _inlineCallbacks
            result = result.throwExceptionIntoGenerator(g)

          File "/usr/share/opscenter/lib/py-debian/2.7/amd64/twisted/python/failure.py", line 349, in throwExceptionIntoGenerator
            return g.throw(self.type, self.value, self.tb)

          File "/usr/lib/python2.7/dist-packages/opscenterd/SecureShell.py", line 148, in get_remote_ssh_key_map

          File "/usr/share/opscenter/lib/py-debian/2.7/amd64/twisted/internet/defer.py", line 1020, in _inlineCallbacks
            result = g.send(result)

          File "/usr/lib/python2.7/dist-packages/opscenterd/SecureShell.py", line 370, in _get_remote_ssh_keys_in_bulk

2016-10-09 10:02:06+0000 []  WARN: Marking request 1ca29951-2ce1-49a2-9a92-5555c93064ce as failed: Fingerprint Detection failed: sequence item 0: expected string, NoneType found
2016-10-09 10:02:06+0000 []  WARN: Marking request 3e815163-648d-4681-9893-7abf5dd67aff as failed: Fingerprint Detection failed: sequence item 0: expected string, NoneType found
2016-10-09 10:02:06+0000 [] ERROR:
2016-10-09 10:02:06+0000 []  WARN: Marking request f59e8ea2-1765-4145-a981-c087d8825b50 as failed: Fingerprint Detection failed: sequence item 0: expected string, NoneType found
2016-10-09 10:02:06+0000 [] Unexpected error provisioning cluster.
        Traceback (most recent call last):
        Failure: exceptions.TypeError: sequence item 0: expected string, NoneType found

2016-10-09 10:02:06+0000 []  WARN: Marking request f59e8ea2-1765-4145-a981-c087d8825b50 as failed: sequence item 0: expected string, NoneType found
2016-10-09 10:02:06+0000 [] ERROR: Launching instances failed (with an unexpected error): Fingerprint Detection failed: sequence item 0: expected string, NoneType found

任何想法?

4

1 回答 1

1

OpsCenter 供应开发在这里。这告诉您失败的操作:

2016-10-09 10:02:06+0000 [] ERROR: /usr/bin/ssh-keyscan had some issues:
    stdout=
    stderr=        getaddrinfo None: Name or service not known

这可能与网络有关。您可以对有问题的主机运行 ssh-keyscan 还是可以通过 ssh 访问它?我猜不是,你需要弄乱网络防火墙、iptables 和/或你的路由,直到你能够从 OpsCenter 服务器 ssh 到目标主机。

另请注意,OpsCenter 6.0.x 中的供应功能比 5.2.x 中的功能早了数光年。我强烈建议你升级。

于 2016-10-10T14:02:16.227 回答