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

Scale down replica failed with "invalid overrides: cannot override replicas with managed HPA"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • quay-v3.12.1
    • quay-operator
    • False
    • None
    • False

      Description:

      This is a regression issue.

      When scale down the quay, clair, mirror replica to 0, it doesn't scale down and error message "invalid overrides: cannot override replicas with managed HPA" in operator log

      Quay:  quay-operator-bundle-container-v3.12.1-6

      Steps:

      1. Deploy Quay registry with all managed component except monitoring
      2. After quayregistry in healthy status, override quay(or mirror/clair) component replicas to 0
      3. Wait Quay registry to reconcile
       {
                      "kind": "quay",
                      "managed": true,
                      "overrides": {
                          "env": [
                              {
                                  "name": "DEBUGLOG",
                                  "value": "true"
                              }
                          ],
                          "replicas": 0
                      }
                  },
       

      Actual Results:

      Component doesn't scale down,  error message in operator log

      {"level":"debug","ts":"2024-08-07T06:15:01Z","logger":"events","msg":"invalid overrides: cannot override replicas with managed HPA","type":"Warning","object":{"kind":"QuayRegistry","namespace":"quay-enterprise-14847","name":"quayregistry","uid":"5ecb3dd0-5b77-403f-886b-c86ed419304c","apiVersion":"quay.redhat.com/v1","resourceVersion":"239504"},"reason":"ComponentOverrideInvalid"} 

      Quay registry:

                 {
                      "lastTransitionTime": "2024-08-07T06:30:02Z",
                      "lastUpdateTime": "2024-08-07T07:00:58Z",
                      "message": "Quay component is being scaled down",
                      "reason": "ComponentNotReady",
                      "status": "False",
                      "type": "ComponentQuayReady"
                  },
                  {
                      "lastTransitionTime": "2024-08-07T06:30:02Z",
                      "message": "Awaiting for component quay to become available",
                      "reason": "ComponentNotReady",
                      "status": "False",
                      "type": "ComponentMirrorReady"
                  },
                  {
                      "lastTransitionTime": "2024-08-07T06:30:02Z",
                      "lastUpdateTime": "2024-08-07T07:00:58Z",
                      "message": "Some components are not ready",
                      "reason": "ComponentNotReady",
                      "status": "False",
                      "type": "Available"
                  },
      

       

      $oc get pod                                                                            
      NAME                                           READY   STATUS      RESTARTS      AGE
      quay-operator.v3.12.1-7bf766d974-rzq4r         1/1     Running     0             70m
      quayregistry-clair-app-d96688654-vfvvj         1/1     Running     2 (37m ago)   37m
      quayregistry-clair-app-d96688654-xjlpb         1/1     Running     0             33m
      quayregistry-clair-postgres-5c5b56c6f8-cfhxg   1/1     Running     0             37m
      quayregistry-quay-app-74996f8c8f-4fcg6         1/1     Running     0             32m
      quayregistry-quay-app-74996f8c8f-l8psx         1/1     Running     0             33m
      quayregistry-quay-app-upgrade-wrkcp            0/1     Completed   1             37m
      quayregistry-quay-database-bd445fcc5-5tzhr     1/1     Running     0             37m
      quayregistry-quay-mirror-855488f4bd-dqltf      1/1     Running     0             37m
      quayregistry-quay-mirror-855488f4bd-x475l      1/1     Running     0             37m
      quayregistry-quay-redis-7df65c4677-t9ktl       1/1     Running     0             37m
      

              jonathankingfc Jonathan King
              szhao@redhat.com Sean Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: