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.
Please note this affects a customer with OCP 4.10, thus it needs a backport back to 8.4
Patch merged in upstream: https://github.com/nmstate/nmstate/pull/2274
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