我有一个自定义的centos AMI,我在其中安装了来自https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.amzn1.noarch.rpm的aws-cfn-bootstrap。
运行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: -BRs,基兰
发布于 2017-10-21 13:00:56
您的问题是mount命令。是否使用现有服务器启动实例(使用实例的AMI)?您可以通过在该服务器上运行该命令进行检查,并查看它是否正常工作。
我相信你的命令是这样的。
mount -o ro,sync -t iso9660 /dev/xvda /tmp/tmptIJHi2https://stackoverflow.com/questions/46679858
复制相似问题