RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2178640 - NNCP with DNS-only configuration reorders IP addresses
Summary: NNCP with DNS-only configuration reorders IP addresses
Keywords:
Status: CLOSED ERRATA
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-11-14 16:13 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: 2023-11-14 15:26:03 UTC
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
Red Hat Product Errata RHBA-2023:6918 0 None None None 2023-11-14 15:26:35 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

Comment 12 errata-xmlrpc 2023-11-14 15:26:03 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:6918


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