Uploaded image for project: 'Managed Service - API'
  1. Managed Service - API
  2. MGDAPI-5649

CRO GCP Redis update logic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.36.0
    • None
    • None
    • RHOAM Sprint 40

      WHY
      Remove unnecessary GCP calls which could affects install.

      WHAT
      Every reconcile a new (empty) update is triggered on the Redis instances in GCP. This causes them to go from 'Ready' to 'Updating' and back to 'Ready' on each reconcile. This results in the postgres/redis CR's constantly flipping from complete -> in progress -> complete. It isn't entirely clear what the cause is but it looks like it could be related to the maintenance policy as subsequent operations show increasing 'updateTime' values. This started to occur once we removed the maintenanceWindow logic as the updates are triggering every reconcile.

      HOW
      The two update requests in CRO are here.

      Check the logic in the isMaintenancePolicyOutdate function and try use logging to determine what the cause of the updates is. As this issue is seen from RHOAM installs, check the scenario where the maintenance policy is set in the create strategy:

      {
          "development": {
              "region": "",
              "projectID": "",
              "createStrategy": {},
              "deleteStrategy": {}
          },
          "production": {
              "region": "",
              "projectID": "",
              "createStrategy": {
                  "instance": {
                      "maintenance_policy": {
                          "weekly_maintenance_window": [
                              {
                                  "day": 4,
                                  "start_time": {
                                      "hours": 2
                                  }
                              }
                          ]
                      }
                  }
              },
              "deleteStrategy": {}
          }
      }
      

      You can use the gcloud CLI to check for recently triggered operations in a region:

      gcloud redis operations list --region europe-west2

      TESTS
      <List of related tests>

      DONE
      <bullet point items for what should be completed>

              acatterm@redhat.com Adam Cattermole
              acatterm@redhat.com Adam Cattermole
              Kevin Chi Keen Fan Kevin Chi Keen Fan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: