詳しい原因は不明なのですがUbuntu14.04でStop/Start後にステータスが1/2のまま戻らなくなる事象が発生したのでメモ
現象
CloudFormationを利用してUbuntu14.04を起動する際にStatus 1/2のままになりSSHログインが出来ない
作成時のSyslog
[ 6.428130] xenbus_probe_frontend: Waiting for devices to initialise: 25s...20s...15s...10s...5s...0s...
[ 36.332082] 235s...230s...225s...220s...[ 52.932134] random: nonblocking pool is initialized
215s...210s...205s...200s...195s...190s...185s...180s...175s...170s...165s...160s...155s...150s...145s...140s...135s...130s...125s...120s...115s...110s...105s...
Stop/Start時のSyslog
cloud-init-nonet[284.14]: waiting 120 seconds for network device
cloud-init-nonet[404.15]: gave up waiting for a network device.
Cloud-init v. 0.7.5 running 'init' at Thu, 20 Nov 2014 04:24:16 +0000. Up 404.30 seconds.
ci-info: +++++++++++++++++++++++Net device info++++++++++++++++++++++++
ci-info: +--------+-------+-----------+-----------+-------------------+
ci-info: | Device | Up | Address | Mask | Hw-Address |
ci-info: +--------+-------+-----------+-----------+-------------------+
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . |
ci-info: | eth0 | False | . | . | 00:00:00:00:00:00 |
ci-info: +--------+-------+-----------+-----------+-------------------+
ci-info: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Route info failed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
原因
cloud-initのバグらしい
ネットワークの有効化が出来ていない?
回避策
発生した場合はAMI化し、別インスタンスとして立てることが可能
/etc/network/interfaces へ以下を追記
auto eth0
iface eth0 inet dhcp
以下をコメントアウト
# source /etc/network/interfaces.d/*.cfg
設定後に再度Stop/Startを実行する
※Syslogを追記