-
Notifications
You must be signed in to change notification settings - Fork 1.2k
cannot get composite resource #5151
Description
What happened?
Please note I use realtime compositions feature of crossplane 1.14
Some of my compositions are creating other composite resources, triggering near instant reconciliation of multiple nested level of composite/composed resources.
In a fair amount of tries, composition creation get stuck because of the following error:
2023-12-19T16:33:55Z DEBUG crossplane cannot get composite resource {"controller": "defined/compositeresourcedefinition.apiextensions.crossplane.io", "controller": "composite/xuserswithattachment.iam.crossplane.airnity.net", "request": {"name":"crossplane-dev-user"}, "error": "XUserWithAttachment.iam.crossplane.airnity.net \"crossplane-dev-user\" not found"}
This error happens the exact moment composite is created by crossplane and should be reconciled.
There is maybe a race condition here and crossplane does not retry reconciliation so my composition is stuck until i delete the composite resource:
return reconcile.Result{}, errors.Wrap(resource.IgnoreNotFound(err), errGet)
How can we reproduce it?
I can make it happens regulary (once every 3/4 apply of my composition) with the setup i described: a composite resource creating other composite resources, realtime compositions feature enabled, and maybe functions are involved in the bug (server side apply?)
Enregistrement.de.l.ecran.2023-12-19.a.17.48.45.mov
Here you can see on argocd, i delete my composition, and creation get stuck after the creation of XPolicy because of this bug. Crossplane never retries and I have to trigger a reconciliation manually, by deleting the XPolicy for example.
What environment did it happen in?
Crossplane version: 1.14.4
Metadata
Metadata
Assignees
Labels
Type
Projects
Status