Bug 2196441

Summary: NetworkManager brings down connection when the IPv6 link-local address is removed
Product: Red Hat Enterprise Linux 9 Reporter: Beniamino Galvani <bgalvani>
Component: NetworkManagerAssignee: Beniamino Galvani <bgalvani>
Status: VERIFIED --- QA Contact: Vladimir Benes <vbenes>
Severity: unspecified Docs Contact:
Priority: urgent    
Version: 9.3CC: ashsharm, bgalvani, lrintel, rkhan, rpittau, sfaye, sukulkar, till, vbenes
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: NetworkManager-1.43.8-1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2209353 2209359 2209360 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2209353, 2209359, 2209360    
Attachments:
Description Flags
Reproducer script none

Description Beniamino Galvani 2023-05-09 07:22:43 UTC
Description of problem:

When the link-local address is removed externally, NetworkManager marks the ipv6ll method as failed and the whole activation fails if IPv6 is required. This is particularly bad when the device is virtual (bond, bridge, etc.) because the interface will disappear. This is a regression introduced in 1.36.0.


Version-Release number of selected component:

All versions from 1.36 to current git main (1.43.7)


Steps to Reproduce:

$ nmcli connection add type ethernet ifname enp1s0 ipv4.method disabled connection.autoconnect no
$ nmcli connection up ethernet-enp1s0
$ ip addr flush dev enp1s0
$ nmcli connection


Actual results:
The connection goes down.


Expected results:
The connection stays up.


Additional info:
Related to https://issues.redhat.com/browse/OCPBUGS-4501

Comment 3 Beniamino Galvani 2023-05-16 15:52:24 UTC
Created attachment 1964922 [details]
Reproducer script

Comment 11 Vladimir Benes 2023-06-07 08:39:23 UTC
Test written, compose tested.
-> VERIFIED