0
我有一个自定义的centos AMI,我从https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.amzn1.noarch.rpm安装了aws-cfn-bootstrap。AWS:云初始化失败
在运行cloudformation脚本之后,cloud-init会停留在该实例上。 我试图查看cloud-init.log。我无法调试该问题。 我不知道如何调试。需要帮助,我目前卡在这里。以下是日志中的一些错误。帮助我解决这个问题。
我需要更改cloud-init.cfg吗?
2017-10-10 13:12:26,172 - util.py[DEBUG]: Running command ['mount', '-o', 'ro,sync', '-t', 'iso9660', '/dev/xvda', '/tmp/tmptIJHi2'] with allowed return codes [0] (shell=False, capture=True)
2017-10-10 13:12:26,188 - util.py[DEBUG]: Failed mount of '/dev/xvda' as 'iso9660': Unexpected error while running command.
Command: ['mount', '-o', 'ro,sync', '-t', 'iso9660', '/dev/xvda', '/tmp/tmptIJHi2']
Exit code: 32
Reason: -
Stdout: -
2017-10-10 13:12:27,908 - util.py[DEBUG]: Failed mount of '/dev/xvda' as 'iso9660': Unexpected error while running command.
Command: ['mount', '-o', 'ro,sync', '-t', 'iso9660', '/dev/xvda', '/tmp/tmpJcAGOG']
Exit code: 32
Reason: -
Stdout: -
2017-10-11 04:05:42,847 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [1]
2017-10-11 04:05:42,847 - util.py[DEBUG]: Failed running /var/lib/cloud/instance/scripts/part-001 [1]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 802, in runparts
subp(prefix + [exe_path], capture=False)
File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 1858, in subp
cmd=args)
ProcessExecutionError: Unexpected error while running command.
Command: ['/var/lib/cloud/instance/scripts/part-001']
Exit code: 1
Reason: -
Stdout: -
Stderr: -
的BR, 基兰
CloudForms脚本正在触发正在尝试为cloudinit设置某些内容的cloudinit。是的,它正在执行您在过程中提到的类似命令。 – Kiran
是的,我知道这一点。但是我希望您在放入云初始化之前确保您的命令先行工作。您可以先尝试运行实例。有时我也有这种问题。 – sin
好吧,我会尝试并让你知道。 – Kiran