Skip to content
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

System info does not consider other container runtimes #73982

Closed
ykgmfq opened this issue Jun 25, 2022 · 1 comment
Closed

System info does not consider other container runtimes #73982

ykgmfq opened this issue Jun 25, 2022 · 1 comment

Comments

@ykgmfq
Copy link

ykgmfq commented Jun 25, 2022

The problem

Deployment of the official HA container on container runtimes which do not provide /.dockerenv results in installation type "Unknown". The expected type is "Home Assistant Container".

One such container runtime, Podman, provides the environment variable container=podman instead of the file /.dockerenv, see containers/podman#529.

In system_info.py, I propose to set info_object["docker"] to true when either /.dockerenv is present or os.environ.get('container') is true.

What version of Home Assistant Core has the issue?

2022.6.7

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

System Health

version core-2022.6.7
installation_type Unknown
dev false
hassio false
docker false
user root
virtualenv false
python_version 3.9.12
os_name Linux
os_version 5.10.0-15-amd64
arch x86_64
timezone Europe/Berlin
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Dashboards
dashboards 1
resources 0
views 6
mode storage
Recorder
oldest_recorder_run 21. Juni 2022 um 11:00
current_recorder_run 25. Juni 2022 um 12:27
estimated_db_size 491.46 MiB
database_engine postgresql
database_version 13.7

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@probot-home-assistant
Copy link

system_health documentation
system_health source
(message by IssueLinks)

@github-actions github-actions bot added the stale label Jul 28, 2022
@github-actions github-actions bot closed this as completed Aug 4, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants