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

In Quay CR deployment Quay DB using official postgresql image was failed to start

XMLWordPrintable

      Description:
      This is an issue found when use Quay 3.3 Operator to deploy Quay, when in the quayecosystem CR file specify to use official postgresql image(https://hub.docker.com/_/postgres?tab=description) to deploy Quay Database, the POD of Quay DB was failed to start, POD report error messge "chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted" , pls refer to the screenshots from OCP POD Consle.

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

      Steps:
      1. Configure Quay CR file to speficy using official postgresql as Quay Database
      2. Run "oc create -f quayecosystem_cr_existingdb.yaml"
      3. Check POD status

      Expected Results:
      The Quay CR can be deployed successfully.

      Actual Results:
      The POD of Quay DB was failed to start.

      lizhang@lzha-mac Quay3.3_operator_testing % oc get pod
      NAME READY STATUS RESTARTS AGE
      demoexistingdb8-quayecosystem-quay-postgresql-579dc85df8-m8zmt 0/1 CrashLoopBackOff 7 11m
      demoexistingdb8-quayecosystem-redis-7d85cd9b58-9xk6x 1/1 Running 0 12m
      quay-operator-5676f6574b-49fh9 1/1 Running 0 30h
      lizhang@lzha-mac Quay3.3_operator_testing % oc logs demoexistingdb8-quayecosystem-quay-postgresql-579dc85df8-m8zmt
      chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted

      lizhang@lzha-mac Quay3.3_operator_testing % cat quayecosystem_cr_existingdb.yaml
      apiVersion: redhatcop.redhat.io/v1alpha1
      kind: QuayEcosystem
      metadata:
      name: demoexistingdb8-quayecosystem
      spec:
      quay:
      imagePullSecretName: redhat-pull-secret
      image: quay.io/quay/quay:v3.3.0-3
      configSecretName: configuser
      registryStorage:
      persistentVolumeAccessModes:

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

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

                Created:
                Updated:
                Resolved: