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

Quay Operator should not recreate managed Postgresql DB POD when no config change happened to database

    XMLWordPrintable

Details

    Description

      Description:

      This is an issue found when config quay with config editor, when use Quay config editor to enable Mirror Repository or disable Mirror Repository, etc. Each time when Quay Operator reconcile the change, managed Postgresql database POD is recreating.

      Note: 

      • The Quay image is "quay-operator-bundle-container-v3.6.0-41"
      • This issue can also be reproduced with Quay 3.5.6
      oc get pod
      NAME                                          READY   STATUS        RESTARTS   AGE
      quay-operator.v3.6.0-65b675c455-rqc69         1/1     Running       0          145m
      quay360-clair-app-5b59d9bd59-nmccz            1/1     Running       0          12m
      quay360-clair-app-6689bf5c69-ccg9v            0/1     Running       0          46s
      quay360-clair-app-6689bf5c69-hcjfs            0/1     Running       0          44s
      quay360-clair-postgres-7cb4c47b86-ktxqg       1/1     Terminating   0          37m
      quay360-quay-app-556fb95ffb-cwtm5             1/1     Running       0          12m
      quay360-quay-app-57bb485559-n97hx             0/1     Running       2          46s
      quay360-quay-app-57bb485559-x9hgj             0/1     Running       2          44s
      quay360-quay-app-upgrade-mcpsb                0/1     Completed     0          54s
      quay360-quay-config-editor-6974669947-nzjs5   1/1     Running       0          46s
      quay360-quay-database-56b649b78f-zppvq        1/1     Running       0          44s
      quay360-quay-mirror-6f7dd69d6f-c5d4w          1/1     Running       0          6s
      quay360-quay-mirror-6f7dd69d6f-m2g27          1/1     Running       0          6s
      quay360-quay-postgres-init-szzr6              0/1     Completed     0          46s
      quay360-quay-redis-5549464cd4-rlmpc           1/1     Running       0          46s
      

      Steps:

      1. Deploy Quay with Quay Operator, choose to use managed postgres component and unmanaged Mirror component
      2. Login Quay Config editor to enable 'Mirror Repository'
      3. Click Validate Configurations
      4. Click Reconfigure Quay
      5. Check QuayRegistry Status
      6. Check Quay Database POD Status

      Expected Results:

      Quay Operator reconcile the change successfully, and managed postgresql database POD is not recreated.

      Actual Results:

      Quay Operator reconcile the change successfully, but managed postgresql database POD is recreated.

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: