【问题标题】:fabric block cloudify bootstrap织物块 cloudify 引导程序
【发布时间】:2016-01-17 23:22:15
【问题描述】:

我正在尝试在 AWS EC2 上使用 cloudify 引导 CentOS 实例,但我无法做到这一点,因为我总是被以下结构错误打断:fabric_plugin.tasks.run_module_task' -> Needed to prompt for a connection or sudo password (host: X.X.X.X), but abort-on-prompts was set to True

我制作了一个简单的 YAML 文件来配置 AWS 引导程序,以及在我运行引导程序命令后创建的 .pem 公钥,所以基本上结构应该将它与 CentOS EC2 用户名一起使用,而不提示输入密码。

我的 input.YAML 文件:

aws_access_key_id: 'XX'
aws_secret_access_key: 'XXXX'

image_id: 'ami-6e37a25e' #ami-e48d6ad7' #ami-45f7ed24' 
instance_type: 't2.micro'

ssh_key_filename: '~/.ssh/manager-cle.pem'
agent_private_key_path: ''~/.ssh/client-cle.pem'

manager_security_group_name: 'cloudify-manager-security-group'
agent_security_group_name: 'cloudify-agent-security-group'
manager_server_name: 'cloudify-manager-server'

manager_keypair_name: 'manager-key'
agent_keypair_name: 'agent-key'

【问题讨论】:

    标签: amazon-web-services amazon-ec2 fabric bootstrapping cloudify


    【解决方案1】:

    通常会提示您输入 sudo,因为以下其中一项无效:

    1. 用户 - 确保您使用的用户存在于目标计算机上。我们提供的用户是 centos,因为这是我们建议的 AMI 上的默认用户。我看到你已经提供了你自己的。我会检查您为“ssh_user”输入使用的值。
    2. 密钥 - 确保密钥的路径正确。
    3. 您正在使用另一台机器的 IP

    【讨论】:

    • 我已经尝试过使用用户 centos(以及用于 ubuntu 映像的 ubuntu),但仍然有同样的问题。对于密钥,它们是由该路径中的“cfy bootstrap”命令创建的,我对其进行了验证。对于 IP,是 cloudify 与亚马逊服务器协商 ip,所以现在我可以输入错误的 IP 地址,因为它是自动的。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-04
    • 2013-12-06
    • 2015-04-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-09
    相关资源
    最近更新 更多