我尝试使用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
有什么想法吗?
答案 0 :(得分: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-keys扫描?我猜不到,你需要搞乱网络防火墙,iptables和/或你的路由,直到你能够从OpsCenter服务器ssh到目标主机。
另请注意,OpsCenter 6.0.x中的配置功能比5.2.x中的配置功能提前了几年。我强烈建议你升级。