GCE instance terminated without detail or clarification

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 12:08:46

问题


We got a weird error event last night where a GCE VM instance got terminated by the system for reasons that are unclear. Is there any way to identify why a running instance got terminated?

Portion of the REST response from the GCE service:

{
  "kind": "compute#operation",
  "operationType": "compute.instances.guestTerminate",
  "status": "DONE",
  "statusMessage": "Instance terminated by guest OS shutdown.",
  "user": "system",
}

回答1:


In this case, it appears that your instance's guest OS itself was the one which requested to shutdown / halt so the instance was terminated as a result. This could be due to any number of reasons, e.g., someone ran a command such as shutdown -h now inside the VM.

The record of what happened in this case may be left on the instance's persistent disk; however, if the VM had the setting enabled for automatically deleting the boot disk on VM instance termination, it's likely gone at this time.



来源:https://stackoverflow.com/questions/27685901/gce-instance-terminated-without-detail-or-clarification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!