我的 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
=============================================================================================================================================================================================================