Closed jrtc27 closed 4 years ago
(for reference, this was I-0BC3F5404037B3D0F)
We have other discussions going about watchdogs on instances. I'll tag @kurthopfer on this so that this can be cross-referenced and we can possibly chase this up as a possible hot-fix.
Yes - as it stands, neither the portal nor fett are actively monitoring target after successful launch and bootstrapping.
Implementation would be in FETT-Target to spit back a msg that the instance went down. Effort assessment in FETT-Target is next.
Adding to this, we need to verify that the instance is actually terminated (via EC2) when a shut down/halt occurs. We will take a look at this in FETT-Target.
Steps:
su -
halt -p
This will cause FreeBSD to shut down and, ultimately, power off by telling the Connectal host-side software to stop, so fett.py sees the process as having exited.
Expected outcome:
Instance is terminated (after the same delay as it normally takes to manually terminate an instance).
Actual outcome:
Instance is still regarded as running.
Whilst liveness checks would catch this, it would be good to have the tools gracefully handle this non-exceptional case as if it were a normal termination.