Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-21132

nmcli NetworkManager connection migrate - doesn't detect newly created interface files in /etc/sysconfig/network-scripts until reboot

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Normal Normal
    • None
    • rhel-9.3.0.z
    • NetworkManager
    • None
    • Moderate
    • rhel-net-mgmt
    • ssg_networking
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • Hide

      Given a system administrator working on a Red Hat system, who has created and configured new interface files (like ifcfg-br0 and ifcfg-br1) in /etc/sysconfig/network-scripts/ using the old format,

      When they run nmcli connection migrate without rebooting the system,

      Then nmcli should detect and migrate these newly created interface files to the new NetworkManager format without requiring a system reboot.

      Definition of Done:

      • The implementation meets the acceptance criteria
      • Unit test and integration test are written and pass
      • The code is part of a build attached to an errata
      Show
      Given a system administrator working on a Red Hat system, who has created and configured new interface files (like ifcfg-br0 and ifcfg-br1) in /etc/sysconfig/network-scripts/ using the old format, When they run nmcli connection migrate without rebooting the system, Then nmcli should detect and migrate these newly created interface files to the new NetworkManager format without requiring a system reboot. Definition of Done: The implementation meets the acceptance criteria Unit test and integration test are written and pass The code is part of a build attached to an errata
    • None
    • None
    • All
    • None

      What were you trying to do that didn't work?

      Migrate newly created ifcfg-br0 and ifcfg-br1 files to the new NetworkManager format using nmcli connection migrate without rebooting my system.

      How reproducible:

       

      nmcli connection migrate

      The above command doesn't pick up on recently created /etc/sysconfig/network-scripts/ scripts such as ifcfg-br0 that my own bash script creates when setting up kvm.  However, if you reboot Red Hat, if you run the migration command again nmcli connection migrate, this time it picks up on the existence of the ifcfg-br0 and ifcfg-br1 files and migrates them properly.

       

      Why does it take a reboot for the migrate command to detect the new files in /etc/sysconfig/network-scripts/? 

       

      Neither running nmcli connection reload{{ or }}systemctl restart NetworkManager{{ causes nmcli connection migrate to refresh the list of network-scripts to migrate newly configured interfaces in the old format.}}

       

      https://forums.rockylinux.org/t/nmcli-connection-migrate-doesnt-know-about-recently-added-ifcfg-br0-in-etc-sysconfig-network-scripts-until-reboot/12437

      Steps to reproduce

      1.  Create and configure a new ifcfg-br0 interface file in /etc/sysconfig/network-scripts/ using the old format.
      2.  Run nmcli connection migrate
      3.  ifcfg-br0 is not migrated.
      4.  Reboot
      5.  Run nmcli connection migrate
      6.  ifcfg-br0 is migrated now. 

      Expected results

      nmcli connection migrate should not rely on a cache and scan for newly created old style interface files.  I shouldn't have to reboot to migrate newly created network scripts (in the old format).

      Actual results

      Nothing is migrated properly until reboot.

      Maybe provide a command / way to rescan for old interface files / configured connections?

              rh-ee-sfaye Stanislas Faye
              own3mall OwN 3m-All
              Network Management Team Network Management Team
              Vladimir Benes Vladimir Benes
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: