1

我的 providers.yaml 文件

bare_metal:
cloud_provider: none
private_key: ~/.ssh/my-private-key

profile.yaml 文件

name: my_baremetal_profile
machines:
compute:
  - ip:port
head:
  - ip:port
node_id: bare_metal
node_type: bare_metal
num_nodes: 1
provider: bare_metal

用户:用户

然后我启动集群

acluster create xx --profile my_baremetal_profile

因盐安装错误而中止

但是 ssh 成功了(又名 acluster ssh 有效)

但是安装盐失败了

FabricException: Needed to prompt for a connection or sudo password (host: ip:port), but input would be ambiguous in parallel mode
[ip:port] out: sudo password:
Fatal error: One or more hosts failed while executing task 'parallel_sudo'

Underlying exception:
Needed to prompt for a connection or sudo password (host: ip:port), but input would be ambiguous in parallel mode

中止。

在这里实现了FAQ http://docs.continuum.io/anaconda-cluster/faq

我已经重试了几次

========更新========================================== ==========

上述错误的原因是在修复此问题后缺少无密码 sudo。我仍然无法使用命令安装笔记本

acluster install notebook

收到以下错误:

FabricException: One or more hosts failed while executing task 'parallel_sudo'

Underlying exception:
sudo() received nonzero return code 2 while executing!

Requested: /opt/anaconda/envs/salt/bin/salt -G "roles:ipython.notebook" state.sls ipython.notebook.status test=True --timeout=60 --out=yaml --state_output=mixed
Executed: sudo -S -p 'sudo password:'  /bin/bash -c  "/opt/anaconda/envs/salt/bin/salt -G \"roles:ipython.notebook\" state.sls ipython.notebook.status test=True --timeout=60 --out=yaml --state_output=mixed"

============================================================================================== Standard output ==============================================================================================

No minions matched the target. No command was sent, no jid was assigned.
{}
ERROR: No return received

=============================================================================================================================================================================================================
4

1 回答 1

0

从错误消息中,您可能忘记设置无密码 ssh 连接和无密码 sudo。使用 ssh-keygen 在您的管理箱上生成一个 ssh 密钥,并将其作为密钥的公共部分添加到集群节点的 authorized_keys 文件中。至于 sudo,您将不得不编辑节点的 sudo 文件。这两个要求都写在 anaconda 集群文档中的一个或另一个中。

于 2015-12-22T10:19:43.710 回答