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

NMState prefix-length is not respected during provisioning of cluster

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 3
    • None
    • No
    • None
    • None
    • None
    • Metal Platform 236
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      Configuration of NMState prefix-length is not respected during provisioning of cluster.

      install-config.yaml is configured for a /25, cluster is deployed with a /24 configured on the interface.

      OpenShift 4.12.2

      install-config.yaml

      networking:
        machineNetwork:
        - cidr: 192.168.40.0/25
        clusterNetwork:
        - cidr: 10.128.0.0/14
          hostPrefix: 23
        serviceNetwork:
        - 172.30.0.0/16
        networkType: OVNKubernetes
      
      
      hosts:
            - name: master01
              role: master
              bmc:
                address: redfish-virtualmedia://192.168.40.161/redfish/v1/Systems/1
                disableCertificateVerification: true
                username: root
                password: redhat123
              bootMACAddress: b4:96:91:b3:67:84
              rootDeviceHints:
                rotational: false
              networkConfig:
                interfaces:
                - name: ens1f0
                  type: ethernet
                  mtu: 1500
                  state: up
                  ipv4:
                    address:
                    - ip: 192.168.40.91
                      prefix-length: 25
                    enabled: true
                dns-resolver:
                  config:
                    server:
                    - 192.168.254.20
                routes:
                  config:
                  - destination: 0.0.0.0/0
                    next-hop-address: 192.168.40.1
                    next-hop-interface: ens1f0
      

      ip route

      [core@master01 ~]$ ip r
      default via 192.168.40.1 dev br-ex proto static metric 48
      10.128.0.0/14 via 10.129.0.1 dev ovn-k8s-mp0
      10.129.0.0/23 dev ovn-k8s-mp0 proto kernel scope link src 10.129.0.2
      169.254.169.0/29 dev br-ex proto kernel scope link src 169.254.169.2
      169.254.169.1 dev br-ex src 192.168.40.91 mtu 1400
      169.254.169.3 via 10.129.0.1 dev ovn-k8s-mp0
      172.30.0.0/16 via 169.254.169.4 dev br-ex mtu 1400
      192.168.40.0/24 dev br-ex proto kernel scope link src 192.168.40.91 metric 48
      

      /etc/NetworkManager/system-connections/ens1f0.nmconnection

      [core@master01 ~]$ sudo cat /etc/NetworkManager/system-connections/ens1f0.nmconnection
      [connection]
      id=ens1f0
      uuid=aaedb499-e997-4736-b32b-01f7a1dd2445
      type=ethernet
      interface-name=ens1f0
      
      [ethernet]
      mtu=1500
      
      [ipv4]
      address1=192.168.40.91/24
      dhcp-client-id=mac
      dns=192.168.254.20;
      dns-priority=40
      method=manual
      route1=0.0.0.0/0,192.168.40.1
      route1_options=table=254
      
      [ipv6]
      addr-gen-mode=eui64
      dhcp-duid=ll
      dhcp-iaid=mac
      method=disabled
      

              dhiggins@redhat.com Derek Higgins
              sronan@redhat.com Shane Ronan (Inactive)
              Shane Ronan (Inactive)
              None
              Jianwei Hou Jianwei Hou
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: