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

Enhance log failure when migrate-ifcfg-rh option does not work in RHEL 10

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • No
    • Low
    • 1
    • rhel-net-mgmt
    • ssg_networking
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • NMT SST - Refine next
    • Hide

      Definition of Done:

      Please mark each item below with ( / ) if completed or ( x ) if incomplete:

      ( ) The acceptance criteria defined below are met.

      Given a system administrator attempts to use the nmcli con migrate or migrate-ifcfg-rh option on a RHEL 10 system, where the ifcfg backend is not supported, 

      When they run the migration command that would typically convert ifcfg configurations, 

      Then, the command should fail gracefully and return an error message that clearly states: "The ifcfg configuration method is no longer supported in RHEL 10. Please use a different configuration method, such as the keyfile format. Refer to the NetworkManager documentation for more details." 

      Definition of Done:

      • The implementation meets the acceptance criteria
      • Integration tests are written and pass
      • The code is part of a downstream build attached to an errata

      ( ) Code changes are included in a downstream build attached to an errata.


      ( ) All required testing (manual and/or automated) passes successfully.


      ( ) Related documentation updates (if applicable) have been completed.

      Show
      Definition of Done: Please mark each item below with ( / ) if completed or ( x ) if incomplete: ( ) The acceptance criteria defined below are met. Given a system administrator attempts to use the nmcli con migrate or migrate-ifcfg-rh option on a RHEL 10 system, where the ifcfg backend is not supported,  When they run the migration command that would typically convert ifcfg configurations,  Then, the command should fail gracefully and return an error message that clearly states: "The ifcfg configuration method is no longer supported in RHEL 10. Please use a different configuration method, such as the keyfile format. Refer to the NetworkManager documentation for more details."  Definition of Done: The implementation meets the acceptance criteria Integration tests are written and pass The code is part of a downstream build attached to an errata ( ) Code changes are included in a downstream build attached to an errata. ( ) All required testing (manual and/or automated) passes successfully. ( ) Related documentation updates (if applicable) have been completed.
    • None
    • None
    • All
    • None

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

      When we try to use migrate-ifcfg-rh option, it does not work in RHEL 10

      I think this is because now we do not have ifcfg-rh plugin and /etc/sysconfig/network-scripts directory is missing so I think migrate-ifcfg-rh may be not needed.

      1. ls -lh  /etc/sysconfig/network*
        rw-rr-. 1 root root 30 Sep 13 00:56 /etc/sysconfig/network

      If I create purposefully ifcfg-* file (/etc/sysconfig/network-scripts/ifcfg-enp7s0), after reboot it was not migrated.

      # nmcli connection migrate /etc/sysconfig/network-scripts/ifcfg-enp7s0

      Error: unknown connection '/etc/sysconfig/network-scripts/ifcfg-enp7s0'.
      Error: cannot migrate unknown connection(s): '/etc/sysconfig/network-scripts/ifcfg-enp7s0'.

       

      One more thing I notice is, even if we have files under system-connections , when we run "nmcli con migrate" it says files migrated, but that is not needed as they are already in "system-connections"

       

      1. nmcli -f filename,uuid,name,device con s
        FILENAME                                                    UUID                                  NAME    DEVICE 
        /etc/NetworkManager/system-connections/enp1s0.nmconnection  70d862ca-6888-4c77-906a-de24644cb948  enp1s0  enp1s0 
        /run/NetworkManager/system-connections/lo.nmconnection      0b08deda-77f0-4179-a4e2-cfd0337acba8  lo      lo    
      1. nmcli connection migrate 
        Connection 'enp1s0' (70d862ca-6888-4c77-906a-de24644cb948) successfully migrated.
        Connection 'lo' (0b08deda-77f0-4179-a4e2-cfd0337acba8) successfully migrated.
      1. nmcli -f filename,uuid,name,device con s
        FILENAME                                                    UUID                                  NAME    DEVICE 
        /etc/NetworkManager/system-connections/enp1s0.nmconnection  70d862ca-6888-4c77-906a-de24644cb948  enp1s0  enp1s0 
        /run/NetworkManager/system-connections/lo.nmconnection      0b08deda-77f0-4179-a4e2-cfd0337acba8  lo      lo     

       

      As ifcfg-rh is removed, should not we remove "nmcli con migrate" and "migrate-ifcfg-rh" ?

       

              rh-ee-sfaye Stanislas Faye
              prpatel@redhat.com Prijesh Patel
              Network Management Team Network Management Team
              Vladimir Benes Vladimir Benes
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: