cloudfoundry/dea_ng — pull request #152 by liuhewei (2014-09-23 21:12:36+00:00)
Title: Change the STARTING state to CRASHED when loading instance-snapshot

After restarting DEA, the instance loaded from snapshot stays in the STARTING state, so can't be accessed .

The reason is, DEA simply creates the instance from snapshot and register, then the heartbeat is reported to the HM with current state. So if the snapshot is in STARTING state, HM will regard it as normal, and doesn't notify CC to send the command of starting up the instance. Then, the instance can be accessed.

So should change the state to CRASHED to trigger the correct starting up process.