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

/network/info is not reporting all interfaces #5588

Open
offbyone opened this issue Jan 29, 2025 · 0 comments
Open

/network/info is not reporting all interfaces #5588

offbyone opened this issue Jan 29, 2025 · 0 comments
Labels

Comments

@offbyone
Copy link

Describe the issue you are experiencing

I use a the tailscale community addon: https://github.com/hassio-addons/addon-tailscale/tree/main

This addon creates a tailscale0 interface that allows access to the tailnet.

The /network/info API, however, does not report this interface to other addons. I can invoke that API from the Samba addon, and what I see is just the wlan0 and end0 interfaces. The tailscale0 interface is visible in the output of ifconfig on the HA ssh shell, though.

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Steps to reproduce the issue

  1. Install and configure the tailscale addon; it's working fine
  2. Install and configure the Samba addon; it is accessible from the LAN
  3. Shell into the samba addon and invoke the API for /network/info and note the lack of the tailscale interface:
#!/usr/bin/with-contenv bashio

bashio::api.supervisor GET /network/info | jq

Anything in the Supervisor logs that might be useful for us?

Filtered for "network": 


2025-01-28 21:21:50.249 INFO (MainThread) [supervisor.host.network] Updating local network information
2025-01-28 23:08:11.298 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_tailscale
2025-01-28 23:08:11.400 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/wlan0/info access from a0d7b954_tailscale
2025-01-28 23:08:11.533 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/end0/info access from a0d7b954_tailscale
2025-01-28 23:28:31.654 INFO (MainThread) [supervisor.host.network] Updating local network information
2025-01-29 00:00:23.849 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_tailscale
2025-01-29 00:00:23.956 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/wlan0/info access from a0d7b954_tailscale
2025-01-29 00:00:24.089 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/end0/info access from a0d7b954_tailscale
2025-01-29 01:35:13.062 INFO (MainThread) [supervisor.host.network] Updating local network information
2025-01-29 03:41:54.487 INFO (MainThread) [supervisor.host.network] Updating local network information
2025-01-29 05:48:35.979 INFO (MainThread) [supervisor.host.network] Updating local network information
2025-01-29 07:20:38.569 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_samba
2025-01-29 07:45:01.676 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_tailscale
2025-01-29 07:45:01.774 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/wlan0/info access from a0d7b954_tailscale
2025-01-29 07:45:01.934 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/end0/info access from a0d7b954_tailscale
2025-01-29 07:45:01.957 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/end0/info access from a0d7b954_tailscale
2025-01-29 07:46:07.048 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_samba
2025-01-29 07:48:13.288 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_samba
2025-01-29 07:51:00.805 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_samba
2025-01-29 07:55:17.397 INFO (MainThread) [supervisor.host.network] Updating local network information
2025-01-29 08:13:23.162 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh
2025-01-29 08:13:23.179 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh
2025-01-29 08:16:59.989 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh
2025-01-29 08:16:59.996 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh
2025-01-29 08:35:42.308 WARNING (MainThread) [supervisor.api.middleware.security] /network/reload no role for core_samba
2025-01-29 08:35:42.308 ERROR (MainThread) [supervisor.api.middleware.security] Invalid token for access /network/reload
2025-01-29 08:35:57.049 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh
2025-01-29 08:35:57.057 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh
2025-01-29 08:36:19.704 WARNING (MainThread) [supervisor.api.middleware.security] /network/reload no role for core_samba
2025-01-29 08:36:19.705 ERROR (MainThread) [supervisor.api.middleware.security] Invalid token for access /network/reload
2025-01-29 08:46:21.063 WARNING (MainThread) [supervisor.api.middleware.security] /network/reload no role for core_samba
2025-01-29 08:46:21.063 ERROR (MainThread) [supervisor.api.middleware.security] Invalid token for access /network/reload
2025-01-29 08:47:22.370 WARNING (MainThread) [supervisor.api.middleware.security] /network/reload no role for core_samba
2025-01-29 08:47:22.370 ERROR (MainThread) [supervisor.api.middleware.security] Invalid token for access /network/reload
2025-01-29 08:48:35.241 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_samba
2025-01-29 08:48:50.063 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_samba

System Health information

"There are currently no repairs pending"

Supervisor diagnostics

config_entry-hassio-baf7930548843f28a4608c05514c9af4.json

Additional information

This is an outgrowth of the HA community thread at https://community.home-assistant.io/t/tailscale-add-on-and-samba-network-storage-on-vps-with-tailscale/827045/3?u=offby1

@offbyone offbyone added the bug label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant