supervisor: Failed to change network settings

Describe the issue you are experiencing

Trying to change the IPv4 network interface from DHCP to static I get the following pop-up: Can't update config on enp4s0: ipv4.addresses: this property cannot be empty for 'method=manual'

What is the used version of the Supervisor?

supervisor-2022.04.4

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

What is the version of your installed operating system?

8.0.rc3

What version of Home Assistant Core is installed?

core-2022.5.0b1

Steps to reproduce the issue

  1. Go to Configuration -> System -> Network
  2. Expand IPv4 under Configure network interfaces.
  3. Select Static instead of DHCP and try to save. …

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

Log Details (ERROR)
Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:120
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 2:25:38 AM (1 occurrences)
Last logged: 2:25:38 AM

Failed to to call /network/interface/enp4s0/update - Can't update config on enp4s0: ipv4.addresses: this property cannot be empty for 'method=manual'

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Works as expected:

$ ha network update eth0 --ipv4-method static --ipv4-address 192.168.1.4/24
Command completed successfully.

Thank you so much @mdegat01 🎉

Thanks @agners . Ok I got a root cause. Unwelcome side effect of #3570 . Putting in a fix now.

@mdegat01 I tried that syntax too before, same error:

[core-ssh ~]$ ha network update eth0 --ipv4-address 192.168.1.4/24 --ipv4-method static
Error: Can't update config on eth0: ipv4.addresses: this property cannot be empty for 'method=manual'

[core-ssh ~]$ ha network update eth0 --ipv4-method static --ipv4-address 192.168.1.4
Error: Can't update config on eth0: ipv4.addresses: this property cannot be empty for 'method=manual'

[core-ssh ~]$ ha network update eth0 --ipv4-method static --ipv4-address 192.168.1.4/24
Error: Can't update config on eth0: ipv4.addresses: this property cannot be empty for 'method=manual'

Version:

$ ha supervisor info | grep -E '^version:'
version: 2022.05.0