BOSH を使用して、独自の内部マルチノード クラウド ファウンドリーを作成しました。シンプルなsinatraアプリをプッシュすると、次の2行を示すすべてのステップが実行されます:
Uploading hello... OK
Starting hello... OK
Checking hello... GAVE UP
Application failed to start.
(もちろん、最後の 2 行は書き終わるまでに時間がかかります)
しかし、アプリの URL である hello.mycloud.example.com にアクセスしようとすると、すべて正常に動作します。つまり、アプリケーションは実際に実行されています。dea のログを確認したところ、確かに、アプリが開始され、システムに通知されたことが報告されています。
[2012-12-20 20:08:45.813061] dea - pid=24441 tid=40fc fid=0c65 INFO -- Starting up instance (name=hellocornelia app_id=1 instance=1e4cae7a70078687753ebc7d116de550 index=0) on port:62642
[2012-12-20 20:08:45.835886] dea - pid=24441 tid=40fc fid=47ea INFO -- Starting up instance (name=hellocornelia app_id=1 instance=d1e1b77335f23d3ce1fe5e24caf85ed5 index=1) on port:62047
[2012-12-20 20:08:46.369563] dea - pid=24441 tid=40fc fid=23e8 INFO -- Instance (name=hellocornelia app_id=1 instance=1e4cae7a70078687753ebc7d116de550 index=0) is ready for connections, notifying system of status
[2012-12-20 20:08:46.370488] dea - pid=24441 tid=40fc fid=23e8 INFO -- Instance (name=hellocornelia app_id=1 instance=d1e1b77335f23d3ce1fe5e24caf85ed5 index=1) is ready for connections, notifying system of status
[2012-12-20 20:08:46.873075] dea - pid=24441 tid=40fc fid=23e8 INFO -- PID:22404 assigned to droplet instance: (name=hellocornelia app_id=1 instance=1e4cae7a70078687753ebc7d116de550 index=0)
[2012-12-20 20:08:46.873591] dea - pid=24441 tid=40fc fid=23e8 INFO -- PID:22410 assigned to droplet instance: (name=hellocornelia app_id=1 instance=d1e1b77335f23d3ce1fe5e24caf85ed5 index=1)
トレースをオンにして vmc アプリを実行すると、次のように表示されます。
{
"name": "hello",
"staging": {
"model": "sinatra",
"stack": "ruby18"
},
"uris": [
"hello.cloudad.sccf.lab.emc.com"
],
"instances": 1,
"runningInstances": 0,
"resources": {
"memory": 128,
"disk": 2048,
"fds": 256
},
"state": "STARTED",
"services": [
],
"version": "966c1f76a126696d09db9f49405f42130f72cbc3-1",
"env": [
],
"meta": {
"debug": null,
"console": null,
"version": 3,
"created": 1356035779
}
}
]
<<<
... OK
name status usage runtime url
hello 0% 1 x 128M ruby18 hello.cloudad.sccf.lab.emc.com
システムはアプリが実行されていることを認識していないため、これは当然のことです。クラウド コントローラーとヘルス マネージャーのログを確認しましたが、どこで問題が発生しているのかを示す兆候が見当たらないようです。ヒントはありますか?
ありがとう。