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

Quay CR deployment was failed when use customized redis with password

XMLWordPrintable

      Description:
      This is an issue found when Deploy Quay with Operator, when use customized redis with password, image, the results is Quay CR deployment was failed with error message in Operator logs ""msg":"Failed to Validate Component","error":"redis Validation Failed: Client sent AUTH, but no password is set"", more details refer to Quay operator logs.

      Following docs: https://github.com/redhat-cop/quay-operator#compute-resources

      Quay Operator Image: quay.io/quay/quay-rhel8-operator:1.1.0-1

      Steps:
      1. Create Redis secret redissecret containing the redis pasword
      2. Run "oc create -f quayecosystem_cr_redis.yaml "
      3. Chcked POD status

      Expected Results:
      Quay CR deploymetn should complete successfully.

      Actual Results:
      Quay CR deploymetn was failed.

      lizhang@lzha-mac Quay3.3_operator_testing % oc get secret redissecret -o yaml
      apiVersion: v1
      data:
      password: YWRtaW4=
      kind: Secret
      metadata:
      creationTimestamp: "2020-04-27T06:30:41Z"
      name: redissecret
      namespace: quay33
      resourceVersion: "553229"
      selfLink: /api/v1/namespaces/quay33/secrets/redissecret
      uid: 4e7bd43c-ae04-4c71-90d2-018980cec0d9
      type: Opaque

      Quay CR file:
      lizhang@lzha-mac Quay3.3_operator_testing % cat quayecosystem_cr_redis.yaml
      apiVersion: redhatcop.redhat.io/v1alpha1
      kind: QuayEcosystem
      metadata:
      name: demoredis3-quayecosystem
      spec:
      redis:
      credentialsSecretName: redissecret
      image: docker.io/redis
      resources:
      requests:
      memory: "1024Mi"
      cpu: "500m"
      limits:
      memory: "2048Mi"
      cpu: "500m"
      quay:
      imagePullSecretName: redhat-pull-secret
      image: quay.io/quay/quay:v3.3.0-3
      configSecretName: configuser
      keepConfigDeployment: false
      registryStorage:
      persistentVolumeAccessModes:

      • ReadWriteOnce
        persistentVolumeSize: 60Gi
        enableRepoMirroring: true
        replicas: 2
        SuperuserCredentialsSecretName: superuser
        database:
        volumeSize: 30Gi
        credentialsSecretName: dbsecret
        resources:
        requests:
        memory: "2048Mi"
        cpu: "500m"
        limits:
        memory: "4096Mi"
        cpu: "1000m"
        envVars:
      • name: DEBUGLOG
        value: "true"
        clair:
        enabled: true
        image: quay.io/quay/clair-jwt:v3.3.0-1
        imagePullSecretName: redhat-pull-secret
        updateInterval: "60m"

      Quay Operator logss:
      {"level":"error","ts":1587971437.107258,"logger":"controller_quayecosystem","msg":"Failed to Validate Component","error":"redis Validation Failed: Client sent AUTH, but no password is set",*"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:234\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"}

      {"level":"info","ts":1587971467.1228204,"logger":"controller_quayecosystem","msg":"Reconciling QuayEcosystem","Request.Namespace":"quay33","Request.Name":"demoredis3-quayecosystem"} {"level":"info","ts":1587971471.3836617,"logger":"controller_quayecosystem","msg":"Running exec into Pod","Reason":"","Pod Name":"demoredis3-quayecosystem-quay-postgresql-75b9599dd6-l7vch"} {"level":"info","ts":1587971471.5025778,"logger":"controller_quayecosystem","msg":"Running exec into Pod","Reason":"","Pod Name":"demoredis3-quayecosystem-quay-postgresql-75b9599dd6-l7vch"} {"level":"error","ts":1587971480.8156765,"logger":"controller_quayecosystem","msg":"Failed to Validate Component","error":"redis Validation Failed: Client sent AUTH, but no password is set","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:234\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"}

        1. operator.logs
          239 kB
          luffy zhang
        2. quayecosystem_cr_redis.yaml
          1 kB
          luffy zhang

              kmullins@redhat.com Kurtis Mullins (Inactive)
              lzha1981 luffy zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: