Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-660

Quay CR deployment configHostname is mandatory when use ingress as externalAccess

    XMLWordPrintable

Details

    • Qui-Gon [Quay 184]
    • 0

    Description

      Description:
      This is an issue found when deploying Quay with Operator, when use ingress as externalAccess, the Quay CR deployment was failed, the error message is "msg":"Failed to obtain initial registry status","error":"Get https:///api/v1/superuser/registrystatus: http: no Host in request URL"
      The error message indicates that can't find the Quay config-app hostname, but as the doc mentioned it's not required to set "configHostname", pls review this issue.

      Quay Operator catalog file: quay.io/quay/quay-rhel8-operator-catalog:1.1.0-9

      Following Docs: https://github.com/redhat-cop/quay-operator#ingress

      Expected Results:
      The Quay CR deployment should complete successfully.

      Actual Results:
      The Quay CR deployment was failed.

      Quay Operator Logs:
      {"level":"error","ts":1588127425.0395565,"logger":"controller_quayecosystem","msg":"Failed to obtain initial registry status","error":"Get https:///api/v1/superuser/registrystatus: http: no Host in request URL","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/tmp/quay-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/redhat-cop/quay-operator/pkg/controller/quayecosystem/setup.(*QuaySetupManager).SetupQuay\n\t/tmp/quay-operator/pkg/controller/quayecosystem/setup/setup.go:62\ngithub.com/redhat-cop/quay-operator/pkg/controller/quayecosystem.(*ReconcileQuayEcosystem).Reconcile\n\t/tmp/quay-operator/pkg/controller/quayecosystem/quayecosystem_controller.go:269\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/tmp/quay-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/tmp/quay-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/tmp/quay-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/tmp/quay-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/tmp/quay-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/tmp/quay-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}

      lizhang@lzha-mac Quay3.3_operator_testing % cat quayecosystem_cr_gcp_ingress.yaml
      apiVersion: redhatcop.redhat.io/v1alpha1
      kind: QuayEcosystem
      metadata:
      name: demoingress2-quayecosystem
      spec:
      quay:
      imagePullSecretName: redhat-pull-secret
      image: quay.io/quay/quay:v3.3.0-3
      externalAccess:
      type: Ingress
      annotations:
      nginx.ingress.kubernetes.io/ssl-passthrough: "true"
      nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
      hostname: quayingress2.apps.lzha0429.qe.gcp.devcluster.openshift.com
      enableRepoMirroring: true
      database:
      volumeSize: 30Gi
      envVars:

      • name: DEBUGLOG
        value: "true"
        clair:
        enabled: true
        image: quay.io/quay/clair-jwt:v3.3.0-1
        imagePullSecretName: redhat-pull-secret
        updateInterval: "60m"

      Attachments

        1. After adding confighostname.png
          265 kB
          luffy zhang
        2. After adding confighostname.png
          262 kB
          luffy zhang
        3. quayecosystem_cr_gcp_ingress_withconfighostname.yaml
          0.8 kB
          luffy zhang

        Activity

          People

            rhn-coreos-amerdler Alec Merdler (Inactive)
            lzha1981 luffy zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: