-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RDS instance in modify loop due to Crossplane checking AWS initialized fields. (version 0.45) #1951
Comments
Hi. Thanks for opening this issue. I also came across this bug yesterday. For DBs with oracle engine the parameter
I will try to open a PR later today to address this. (want to check DBCluster also) |
short update: while lateInitializing these fields did fix the problem, it seems the root cause may be lying somewhere different.
As far as I can currently tell, they all seem to be one-time "init" after creation. While I try to further analyse why we are now seeing this behaviour, |
I'm my case I use Composition to create DBInstance resource (among others). My composition resource don't have any of initialized fields under |
I created a new RDS instance and confirmed that removing the fields from the mr stops the reconciliation loop. |
What happened?
When a new RDS instance is created using Crossplane with "BackupTarget", "monitoringInterval" or "NetworkType" empty, the AWS will initialize those fields. This will cause Crossplane to see a difference between the values in the manifest "nil" and the default values in AWS. So it will keep applying changes to AWS to force the RDS to remove those fields.
Since this is not possible, Crossplane will keep in loop trying to apply the diffs.
I think this is related to the issue identified here #1949 , but instead of IAM Role it's a RDS instance.
Sample of the logs seen:
How can we reproduce it?
Launch a new RDS with "monitoringInterval" and "NetworkType" empty and check AWS Cloudtrail requests to see the "modifyDB" events.
What environment did it happen in?
Crossplane version: 0.14.0
Crossplane aws-contrib: 0.45
The text was updated successfully, but these errors were encountered: