-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop the Home Assistant Core container by default #101105
Conversation
When Home Assistant Core crashes (e.g. due to SIGILL, signal number 4 as caused by #101027) the container should exit. This makes sure that the exit code can be read by container orchistration software such as the Supervisor and act upon. With this, the Supervisor properly rolls back Home Assistant Core to the previously installed version. See also home-assistant/supervisor#4590 (comment).
I've tested Core stop/start and restart with Supervisor. What I've noticed is that with restart the Core does not exit with exit code 100 ( Logs when triggering a restart:
So things seem to work correctly. |
Should we tag this for the beta? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, yes, let's pull this into beta 👍
But that might be intended behavior on Supervisor, IIRC?
That is intended indeed. 👍
../Frenck
Breaking change
Proposed change
When Home Assistant Core crashes (e.g. due to SIGILL, signal number 4 as caused by #101027) the container should exit. This makes sure that the exit code can be read by container orchestration software such as the Supervisor and act upon.
With this, the Supervisor properly rolls back Home Assistant Core to the previously installed version.
See also home-assistant/supervisor#4590 (comment).
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: