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

Quay 3.13 Clair upgrade the Clair database was not migrated successfully

XMLWordPrintable

    • False
    • None
    • False

      Description:

      This is an issue found in Quay 3.13 upgrade from Quay 3.12, in Quay 3.12 Quay was deployed with managed Clair and Clairpostgres Components, then upgrade to Quay 3.13 the Clair upgrade job completed successfully, but found the old clair postgres database POD was not removed, checked the DB size of Clair new Database, the Data was not migrated successfully, before upgrade the DB size of Clair postgres is 18GB, after upgrade to Quay 3.13, the DB size is only 4GB, pls review this issue, attached the Quay 3.13 operator logs Quay313_operator_pod.logs 

      Quay: quay-operator-bundle-container-v3.13.0-43

      Before upgrade to Quay 3.13 the Clair database is 18GB:

      postgres=# \l+
                                                                         List of databases
         Name    |  Owner   | Encoding |  Collate   |   Ctype    |   Access privileges   |  Size   | Tablespace |                Descri
      ption                 
      -----------+----------+----------+------------+------------+-----------------------+---------+------------+----------------------
      ----------------------
       postgres  | postgres | UTF8     | en_US.utf8 | en_US.utf8 |                       | 18 GB   | pg_default | default administrativ
      e connection database
       template0 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c/postgres          +| 7753 kB | pg_default | unmodifiable empty da
      tabase
                 |          |          |            |            | postgres=CTc/postgres |         |            | 
       template1 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c/postgres          +| 7753 kB | pg_default | default template for 
      new databases
                 |          |          |            |            | postgres=CTc/postgres |         |            | 
      (3 rows) 

      After upgrade to Quay 3.13:

      Quay 3.13 upgrade from Quay 3.12:

      oc get pod
      NAME                                      READY   STATUS      RESTARTS      AGE
      quay-clair-app-f8b8898b9-jhsl6            1/1     Running     0             52m
      quay-clair-app-f8b8898b9-knq4s            1/1     Running     0             58m
      quay-clair-postgres-57b57d7fbf-9wvn9      1/1     Running     0             58m
      quay-clair-postgres-old-6f77c5b65-vntmr   1/1     Running     1 (58m ago)   59m
      quay-clair-postgres-upgrade-rwx49         0/1     Completed   2             59m
      quay-operator.v3.13.0-6b6bc7dcfc-wj755    1/1     Running     0             59m
      quay-quay-app-cfb4f678-45zpp              1/1     Running     0             58m
      quay-quay-app-cfb4f678-hfrks              1/1     Running     0             58m
      quay-quay-app-upgrade-sg8cn               0/1     Completed   1             58m
      quay-quay-database-8cb5b8c8-mvjxk         1/1     Running     0             58m
      quay-quay-mirror-7d9f97c684-9pnjb         1/1     Running     0             58m
      quay-quay-mirror-7d9f97c684-v74v5         1/1     Running     0             58m
      quay-quay-redis-ccb4c4c9c-cssfc           1/1     Running     0             59m 

        1. image-2024-10-14-14-28-22-914.png
          468 kB
          luffy zhang
        2. image-2024-10-14-14-33-03-694.png
          476 kB
          luffy zhang
        3. image-2024-10-15-18-30-59-541.png
          493 kB
          luffy zhang
        4. image-2024-10-22-14-44-49-495.png
          181 kB
          luffy zhang
        5. image-2024-10-22-14-45-16-492.png
          227 kB
          luffy zhang
        6. image-2024-10-22-14-46-04-939.png
          182 kB
          luffy zhang
        7. image-2024-10-22-14-47-13-003.png
          222 kB
          luffy zhang
        8. image-2024-10-22-14-47-35-392.png
          176 kB
          luffy zhang
        9. quay3.13-clair-postgres-upgrade.logs
          5 kB
          luffy zhang
        10. Quay313_operator_pod.logs
          1.14 MB
          luffy zhang

            rh-ee-shudeshp Shubhra Jayant Deshpande
            lzha1981 luffy zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: