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

OpenShift-Installer not validate the apiVIPs and ingressVIPs when the load balancer is configured as UserManaged

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Low
    • None
    • None
    • ShiftStack Sprint 269, ShiftStack Sprint 270, ShiftStack Sprint 271, ShiftStack Sprint 272, ShiftStack Sprint 273, ShiftStack Sprint 274, ShiftStack Sprint 275, ShiftStack Sprint 277, ShiftStack Sprint 278
    • 9
    • +
    • In Progress
    • Bug Fix
    • Hide
      Fix: Previously, API and Ingress VIPs were automatically assigned even when a user-managed load balancer was in use. This behavior was unintended.

      With this fix, API and Ingress VIPs are no longer automatically assigned. If these values are not explicitly set in the install-config.yaml, the installation will now fail with an error, prompting the user to provide them.
      Show
      Fix: Previously, API and Ingress VIPs were automatically assigned even when a user-managed load balancer was in use. This behavior was unintended. With this fix, API and Ingress VIPs are no longer automatically assigned. If these values are not explicitly set in the install-config.yaml, the installation will now fail with an error, prompting the user to provide them.
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-53235. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-53140. The following is the description of the original issue:

      Description of problem:

      The OpenShift-Installer does not validate if the apiVIPs and ingressVIPs are specified when the load balancer is configured as UserManaged and fall back to the default behaviour where it picks the 5th and 7th IPs of the machine network

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

          4.18

      How reproducible:

          100%

      Steps to Reproduce:

      1. Create an install-config.yaml file with the following content:
      
      $ cat ocp4/install-config.yaml
      
      apiVersion: v1
      baseDomain: mydomain.test
      compute:
      - name: worker
        platform:
          openstack:
            type: m1.xlarge
        replicas: 3
      controlPlane:
        name: master
        platform:
          openstack:
            type: m1.xlarge
        replicas: 3
      metadata:
        name: mycluster
      networking:
        clusterNetwork:
        - cidr: 10.128.0.0/14
          hostPrefix: 23
        machineNetwork:
        - cidr: 192.168.10.0/24
      platform:
        openstack:
          loadBalancer:
            type: UserManaged
      
      
      2. Run the following command to generate manifests:
      $ openshift-installer create manifests --dir ocp4
      
      3. Check the generated cluster-config.yaml:
      $ cat ocp4/manifests/cluster-config.yaml     
      
      4.Observe the following unexpected output:
      platform:
        openstack:
          cloud: openstack
          externalDNS: null
          apiVIPs:
          - 192.168.10.5
          ingressVIPs:
          - 192.168.10.7
          loadBalancer:
            type: UserManaged
      
      

      Actual results:

          The apiVIPs and ingressVIPs fields are unexpectedly added to cluster-config.yaml.

      Expected results:

      The apiVIPs and ingressVIPs fields should not be automatically assigned.

      Additional info:

          

              sfinucan@redhat.com Stephen Finucane
              openshift-crt-jira-prow OpenShift Prow Bot
              None
              None
              Itshak Brown Itshak Brown
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: