-
Notifications
You must be signed in to change notification settings - Fork 377
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 DBInstance modifying unchanged fields causes errors #895
Comments
@haarchri by chance, do you know if 07ce4f2 resolves this issue? We're hitting this now too - I'm not 100% sure about the root cause described above, but I've noticed that our We can try to upgrade later, but we're a few versions behind. |
For Storage this is fixed by #1197 this will be part of 0.26 release |
@haarchri unfortunately this issue seems not to be resolved
|
Is this a new Instance or an old instance? |
its an old instance. we have seen that we need to remove the old but afterwards we get a similar error backup retention
but if i remove this it is going to be reconciled directly |
@haarchri should we reopen that ticket or create a new one as this bug seems not be fully fixed. |
for storage we fixed it - now we have the backup retention - think its trivial to add this like storage - i would prefer to open a new issue |
sounds good. a will create one |
Just to be clear, it's going to be more than just BackupRetention. You can visit the AWS CLI docs for modify-db-instance and search for the string "managed by the DB cluster" to find all fields that cannot be set when associating a DBInstance with a DBCluster. I've opened a PR for all the remaining fields: https://github.com/crossplane/provider-aws/pull/1285/files |
@iAnomaly awesome i hope we can get this merged soon :) currently all of our dbinstance are out of sync |
I think a new/separate Issue would still be good @eloo since this one is technically fixed already. |
#1286 created |
Not fixed for me, occured again when i switched a db instance from single to multi az |
What happened?
We are using the
dbinstances.rds.aws.crossplane.io
CRD to create RDS Aurora cluster instances, and we found that we are unable to modify the spec after creation due to an error condition.The provider has a bug where it is sending all spec.forProvider fields to the ModifyDBInstance AWS API call, and some of these parameters are not accepted by that API, depending on the combination of parameters used, even if the parameter values are unchanged.
How can we reproduce it?
Apply yaml:
Update a spec field, for example change
spec.forProvider.dbInstanceClass
todb.t3.medium
.The object sync fails with the following
status.conditions
:Additional context
We noticed that the ack-generate tool, used by this provider, can generate inputs that only set modified fields in API requests. For example, here is where it is used in the ACK RDS controller. Can this provider make use of this functionality to fix this issue across all generated controllers?
What environment did it happen in?
Crossplane version: v1.4.2
AWS provider version: v0.20.0
The text was updated successfully, but these errors were encountered: