Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-25447

copy-from-mac nmstate does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • 4.14.z
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • No
    • None
    • None
    • None
    • AI-38, AI-39
    • 2
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          When doing ZTP of an MNO cluster for Telcos, they need to control the mac address of the bond interfaces they create. That can take place according to nmstate using the copy-mac-from https://nmstate.io/devel/api.html#interfacecopy_mac_from. That does not work because the nmstateconfig file produces does not pass the validation of infraenv

      Version-Release number of selected component (if applicable):

          4.14

      How reproducible:

          Through siteconfig you have the following nmstateconfig
      apiVersion: agent-install.openshift.io/v1beta1
      kind: NMStateConfig
      metadata:
        annotations:
          argocd.argoproj.io/sync-wave: "1"
          kubectl.kubernetes.io/last-applied-configuration: |
            {"apiVersion":"agent-install.openshift.io/v1beta1","kind":"NMStateConfig","metadata":{"annotations":{"argocd.argoproj.io/sync-wave":"1","ran.openshift.io/ztp-gitops-generated":"{}"},"labels":{"app.kubernetes.io/instance":"clusters","nmstate-label":"5gc"},"name":"m0.5gc.eric.vlab","namespace":"5gc"},"spec":{"config":{"dns-resolver":{"config":{"server":["10.10.20.10"]}},"interfaces":[{"ipv4":{"enabled":false},"ipv6":{"enabled":false},"name":"ens3","state":"up","type":"ethernet"},{"ipv4":{"enabled":false},"ipv6":{"enabled":false},"name":"ens4","state":"up","type":"ethernet"},{"copy-mac-from":"ens4","link-aggregation":{"mode":"802.3ad","options":{"lacp_rate":"slow","miimon":100},"port":["ens3","ens4"]},"mtu":9000,"name":"bond0","state":"up","type":"bond"},{"ipv4":{"address":[{"ip":"10.10.10.116","prefix-length":24}],"dhcp":false,"enabled":true},"ipv6":{"enabled":false},"name":"bond0.10","state":"up","type":"vlan","vlan":{"base-iface":"bond0","id":10}},{"ipv4":{"address":[{"ip":"11.11.11.116","prefix-length":24}],"dhcp":false,"enabled":true},"ipv6":{"enabled":false},"name":"bond0.11","state":"up","type":"vlan","vlan":{"base-iface":"bond0","id":11}}],"routes":{"config":[{"destination":"0.0.0.0/0","next-hop-address":"10.10.10.1","next-hop-interface":"bond0.10","table-id":254}]}},"interfaces":[{"macAddress":"de:ad:be:ff:11:60","name":"ens3"},{"macAddress":"de:ad:be:ff:11:61","name":"ens4"}]}}
          ran.openshift.io/ztp-gitops-generated: '{}'
        creationTimestamp: "2023-12-14T15:09:17Z"
        generation: 2
        labels:
          app.kubernetes.io/instance: clusters
          nmstate-label: 5gc
        name: m0.5gc.eric.vlab
        namespace: 5gc
        resourceVersion: "771387"
        uid: a1b080a5-abe1-4b04-9b2a-6b87fcf9c476
      spec:
        config:
          dns-resolver:
            config:
              server:
              - 10.10.20.10
          interfaces:
          - ipv4:
              enabled: false
            ipv6:
              enabled: false
            name: ens3
            state: up
            type: ethernet
          - ipv4:
              enabled: false
            ipv6:
              enabled: false
            name: ens4
            state: up
            type: ethernet
          - copy-mac-from: ens4
            link-aggregation:
              mode: 802.3ad
              options:
                lacp_rate: slow
                miimon: 100
              port:
              - ens3
              - ens4
            mtu: 9000
            name: bond0
            state: up
            type: bond
          - ipv4:
              address:
              - ip: 10.10.10.116
                prefix-length: 24
              dhcp: false
              enabled: true
            ipv6:
              enabled: false
            name: bond0.10
            state: up
            type: vlan
            vlan:
              base-iface: bond0
              id: 10
          - ipv4:
              address:
              - ip: 11.11.11.116
                prefix-length: 24
              dhcp: false
              enabled: true
            ipv6:
              enabled: false
            name: bond0.11
            state: up
            type: vlan
            vlan:
              base-iface: bond0
              id: 11
          routes:
            config:
            - destination: 0.0.0.0/0
              next-hop-address: 10.10.10.1
              next-hop-interface: bond0.10
              table-id: 254
        interfaces:
        - macAddress: de:ad:be:ff:11:60
          name: ens3
        - macAddress: de:ad:be:ff:11:61
          name: ens4
      

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          

      Expected results:

          

      Additional info:

          

              oamizur Ori Amizur
              kkarampo@redhat.com Konstantinos Karampogias
              None
              None
              Lital Alon Lital Alon
              None
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: