-
Bug
-
Resolution: Done
-
Blocker
-
None
-
None
-
3
-
False
-
None
-
False
-
Yes
-
-
-
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>