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

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
    • 2
    • +
    • Done
    • Bug Fix
    • Hide
      * Previously, API and ingress VIPs were automatically assigned even when a user-managed load balancer was in use. This behavior was unintended. Now, API and ingress VIPs are no longer automatically assigned. If these values are not explicitly set in the `install-config.yaml` file, the installation fails with an error, prompting the user to provide them. (link:https://issues.redhat.com/browse/OCPBUGS-53140[OCPBUGS-53140])
      Show
      * Previously, API and ingress VIPs were automatically assigned even when a user-managed load balancer was in use. This behavior was unintended. Now, API and ingress VIPs are no longer automatically assigned. If these values are not explicitly set in the `install-config.yaml` file, the installation fails with an error, prompting the user to provide them. (link: https://issues.redhat.com/browse/OCPBUGS-53140 [ OCPBUGS-53140 ])
    • None
    • None
    • None
    • None

      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:

          

              rh-ee-dkokkino Danny Kokkinos
              rhn-support-dpateriy Divyam Pateriya
              None
              None
              Ramón Lobillo Ramón Lobillo
              None
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: