Conversation
|
@nmarukovich please check this PR - #2189 I think it will fix the reconcile flip-flops because call to |
| check_backup_in_storage ${backup_name_minio} minio rs0 | ||
|
|
||
| reconciliation_count=$(kubectl_bin logs ${OPERATOR_NS:+-n $OPERATOR_NS} $(get_operator_pod) \ | ||
| | grep "main storage changed. starting resync" \ |
There was a problem hiding this comment.
this log will be removed, see #2193
please check for configuration changed or resync is needed
There was a problem hiding this comment.
@egegunes it looks like @mayankshah1607 returned this code.
Could you check one more time
There was a problem hiding this comment.
Found! I will update test.
I rechecked. It looks like your PR fixed it. I close this one. |
| # wait_backup "${backup_name_gcp}" | ||
| # check_backup_in_storage ${backup_name_gcp} gcs rs0 |
| # minRetryDelay: 30ms | ||
| # maxRetryDelay: 5m | ||
| # region: us-west-2 | ||
| # region: us-east-1 |
There was a problem hiding this comment.
Since we are changing this, I believe we should adjust the values of the storages names.
There was a problem hiding this comment.
note that we configure them using the word west
There was a problem hiding this comment.
didn't catch the comment. I change the region here because pbm use us-east-1 as default and adds it to pbm config if region is missed.
There was a problem hiding this comment.
so should we change the following?
storages:
# s3-us-west:
....
| wait_backup "${backup_name_minio}" | ||
| check_backup_in_storage ${backup_name_minio} minio rs0 | ||
|
|
||
| reconciliation_count=$(kubectl_bin logs ${OPERATOR_NS:+-n $OPERATOR_NS} $(get_operator_pod) \ |
There was a problem hiding this comment.
we need to test somehow that the problem fixed. we discussed with @eleo007 and it is the only idea that we have.
pkg/apis/psmdb/v1/psmdb_defaults.go
Outdated
| } | ||
|
|
||
| if cr.CompareVersion("1.22.0") >= 0 && stg.S3.Region == "" { | ||
| stg.S3.Region = "us-east-1" |
There was a problem hiding this comment.
i would move this to a default defaultS3Region = "us-east-1"
…godb-operator into K8SPSMDB-1524
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit: d5bed1c |
CHANGE DESCRIPTION
Problem:
Short explanation of the problem.
PBM defaults S3 storage region to us-east-1 when not specified. The operator compares the CR spec (region: "") with PBM config (region: "us-east-1"), detects a mismatch, and triggers continuous reconciliation loops attempting to remove the region from PBM config.
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Short explanation of the solution we are providing with this PR.
CHECKLIST
Jira
Needs Doc) and QA (Needs QA)?Tests
compare/*-oc.yml)?Config/Logging/Testability