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

OpenShift 4.17 IPI Private cluster installation failure due to static IP not in range of Subnet

XMLWordPrintable

    • Yes
    • False
    • Hide

      None

      Show
      None
    • Hide
      There was a bug with the selection of the load balancer where the installer picks a fixed IP (10.0.0.100) and set it to the load balancer even if it was not in the range of the machine network/virtual network. Adding a variable IP check to see if there's an available IP for the load balancer to use in the machine network or virtual network. The IP elected will be picked up in the range of the control plane subnet if provided.
      Show
      There was a bug with the selection of the load balancer where the installer picks a fixed IP (10.0.0.100) and set it to the load balancer even if it was not in the range of the machine network/virtual network. Adding a variable IP check to see if there's an available IP for the load balancer to use in the machine network or virtual network. The IP elected will be picked up in the range of the control plane subnet if provided.
    • Bug Fix
    • In Progress

      Description of problem:

      - While deploying a private OpenShift cluster on top of Azure via IPI mode of installation for version 4.17, the process fails with the below error message :-
      
      ~~~
      time="2024-10-21T07:38:08Z" level=fatal msg="failed to fetch Cluster: failed to fetch dependency of \"Cluster\": failed to generate asset \"Cluster API Manifests\": failed to generate Azure manifests: failed to get azure ip availability: network.VirtualNetworksClient#CheckIPAddressAvailability: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code=\"PrivateIPAddressNotInAnySubnet\" Message=\"Private static IP address 10.0.0.100 does not belong to the range of any subnet in the virtual network /subscriptions/<subscription_id>/resourceGroups/<nsg_name>/providers/Microsoft.Network/virtualNetworks/<nw_name>\" Details=[]"
      ~~~
      
      - The install-config.yaml being used for the deployment looks like this :-
      
      ~~~
      apiVersion: v1
      baseDomain: <base_domain>
      controlPlane:
        hyperthreading: Enabled
        name: master
        platform:
          azure:
            osDisk:
              diskSizeGB: 128
              diskType: Premium_LRS
            type: Standard_D8ls_v5
        replicas: 1
      compute:
      - architecture: amd64
        hyperthreading: Enabled
        name: worker
        platform:
          azure:
            osDisk:
              diskSizeGB: 128
              diskType: Premium_LRS             
            type: Standard_D4as_v5
            zones: 
            - "1"
            - "2"
            - "3"
        replicas: 0
      metadata:
        name: <name>
      networking:
        clusterNetwork:
        - cidr: 10.128.0.0/14
          hostPrefix: 23
        machineNetwork:
        - cidr: ...REDACTED...
        networkType: OVNKubernetes
        serviceNetwork:
        - 172.30.0.0/16
      platform:
        azure:
          baseDomainResourceGroupName: <RSG_name>  
          cloudName: <cloud_name>
          outboundType: UserDefinedRouting
          region: <region>      
          networkResourceGroupName: <nsg_name>
          virtualNetwork: <nw_name>
          controlPlaneSubnet: <subnet_name_control-plane>
          computeSubnet: <subnet_name_compute>
          resourceGroupName: <RSG_name>
      publish: "Internal"
      pullSecret: '{<removed>}'
      sshKey: ssh-rsa AAAAB3Nza.....
      ~~~
      
      - The issue here is, the same install-config works with OpenShift 4.16 version, but not with OpenShift 4.17

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

      4.17.z

      Actual results:

      The installation fails for 4.17, but completes in case of 4.16

      Expected results:

      Should work with 4.17 as well.

      Additional info:

          

              rna-afk Aditya Narayanaswamy
              rhn-support-prmagotr Prayag Magotra
              Jinyun Ma Jinyun Ma
              Votes:
              1 Vote for this issue
              Watchers:
              16 Start watching this issue

                Created:
                Updated:
                Resolved: