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

Setting controlPlanePort network without setting a subnet filter gives a confusing error message

XMLWordPrintable

    • -
    • Low
    • None
    • ShiftStack Sprint 256, ShiftStack Sprint 257
    • 2
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, when setting `platform.openstack.controlPlanePort.network` without a `fixedIPs` value, the installation program would output a misleading error message about the network missing subnets. With this release, the installation program validates that the `install-config` field `controlPlanePort` has a valid subnet filter set because it is a required value. (link:https://issues.redhat.com/browse/OCPBUGS-37104[*OCPBUGS-37104*])
      Show
      * Previously, when setting `platform.openstack.controlPlanePort.network` without a `fixedIPs` value, the installation program would output a misleading error message about the network missing subnets. With this release, the installation program validates that the `install-config` field `controlPlanePort` has a valid subnet filter set because it is a required value. (link: https://issues.redhat.com/browse/OCPBUGS-37104 [* OCPBUGS-37104 *])
    • Bug Fix
    • Done

      When attempting to install on a provider network on PSI, I get the following pre-flight validation error:

      ERROR failed to fetch Metadata: failed to load asset "Install Config": failed to create install config: platform.openstack.controlPlanePort.network: Invalid value: "316eeb47-1498-46b4-b39e-00ddf73bd2a5": network must contain subnets

      The network does contain one subnet.

      install-config.yaml:

      # yaml-language-server: $schema=https://raw.githubusercontent.com/pierreprinetti/openshift-installconfig-schema/release-4.16/installconfig.schema.json
      apiVersion: v1
      baseDomain: ${BASE_DOMAIN}
      compute:
      - name: worker
        platform:
          openstack:
            type: ${COMPUTE_FLAVOR}
        replicas: 3
      controlPlane:
        name: master
        platform:
          openstack:
            type: ${CONTROL_PLANE_FLAVOR}
        replicas: 3
      metadata:
        name: ${CLUSTER_NAME}
      platform:
        openstack:
          controlPlanePort:
            network:
              id: 316eeb47-1498-46b4-b39e-00ddf73bd2a5
          cloud: ${OS_CLOUD}
          clusterOSImage: rhcos-4.16
      publish: External
      pullSecret: |
        ${PULL_SECRET}
      sshKey: |
        ${SSH_PUB_KEY} 

              pprinett@redhat.com Pierre Prinetti
              pprinett@redhat.com Pierre Prinetti
              Itshak Brown Itshak Brown
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: