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

fail to create install-config.yaml as apiVIP and ingressVIP are not in machine networks

XMLWordPrintable

    • Critical
    • None
    • Proposed
    • False
    • Hide

      None

      Show
      None

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

      Description of problem:

      Create install-config file for vsphere IPI against 4.12.0-0.nightly-2022-09-02-194931, fail as apiVIP and ingressVIP are not in machine CIDR.
      
      $ ./openshift-install create install-config --dir ipi                
      ? Platform vsphere
      ? vCenter xxxxxxxx
      ? Username xxxxxxxx
      ? Password [? for help] ********************
      INFO Connecting to xxxxxxxx
      INFO Defaulting to only available datacenter: SDDC-Datacenter 
      INFO Defaulting to only available cluster: Cluster-1 
      INFO Defaulting to only available datastore: WorkloadDatastore 
      ? Network qe-segment
      ? Virtual IP Address for API 172.31.248.137
      ? Virtual IP Address for Ingress 172.31.248.141
      ? Base Domain qe.devcluster.openshift.com 
      ? Cluster Name jimavmc       
      ? Pull Secret [? for help] ****************************************************************************************************************************************************************************************
      FATAL failed to fetch Install Config: failed to generate asset "Install Config": invalid install config: [platform.vsphere.apiVIPs: Invalid value: "172.31.248.137": IP expected to be in one of the machine networks: 10.0.0.0/16, platform.vsphere.ingressVIPs: Invalid value: "172.31.248.141": IP expected to be in one of the machine networks: 10.0.0.0/16] 
      
      As user could not define cidr for machineNetwork when creating install-config file interactively, it will use default value 10.0.0.0/16, so fail to create install-config when inputting apiVIP and ingressVIP outside of default machinenNetwork.
      
      Error is thrown from https://github.com/openshift/installer/blob/master/pkg/types/validation/installconfig.go#L655-L666, seems new function introduced from PR https://github.com/openshift/installer/pull/5798
      
      The issue should also impact Nutanix platform.
       

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

      4.12.0-0.nightly-2022-09-02-194931

      How reproducible:

      Always

      Steps to Reproduce:

      1. create install-config.yaml file by running command "./openshift-install create install-config --dir ipi"
      2. failed with above error
      3.
      

      Actual results:

      fail to create install-config.yaml file

      Expected results:

      succeed to create install-config.yaml file

      Additional info:

       

              Unassigned Unassigned
              openshift-crt-jira-prow OpenShift Prow Bot
              Wenxin Wei Wenxin Wei
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: