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

Supervisor create new connection interface when modified #4383

Open
warshoot3r opened this issue Jun 15, 2023 · 21 comments
Open

Supervisor create new connection interface when modified #4383

warshoot3r opened this issue Jun 15, 2023 · 21 comments
Labels
bug no-stale Avoids issue going stale

Comments

@warshoot3r
Copy link

Describe the issue you are experiencing

If you use are using VLAN. This is not affected if you are using ethernet only or Wifi.

Few issues happening:
Connection name is incorrect. It displays "Supervisor eth0.30.30" rather
than it should be "Supervisor eth0.30".

The new UUID is being generated every time when you make a change on the vlan networks.

Supervisor creates a new connection in NetworkManager ending up with lots of duplicate connections. But they are not connected so it it not major issue.

What type of installation are you running?

Home Assistant Supervised

Which operating system are you running on?

Other (e.g., Raspbian/Raspberry Pi OS/Fedora)

Steps to reproduce the issue

  1. SSH to host
  2. Create VLAN with "ha network vlan eth0 20"
  3. Run "ha network reload" so that vlan is visible in Network Tab.
  4. http://:8123/config/network. Set it to disabled
  5. http://:8123/config/network. Set it to Enabled
  6. run "nmcli con" on the host. Supervisor creates another connection everytime it is modified
    ...

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

Host logs:
Jun 15 15:38:51 hassio NetworkManager[24779]: <info>  [1686839931.3838] device (eth0.30): state change: activated -> deactivating (reason 'new-activation', sys-iface-state: 'managed')
Jun 15 15:38:51 hassio NetworkManager[24779]: <info>  [1686839931.3880] audit: op="connection-add-activate" uuid="cf6be0f2-2c29-49a0-ac97-d9640fc4caa1" name="Supervisor eth0.30.30" pid=1693 uid=0 result="success"
Jun 15 15:38:51 hassio systemd[1]: Starting Network Manager Script Dispatcher Service...
Jun 15 15:38:51 hassio systemd[1]: Started Network Manager Script Dispatcher Service.
Jun 15 15:38:51 hassio NetworkManager[24779]: <info>  [1686839931.4763] device (eth0.30): state change: deactivating -> disconnected (reason 'new-activation', sys-iface-state: 'managed')
Jun 15 15:38:51 hassio NetworkManager[24779]: <info>  [1686839931.5329] device (eth0.30): Activation: starting connection 'Supervisor eth0.30.30' (cf6be0f2-2c29-49a0-ac97-d9640fc4caa1)
Jun 15 15:38:51 hassio NetworkManager[24779]: <info>  [1686839931.5457] device (eth0.30): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Jun 15 15:38:51 hassio NetworkManager[24779]: <info>  [1686839931.5482] device (eth0.30): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jun 15 15:38:51 hassio NetworkManager[24779]: <info>  [1686839931.5540] device (eth0.30): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Jun 15 15:38:51 hassio NetworkManager[24779]: <info>  [1686839931.5558] dhcp4 (eth0.30): activation: beginning transaction (timeout in 45 seconds)
Jun 15 15:38:51 hassio NetworkManager[24779]: <info>  [1686839931.6650] dhcp4 (eth0.30): state changed unknown -> bound, address=10.10.30.200
Jun 15 15:38:51 hassio NetworkManager[24779]: <info>  [1686839931.6691] device (eth0.30): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Jun 15 15:38:51 hassio NetworkManager[24779]: <info>  [1686839931.6749] device (eth0.30): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Jun 15 15:38:51 hassio NetworkManager[24779]: <info>  [1686839931.6756] device (eth0.30): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Jun 15 15:38:51 hassio NetworkManager[24779]: <info>  [1686839931.6973] device (eth0.30): Activation: successful, device activated.

Supervisor logs:
CoreState.RUNNING
23-06-15 15:33:24 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
23-06-15 15:33:40 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token

23-06-15 15:38:51 INFO (MainThread) [supervisor.host.network] Updating local network information

System Health information

System Information

version core-2023.6.2
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.4
os_name Linux
os_version 6.1.21-v8+
arch aarch64
timezone Europe/London
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.32.1
Stage running
Available Repositories 1360
Downloaded Repositories 18
AccuWeather
can_reach_server ok
remaining_requests 39
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Debian GNU/Linux 11 (bullseye)
update_channel stable
supervisor_version supervisor-2023.06.2
agent_version 1.5.1
docker_version 24.0.2
disk_total 117.1 GB
disk_used 15.2 GB
healthy true
supported failed to load: supported
supervisor_api ok
version_api ok
installed_addons Mosquitto broker (6.2.1), Node-RED (14.2.2), AirCast (3.5.3), AirSonos (3.5.4), TasmoAdmin (0.24.4), ESPHome (2023.5.5), File editor (5.6.0), Home Assistant Google Drive Backup (0.110.4), Duck DNS (1.15.0), NGINX Home Assistant SSL proxy (3.5.0), Log Viewer (0.15.1), chrony (2.6.0), Advanced SSH & Web Terminal (15.0.2), Matter Server (4.6.0)
Dashboards
dashboards 3
resources 13
views 15
mode storage
Recorder
oldest_recorder_run 13 June 2023 at 22:03
current_recorder_run 15 June 2023 at 14:33
estimated_db_size 64.85 MiB
database_engine sqlite
database_version 3.41.2

Supervisor diagnostics

No response

Additional information

No response

@warshoot3r warshoot3r added the bug label Jun 15, 2023
@Particpant
Copy link

I'd like to confirm that I can also repro this bug with vlans that were generated via nmcli. Enabling/disabling, or even turning ipv4/ipv6 on or off in the system UIs creates duplicated networks.

@github-actions
Copy link

github-actions bot commented Aug 8, 2023

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 8, 2023
@Particpant
Copy link

Issue still present.

@github-actions github-actions bot removed the stale label Aug 8, 2023
@github-actions
Copy link

github-actions bot commented Sep 7, 2023

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 7, 2023
@Particpant
Copy link

Issue still present

@github-actions github-actions bot removed the stale label Sep 8, 2023
@github-actions
Copy link

github-actions bot commented Oct 8, 2023

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Oct 8, 2023
@Particpant
Copy link

Not resolved.

@github-actions github-actions bot removed the stale label Oct 9, 2023
@Lumute
Copy link

Lumute commented Oct 22, 2023

I just noticed this issue, manually deleted all duplicates using this command:

nmcli con show
nmcli con delete UUID

Anyway, just to confirm this is still present as of latest everything:

Home Assistant 2023.10.4
Supervisor 2023.10.0
Operating System 11.0
Frontend 20231005.0 - latest

Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Nov 21, 2023
@Particpant
Copy link

Not resolved.

@github-actions github-actions bot removed the stale label Nov 28, 2023
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Dec 28, 2023
@Particpant
Copy link

Not resolved.

@github-actions github-actions bot removed the stale label Dec 31, 2023
@linucks
Copy link

linucks commented Jan 26, 2024

I'm experiencing this too. It would be helpful to resolve this as it makes it hard to automate management of the network interfaces.

Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 25, 2024
@Particpant
Copy link

Not resolved.

@github-actions github-actions bot removed the stale label Feb 25, 2024
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Mar 26, 2024
@agners agners added no-stale Avoids issue going stale and removed stale labels Mar 27, 2024
@Particpant
Copy link

👏 Thank you. @agners!

@agners
Copy link
Member

agners commented Apr 11, 2024

@Particpant the naming fix is now on the stable channel. Can you check if this resolves the issue for you?

@Particpant
Copy link

Will do! Might be a day or so.

@Particpant
Copy link

Had some unexpected delays, still intending to verify the fix as soon as I can.

@Particpant
Copy link

seems to be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug no-stale Avoids issue going stale
Projects
None yet
Development

No branches or pull requests

5 participants