Bug 2139443

Summary: Preserve the order of IPv6 addresses
Product: Red Hat Enterprise Linux 8 Reporter: Gris Ge <fge>
Component: NetworkManagerAssignee: NetworkManager Development Team <nm-team>
Status: CLOSED NOTABUG QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.7CC: bgalvani, lrintel, rkhan, sukulkar, thaller, till
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-02 14:35:40 UTC 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:

Description Gris Ge 2022-11-02 14:30:16 UTC
Description of problem:


Version-Release number of selected component (if applicable):
NetworkManager-1.40.0-1.el8.x86_64

How reproducible:
100%

Steps to Reproduce:

nmcli c del dummy1

nmcli c add type dummy ifname dummy1 \
    connection.id dummy1 \
    ipv4.method manual \
    ipv4.address 192.0.2.2/24,192.0.2.1/24 \
    ipv6.method manual \
    ipv6.address 2001:db8:2::1/64,2001:db8:1::1/64

sleep 2
ip addr show dev dummy1

Actual results:

2001:db8:2::1/64 been listed after 2001:db8:1::1/64

Expected results:

2001:db8:2::1/64 been listed before 2001:db8:1::1/64


Additional info:

Comment 1 Thomas Haller 2022-11-02 14:34:52 UTC
in the past, the order of "ipv6.addresses" was reversed.

This was fixed/changed upstream in 1.40.0 and in rhel-9.1+.

rhel-8.7+ keeps the old behavior.

This is intended.

See this downstream patch: https://gitlab.com/redhat/centos-stream/rpms/NetworkManager/-/blob/53768ceaad3618e01be7597075405a05914193cf/0003-order-ipv6-addresses.patch



The point is to stick to earlier rhel-8 behavior, which makes it inconsistent with upstream and rhel-9.



This cannot be fixed, without breaking something else.