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

Quay 3.7.0 Operator should block the deployment when component clairpostgres is unmanaged without providing the required config

XMLWordPrintable

      Description:

      This is an issue found when deploy Quay with Quay 3.7.0 Operator, now set component "clairpostgres" as unmanaged, but in Quay config bundle secret, doesn't provide the config of Clair Postgres DB, the results is Quay Operator proceed the deployment, the correct behavior should be "Quay Operator take a check, if the required config is NOT existed, it should block the deployment immediately with correct error message".

      Quay Image: quay-operator-bundle-container-v3.7.0-39

      spec:
        components:
          - kind: clair
            managed: true
          - kind: postgres
            managed: true
          - kind: objectstorage
            managed: true
          - kind: redis
            managed: true
          - kind: horizontalpodautoscaler
            managed: true
          - kind: route
            managed: true
          - kind: mirror
            managed: true
          - kind: monitoring
            managed: false
          - kind: tls
            managed: true
          - kind: base
            managed: true
          - kind: clairpostgres
            managed: false

      Quay POD:

      oc get pod
      NAME                                          READY   STATUS             RESTARTS        AGE
      demo370-clair-app-79756655cc-sbhkx            0/1     CrashLoopBackOff   6 (4m50s ago)   10m
      demo370-clair-app-79756655cc-z7fh7            0/1     CrashLoopBackOff   6 (4m37s ago)   10m
      demo370-quay-app-ffc578498-d48fr              1/1     Running            0               9m23s
      demo370-quay-app-ffc578498-l9fsn              1/1     Running            0               9m23s
      demo370-quay-app-upgrade-852bt                0/1     Completed          0               10m
      demo370-quay-config-editor-859cc86876-bcmzp   1/1     Running            0               10m
      demo370-quay-database-5864d86cd6-9vgd6        1/1     Running            0               10m
      demo370-quay-mirror-5db4d67655-h7826          1/1     Running            0               9m51s
      demo370-quay-mirror-5db4d67655-stxnb          1/1     Running            0               9m51s
      demo370-quay-redis-5bdc46b5f8-cvsqm           1/1     Running            0               10m
      quay-operator.v3.7.0-dc7b8659d-66kln          1/1     Running            0               11m 

      Steps:

      1. Deploy Quay 3.7.0 Operator on Single OCP Namespace
      2. Deploy Quay with unmanaged component "clairpostgres", but not provide the config of Clair Postgres DB
      3. Check QuayRegistry CR status

      Expected Results:

      Quay Operator should block the deployment immediately with error message "the component clairpostgres is unmanaged, but required config is not set"

      Actual Results:

      Quay Operator doesn't check the config of Clair Postgres DB and move on deployment.

              rmarasch@redhat.com Ricardo Maraschini
              lzha1981 luffy zhang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: