Bug 2178640 - NNCP with DNS-only configuration reorders IP addresses
Summary: NNCP with DNS-only configuration reorders IP addresses
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nmstate
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-15 13:56 UTC by Mat Kowalski
Modified: 2023-07-18 07:06 UTC (History)
8 users (show)

Fixed In Version: nmstate-1.4.3-1.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:
sgurnale: needinfo-


Attachments (Terms of Use)
verified.log (5.09 KB, text/plain)
2023-05-08 02:44 UTC, Mingyu Shi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker NMT-388 0 None None None 2023-03-15 13:57:27 UTC
Red Hat Issue Tracker OCPBUGS-8248 0 None None None 2023-03-15 13:57:59 UTC
Red Hat Issue Tracker RHELPLAN-151938 0 None None None 2023-03-15 13:57:31 UTC

Description Mat Kowalski 2023-03-15 13:56:55 UTC
Description of problem:

It has been observed that when applying NNCP that defines only global DNS config and does not configure any interface specifically, the IP addresses on the interface holding default gateway get reordered.

This is not desired for various reasons, but to simplify it can be said that global DNS config should not affect at all the IP configuration of the interface.

Version-Release number of selected component (if applicable):

nmstate-1.0.2-21.el8_4


How reproducible:

Always, if order of IP addresses before applying NNCP is not an alphabetical order.


Steps to Reproduce:
1. Create network interface with multiple IP addresses
2. Make sure the order of IP addresses is not alphabetical
3. Create NNCP without IP address configuration (e.g. with only global DNS configuration)

Actual results:

IP addresses on the interface holding default gateway are now sorted alphabetically. The 1st IP address from before NNCP is not any more the 1st.


Expected results:

Order of IP addresses remain unchanged.

Comment 1 Mat Kowalski 2023-03-15 14:39:31 UTC
Please note this affects a customer with OCP 4.10, thus it needs a backport back to 8.4

Comment 2 Gris Ge 2023-03-26 02:45:53 UTC
Patch merged in upstream: https://github.com/nmstate/nmstate/pull/2274

Comment 10 Mingyu Shi 2023-05-08 02:44:14 UTC
Created attachment 1963090 [details]
verified.log

Verified with:
nmstate-1.4.4-2.el8.x86_64
nispor-1.2.10-1.el8.x86_64
NetworkManager-1.40.16-4.el8.x86_64
DISTRO=RHEL-8.9.0-20230503.20


Note You need to log in before you can comment on or make changes to this bug.