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

Apply Fails When Bond Ports Refer to Physical Interfaces with mac-identifier in YAML

    • nmstate-2.2.38-1.el9
    • No
    • Moderate
    • rhel-sst-network-management
    • ssg_networking
    • 1
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      The issue arises with the following YAML configuration:
       interfaces:
       - name: eth0
         type: ethernet
         state: up
         identifier: mac-address
         mac-address: 00:23:45:67:89:1a
       - name: eth1
         type: ethernet
         state: up
         identifier: mac-address
         mac-address: 00:23:45:67:89:1b
       - name: bond0
         type: bond
         state: up
         link-aggregation:
           mode: balance-rr
           port:
             - enp8s0
             - enp7s0
      {{}}
      bond0's ports (enp8s0 and enp7s0) refer to physical interfaces that have mac-identifier specified in the YAML. This results in the nmstate apply operation failing:

      [2024-09-15T07:50:12Z INFO  nmstatectl] Nmstate version: 2.2.27
      [2024-09-15T07:50:12Z INFO  nmstate::query_apply::net_state] Created checkpoint /org/freedesktop/NetworkManager/Checkpoint/3
      [2024-09-15T07:50:12Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("fffad3ab-5bb9-4f04-be5f-0d57c1f82658"), ID Some("bond0"), type Some("bond") name Some("bond0")
      [2024-09-15T07:50:12Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("a836c9ef-1c5f-434b-9106-58b23b5dce49"), ID Some("eth0"), type Some("802-3-ethernet") name None
      [2024-09-15T07:50:12Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("795e7a1b-fc7d-487a-9c8b-4d7da759d1ee"), ID Some("eth1"), type Some("802-3-ethernet") name None
      [2024-09-15T07:50:12Z INFO  nmstate::nm::query_apply::profile] Activating connection fffad3ab-5bb9-4f04-be5f-0d57c1f82658: bond0/bond
      [2024-09-15T07:50:12Z INFO  nmstate::nm::query_apply::profile] Activating connection a836c9ef-1c5f-434b-9106-58b23b5dce49: /802-3-ethernet
      [2024-09-15T07:50:12Z INFO  nmstate::nm::query_apply::profile] Activating connection 795e7a1b-fc7d-487a-9c8b-4d7da759d1ee: /802-3-ethernet
      [2024-09-15T07:50:12Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: enp7s0.interface.profile-name desire '"eth0"', current '"Wired connection 1"'
      [2024-09-15T07:50:13Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: enp8s0.interface.mac-address desire '"00:23:45:67:89:1B"', current '"00:23:45:67:89:1A"'
      [2024-09-15T07:50:14Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: enp8s0.interface.mac-address desire '"00:23:45:67:89:1B"', current '"00:23:45:67:89:1A"'
      [2024-09-15T07:50:15Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: enp8s0.interface.mac-address desire '"00:23:45:67:89:1B"', current '"00:23:45:67:89:1A"'
      [2024-09-15T07:50:16Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: enp8s0.interface.mac-address desire '"00:23:45:67:89:1B"', current '"00:23:45:67:89:1A"'
      [2024-09-15T07:50:18Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("fffad3ab-5bb9-4f04-be5f-0d57c1f82658"), ID Some("bond0"), type Some("bond") name Some("bond0")
      [2024-09-15T07:50:18Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("a836c9ef-1c5f-434b-9106-58b23b5dce49"), ID Some("eth0"), type Some("802-3-ethernet") name None
      [2024-09-15T07:50:18Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("795e7a1b-fc7d-487a-9c8b-4d7da759d1ee"), ID Some("eth1"), type Some("802-3-ethernet") name None
      [2024-09-15T07:50:18Z INFO  nmstate::nm::query_apply::profile] Activating connection fffad3ab-5bb9-4f04-be5f-0d57c1f82658: bond0/bond
      [2024-09-15T07:50:18Z INFO  nmstate::nm::query_apply::profile] Reapplying connection a836c9ef-1c5f-434b-9106-58b23b5dce49: /802-3-ethernet
      [2024-09-15T07:50:18Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 795e7a1b-fc7d-487a-9c8b-4d7da759d1ee: /802-3-ethernet
      [2024-09-15T07:50:18Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: bond0.interface.link-aggregation.port desire '["enp7s0","enp8s0"]', current '["enp7s0"]'
      [2024-09-15T07:50:19Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: enp8s0.interface.mac-address desire '"00:23:45:67:89:1B"', current '"00:23:45:67:89:1A"'
      [2024-09-15T07:50:20Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: enp8s0.interface.mac-address desire '"00:23:45:67:89:1B"', current '"00:23:45:67:89:1A"'
      [2024-09-15T07:50:21Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: enp8s0.interface.mac-address desire '"00:23:45:67:89:1B"', current '"00:23:45:67:89:1A"'
      [2024-09-15T07:50:22Z INFO  nmstate::query_apply::net_state] Rollbacked to checkpoint /org/freedesktop/NetworkManager/Checkpoint/3
      NmstateError: VerificationError: Verification failure: enp8s0.interface.mac-address desire '"00:23:45:67:89:1B"', current '"00:23:45:67:89:1A"' 

              rh-ee-mshi1 Mingyu Shi
              rh-ee-lhadad Linoy Hadad
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: