首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AWS: cloud-init失败

AWS: cloud-init失败
EN

Stack Overflow用户
提问于 2017-10-11 12:28:03
回答 1查看 1.7K关注 0票数 0

我有一个自定义的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 ??

代码语言:javascript
复制
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,基兰

EN

回答 1

Stack Overflow用户

发布于 2017-10-21 13:00:56

您的问题是mount命令。是否使用现有服务器启动实例(使用实例的AMI)?您可以通过在该服务器上运行该命令进行检查,并查看它是否正常工作。

我相信你的命令是这样的。

代码语言:javascript
复制
mount -o ro,sync -t iso9660 /dev/xvda /tmp/tmptIJHi2
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46679858

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档