You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have noticed that when creating a large number of route53resolver/RuleAssociation for a VPC, some of the resources are entering a permenant creation loop with the error,
async create failed: failed to create the resource: [{0 creating Route53 Resolver Rule Association: InvalidRequestException: [RSLVR-00802] Cannot associate rules with same domain name with same VPC. Conflict with resolver rule \"XXXX\" []
Looking into the debug logs of the provider, I can detect the same behaviour for all the failed resources, where the first creation attempt fails with ThrottlingException and the following attempts fail with Cannot associate rules with same domain name with same VPC
Example logs from provider-aws,
2023-12-01T13:15:26Z DEBUG provider-aws Async create starting... {"trackerUID": "62a8f98f-846b-4c18-815b-f920f5aca081", "resourceName": "testing2-ec1-rassoc-rslvr-rr-2aa08b5f7b844eaa8", "tfID": ""}
2023-12-01T13:16:50Z DEBUG provider-aws Async create ended. {"trackerUID": "62a8f98f-846b-4c18-815b-f920f5aca081", "resourceName": "testing2-ec1-rassoc-rslvr-rr-2aa08b5f7b844eaa8", "error": "async create failed: failed to create the resource: [{0 waiting for Route53 Resolver Rule Association (rslvr-rrassoc-b20d114fc55943eda) create: ThrottlingException: Throttling - Maximum request rate exceeded. []}]", "tfID": ""}
2023-12-01T13:16:50Z DEBUG provider-aws Async create starting... {"trackerUID": "62a8f98f-846b-4c18-815b-f920f5aca081", "resourceName": "testing2-ec1-rassoc-rslvr-rr-2aa08b5f7b844eaa8", "tfID": ""}
2023-12-01T13:16:51Z DEBUG provider-aws Async create ended. {"trackerUID": "62a8f98f-846b-4c18-815b-f920f5aca081", "resourceName": "testing2-ec1-rassoc-rslvr-rr-2aa08b5f7b844eaa8", "error": "async create failed: failed to create the resource: [{0 creating Route53 Resolver Rule Association: InvalidRequestException: [RSLVR-00802] Cannot associate rules with same domain name with same VPC. Conflict with resolver rule \"rslvr-rr-2aa08b5f7b844eaa8\" []}]", "tfID": ""}
2023-12-01T13:17:51Z DEBUG provider-aws Async create starting... {"trackerUID": "62a8f98f-846b-4c18-815b-f920f5aca081", "resourceName": "testing2-ec1-rassoc-rslvr-rr-2aa08b5f7b844eaa8", "tfID": ""}
2023-12-01T13:17:51Z DEBUG provider-aws Async create ended. {"trackerUID": "62a8f98f-846b-4c18-815b-f920f5aca081", "resourceName": "testing2-ec1-rassoc-rslvr-rr-2aa08b5f7b844eaa8", "error": "async create failed: failed to create the resource: [{0 creating Route53 Resolver Rule Association: InvalidRequestException: [RSLVR-00802] Cannot associate rules with same domain name with same VPC. Conflict with resolver rule \"rslvr-rr-2aa08b5f7b844eaa8\" []}]", "tfID": ""}
2023-12-01T13:18:52Z DEBUG provider-aws Async create starting... {"trackerUID": "62a8f98f-846b-4c18-815b-f920f5aca081", "resourceName": "testing2-ec1-rassoc-rslvr-rr-2aa08b5f7b844eaa8", "tfID": ""}
2023-12-01T13:18:52Z DEBUG provider-aws Async create ended. {"trackerUID": "62a8f98f-846b-4c18-815b-f920f5aca081", "resourceName": "testing2-ec1-rassoc-rslvr-rr-2aa08b5f7b844eaa8", "error": "async create failed: failed to create the resource: [{0 creating Route53 Resolver Rule Association: InvalidRequestException: [RSLVR-00802] Cannot associate rules with same domain name with same VPC. Conflict with resolver rule \"rslvr-rr-2aa08b5f7b844eaa8\" []}]", "tfID": ""}
However, when looking into CloudTrail events, I can see that the first attempt was successfull on AWS side and the association has been created and association id was returned,
This explains the behaviour where additional attempts are failing with the error Cannot associate rules with same domain name with same VPC, as the first attempt was successfull but wasn't handeled successfully
I cannot see detailed aws sdk calls traces on crossplane provider level, therefore i'm not sure if the issue caused by invalid response from AWS API or if the response was correct and there might be an invalid handling on crossplane provider level
How can we reproduce it?
The issue can be reproduced by creating a large number (100+) of RuleAssociation resources
@AliAllomani we were unable to reproduce the issue by creating a single VPC, 1000 rules and 1000 rule associations to the VPC. All rules and rule associations are properly created and we were unable to experience any throttling
During investigation, we found a case where this could potentially happen, and we think that crossplane/upjet#313 will resolve it, but could not validate your particular issue since we could not reproduce.
If you are able to consistently reproduce this, would you be willing to test these dev images and see if the problem is resolved?
This issue has been closed when we merged #1024. Please reopen this if the proposed fix is not working as expected for you. The proposed fix is now available with the patch release v0.46.1.
What happened?
We have noticed that when creating a large number of route53resolver/RuleAssociation for a VPC, some of the resources are entering a permenant creation loop with the error,
Looking into the debug logs of the provider, I can detect the same behaviour for all the failed resources, where the first creation attempt fails with
ThrottlingException
and the following attempts fail withCannot associate rules with same domain name with same VPC
Example logs from provider-aws,
However, when looking into CloudTrail events, I can see that the first attempt was successfull on AWS side and the association has been created and association id was returned,
This explains the behaviour where additional attempts are failing with the error
Cannot associate rules with same domain name with same VPC
, as the first attempt was successfull but wasn't handeled successfullyI cannot see detailed aws sdk calls traces on crossplane provider level, therefore i'm not sure if the issue caused by invalid response from AWS API or if the response was correct and there might be an invalid handling on crossplane provider level
How can we reproduce it?
The issue can be reproduced by creating a large number (100+) of RuleAssociation resources
Example composition
What environment did it happen in?
The text was updated successfully, but these errors were encountered: