我正在使用为我们的需求部分定制的openshift-ansible ( https://github.com/openshift/openshift-ansible )。启动实例的部分已修改为设置 group_id ,其中没有任何更改。
创建主 openshift 时一切正常。但是,当创建 2 个 openshift 节点时,我可以在 EC2 仪表板的“运行实例”面板中看到正在创建的 2 个实例。实例处于 Initializing 状态几秒钟,它们会自动切换到“正在关闭”
Ansible 方面仍在执行启动实例的任务。所以我的问题是:
有没有办法在创建新实例时分析 AWS 实例的日志?
最后一个ansible任务的日志:
任务:[启动实例] ***************************************** *********** REMOTE_MODULE ec2 region=eu-west-1 keypair=ggkey1-eu-west state=present instance_type=m3.large user_data='#cloud-config mounts: - [ xvdb ] - [ ephemeral0] write_files:-内容:| DEVS=/dev/xvdb VG=docker_vg 路径:/etc/sysconfig/docker-storage-setup 所有者:root:root 权限:'"'"'0644'"'"' ' vpc_subnet_id=subnet-60cf1205 image=ami-33ba2a44 count=2 EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1441977401.88-262307796372076 && echo $HOME/.ansible/tmp/ansible-tmp- 1441977401.88-262307796372076'] PUT /tmp/tmp4r8qve TO /root/.ansible/tmp/ansible-tmp-1441977401.88-262307796372076/ec2 EXEC ['/bin/sh', '-c', u' LANG=C LC_CTYPE=C /usr/bin/env python2 /root/.ansible/tmp/ansible-tmp-1441977401.88-262307796372076/ec2; rm -rf /root/.ansible/tmp/ansible-tmp-1441977401.88-262307796372076/ >/dev/null 2>&1'] failed: [localhost] => {"failed": true} msg: 等待实例运行超时2015 年 9 月 11 日星期五 13:21:43
$ ansible --version
ansible 1.9.2 配置的模块搜索路径=无
$ unname -a
Linux ip-172-31-42-45 3.10.0-123.8.1.el7.x86_64 #1 SMP Mon Sep 22 19:06:58 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux root@ip-172-31-42- 45:~/uha-rbox-spawner$
谢谢,