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

NetworkManager not recognizing the IPv4/IPv6 method change.

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

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-7-els, rhel-8.0.0, rhel-9.0.0
    • NetworkManager
    • No
    • Low
    • rhel-net-mgmt
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      Definition of Done:

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

      ( ) The acceptance criteria defined below are met.

      None


      ( ) 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. None ( ) 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?

      After changing the IPv4/IPv6 method manually from DHCP to manual followed by `nmcli connection reload`, the NetworkManager does not recognize the connection profile. 

      How reproducible is this bug?:

      Always and On all RHEL versions that have NetworkManager installed.

      Steps to reproduce

      1. Create a DHCP connection using nmcli.
         # nmcli connection add type ethernet ifname eth0 con-name eth0
      2. Reload the connection:
        #nmcli connection reload
      3. Verify the interface got the IP from DHCP.
      4. Go to /etc/NetworkManager/system-connections/
      5. Edit the profile/keyfile/interface configuration.
      6. Change the method from DHCP to manual for IPv4 or IPv6.
        #vi  /etc/NetworkManager/system-connections/eth0.nmconnection

       

      [connection]
      id=eth0
      uuid=856cd26d-f6bb-476a-a8c3-02253287d484
      type=ethernet
      interface-name=eth0
      
      [ethernet]
      [ipv4] 
      method=auto  <<<----//Change this to manual
      [ipv6] 
      addr-gen-mode=default 
      method=auto  <<<----//Change this to manual 

       

           7.Now reload the connection.

                # nmcli connection reload

      8. After reloading nmcli the existing connection profile is no longer visible in `nmcli connection show` output.

            # nmcli connection show 
                NAME    UUID                                  TYPE    DEVICE

       

      • messages shows

       

      Jan 20 10:00:24 localhost NetworkManager[668]: <warn>  [1737385224.6339] keyfile: load: "/etc/NetworkManager/system-connections/eth0-856cd26d-f6bb-476a-a8c3-02253287d484.nmconnection": failed to load connection: invalid connection: ipv4.addresses: this property cannot be empty for 'method=manual'
      Jan 20 10:00:24 localhost NetworkManager[668]: <info>  [1737385224.6357] device (eth0): state change: activated -> deactivating (reason 'connection-removed', sys-iface-state: 'managed')
      Jan 20 10:00:24 localhost NetworkManager[668]: <info>  [1737385224.6393] audit: op="connections-reload" pid=1832 uid=0 result="success"
      Jan 20 10:00:24 localhost systemd[1]: Starting Network Manager Script Dispatcher Service...
      Jan 20 10:00:24 localhost systemd[1]: Started Network Manager Script Dispatcher Service.
      Jan 20 10:00:24 localhost NetworkManager[668]: <info>  [1737385224.6653] device (eth0): state change: deactivating -> disconnected (reason 'connection-removed', sys-iface-state: 'managed')
      Jan 20 10:00:24 localhost NetworkManager[668]: <info>  [1737385224.6659] dhcp4 (eth0): canceled DHCP transaction
      Jan 20 10:00:24 localhost NetworkManager[668]: <info>  [1737385224.6659] dhcp4 (eth0): activation: beginning transaction (timeout in 45 seconds)
      Jan 20 10:00:24 localhost NetworkManager[668]: <info>  [1737385224.6659] dhcp4 (eth0): state changed no lease
      Jan 20 10:00:34 localhost systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully. 

       

       

              rh-ee-sfaye Stanislas Faye
              rhn-support-owaskar Omkar Waskar (Inactive)
              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: