-
Notifications
You must be signed in to change notification settings - Fork 30
A duplicate "resource" was found after second observe #220
Comments
Hey I saw that thread in the slack group. I wonder if there is something deeper going on here. I've been debugging a similar resource duplication thing for a while. I've been seeing resources fall out of sync and then they start duplicating in aws until:
I have tried:
Semi-Reproducible example using crossplane v1.9.0, aws jet v0.5.0. It sucks that it has so many resources but it causes the issues to happen faster:
Initially everything will come up fine and then issues begin to occur: For this part it may be good to also download the attached provider debug logs main.tf.json
terraform.tfstate
For example crossplane-private-subnet-single-us-west-1 has the following when in
main.tf.json
terraform.tfstate
terraform.tfstate.backup
Even weirder is the status of the object
General logs: My conclusion: |
We See also resources ready true synced true and flapping between false and true :/ but no idea to debug |
That flip between true/false seems to occur when the resource is duplicated in AWS. It recreates it and is happy until the next time it reconciles. |
I have similar issue for fargate resource.
I use composition: https://github.com/NatzkaLabsOpenSource/managed-kubernetes All is created successfully including FargateProfile but XP reports following:
I see that tfstate file is empty:
and backup file is correct:
Resource status is always False/False:
|
@andrzej-natzka Trying to narrow this down. Is the aws-jet-provider the only Crossplane Provider in your cluster? |
We running provider-aws, provider-jet-aws, provider-kubernetes, provider-helm, provider-gitlab, provider-zpa and provider-jet-pagerduty if it helps |
In my last example I had following providers:
However when I found the problem first time I had only AWS-Jet-classic installed |
Hi, Our issue in |
Has anyone been able to get this to reproduce when running the provider out of a container? With running |
The container uses a
|
Edited to fix the example ControllerConfig |
looks it is working in our setup all resources now True/True |
Unfortunately its not working for me.
|
What happened?
interesting here is that terraform.tfstate looks empty
in this case for securitygrouprule
the same we can see for fargateprofile:
How can we reproduce it?
What environment did it happen in?
Crossplane version:
hashicorp/terraform-provider-aws#25965
The text was updated successfully, but these errors were encountered: