Bug 2149050

Summary: Addresses configured at different order than specified at state [rhel-8.4.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: nmstateAssignee: Fernando F. Mancera <ferferna>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 8.6CC: ferferna, fge, jiji, jishi, network-qe, rbobek, sfaye, till
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: nmstate-1.0.2-21.el8_4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2132570 Environment:
Last Closed: 2023-01-30 14:45:51 UTC Type: ---
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: 2132570    
Bug Blocks:    

Comment 4 Mingyu Shi 2022-12-13 04:28:42 UTC
Verified with:
nmstate-1.0.2-21.el8_4.noarch
nispor-1.0.1-5.el8_4.x86_64
NetworkManager-1.30.0-13.el8_4.x86_64
DISTRO=RHEL-8.4.0-updates-20211026.0

Comment 5 Mingyu Shi 2022-12-13 05:34:41 UTC
Notice it only guarantees the order configured by nmstate. For example, if an interface is not managed and configured multiple IPs via `ip address` command, `nmstatectl show` may show different order(kernel provides)

Comment 7 Gris Ge 2022-12-21 06:47:18 UTC
No extra patch required for nmstate. For the IPv4 address missorder after reapply(change existing interface) is caused by limitation of kernel API on IPv4. Since the order between subnet does not actually matters in any use case, I would suggest you to test on IP address ordering in the same subnet especially the `secondary` flag is corrected added to IPv4 address. For IPv6 address, they should be strictly ordered.

Comment 8 Mingyu Shi 2022-12-22 06:59:49 UTC
Used one subnet for ipv4, kept ipv6 part unchanged, all passed.

Comment 12 errata-xmlrpc 2023-01-30 14:45:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (nmstate bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:0501