[Networkmanager] manual method and may-fail default

Adam Majer adamm at zombino.com
Sat Aug 19 12:06:23 UTC 2023


Hi all,

By default, any connection method is set to may-fail=true, even when the 
method is manual. This results in funny errors -- for full discussion 
please see suse's bugzilla [1]. Re-iterating here, my setup was 
something like

ipv6.method:                            manual
ipv6.dns: 
2a01:4ff:ff00::add:1,2a01:4ff:ff00::add:2
ipv6.dns-search:                        --
ipv6.dns-options:                       --
ipv6.dns-priority:                      0
ipv6.addresses:                         2a01:4f8:c012:9cdf::1/64, 
2a01:4f8:c012:9cdf:0:aead:1:aead/64


ipv4.method:                            auto
ipv4.dns:                               --
ipv4.dns-search:                        --
ipv4.dns-options:                       --
ipv4.dns-priority:                      0
ipv4.addresses:                         --


The IPv4 method was configured with DHCP and actually succeeded before 
the manual IPv6 configuration was run. Since the default settings for 
may-fail is TRUE, the interface was deemed configured and ready to use 
after DHCP succeeded. This then cascaded and ended up with sshd not 
coming up in these circumstance as the configured IPv6 address wasn't on 
the interface.


The question here is whether this actually makes sense. Wouldn't it make 
more sense that when the method is set to "manual" that "may-fail" is 
then reset to "false" if it still has the default value? Manual IP 
assignments should really not fail. Current setting is rather 
counterintuitive in such a scenario.

- Adam

[1] - https://bugzilla.suse.com/1212627



More information about the Networkmanager mailing list