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

create-cluster-and-infraenv service fails on disconnected env

XMLWordPrintable

    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When using a disconnected env and OPENSHIFT_INSTALL_RELEASE_IMAGE_MIRROR env var is specified, the create-cluster-and-infraenv service fails[*].
      Seems that the issue happens due to a missing registries.conf in the assisted-service container, which is required for pulling the image.
      
      [*[
      create-cluster-and-infraenv[2784]: level=fatal msg="Failed to register cluster with assisted-service: command 'oc adm release info -o template --template '{{.metadata.version}}' --insecure=true quay.io/openshift-release-dev/ocp-release@sha256:3c050cb52fdd3e65c518d4999d238ec026ef724503f275377fee6bf0d33093ab --registry-config=/tmp/registry-config1560177852' exited with non-zero exit code 1: \nerror: unable to read image quay.io/openshift-release-dev/ocp-release@sha256:3c050cb52fdd3e65c518d4999d238ec026ef724503f275377fee6bf0d33093ab: Get "http://quay.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)\n"
      

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

      4.14

      How reproducible:

      100%

      Steps to Reproduce:

      1. Add registries.conf with mirror config set to a local registry (e.g. use imageContentSources in install-config)
      2. Ensure that a custom release image mirror that refers the registry is set on OPENSHIFT_INSTALL_RELEASE_IMAGE_MIRROR env var.
      3. Boot the machine on a disconnected env.
      

      Actual results:

      create-cluster-and-infraenv service fails pull the release image.

      Expected results:

      create-cluster-and-infraenv service should finish successfully.

      Additional info:

      Pushed a PR to the installer for propagating registries.conf: https://github.com/openshift/installer/pull/7332
      
      We have a workaround in the appliance by overriding the service:
      https://github.com/openshift/appliance/pull/94/

       

            derez@redhat.com Daniel Erez
            derez@redhat.com Daniel Erez
            zhenying niu zhenying niu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: