Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Reconciliation initiated without a valid cause #10

Open
Tracked by #19
kadel opened this issue Sep 8, 2023 · 1 comment
Open
Tracked by #19

Reconciliation initiated without a valid cause #10

kadel opened this issue Sep 8, 2023 · 1 comment
Labels
kind/bug Something isn't working

Comments

@kadel
Copy link
Member

kadel commented Sep 8, 2023

Describe the bug

It looks like the operator is stuck in some kind of reconcile loop

2023-09-08T12:53:58+02:00	DEBUG	controllers.Helm	Reconciliation triggered	{"backstage": "backstage-operator/backstage-sample"}
2023-09-08T12:53:59+02:00	DEBUG	predicate	Reconciling due to dependent resource update	{"name": "openshift-master-controllers", "namespace": "openshift-controller-manager", "apiVersion": "v1", "kind": "ConfigMap"}
2023-09-08T12:53:59+02:00	DEBUG	predicate	Reconciling due to dependent resource update	{"name": "cluster-policy-controller-lock", "namespace": "openshift-kube-controller-manager", "apiVersion": "v1", "kind": "ConfigMap"}
2023-09-08T12:54:01+02:00	DEBUG	controllers.Helm	preparing upgrade for backstage-sample
2023-09-08T12:54:06+02:00	DEBUG	controllers.Helm	performing update for backstage-sample
2023-09-08T12:54:06+02:00	DEBUG	controllers.Helm	dry run for backstage-sample
2023-09-08T12:54:06+02:00	DEBUG	predicate	Reconciling due to dependent resource update	{"name": "backstage-sample", "namespace": "backstage-operator", "apiVersion": "apps/v1", "kind": "Deployment"}
2023-09-08T12:54:06+02:00	DEBUG	predicate	Reconciling due to dependent resource update	{"name": "backstage-sample", "namespace": "backstage-operator", "apiVersion": "apps/v1", "kind": "Deployment"}
2023-09-08T12:54:06+02:00	INFO	controllers.Helm	Release reconciled	{"backstage": "backstage-operator/backstage-sample", "name": "backstage-sample", "version": 200}

Expected Behavior

Shouldn't perform reconciliation if there are no changes made to Backstage CR or related resources

@kadel kadel added the kind/bug Something isn't working label Sep 13, 2023
@kadel kadel changed the title reconciliation triggered for no good reason Reconciliation initiated without a valid cause Sep 27, 2023
@PatAKnight PatAKnight self-assigned this Oct 4, 2023
@PatAKnight
Copy link
Member

It looks like there are a lot of resources that are set to be watched by the operator. Whenever one of those resources are updated it triggers reconciliation. The problem is that some of those resources are updated consistently, mainly they are set to update after a specified number of seconds have passed. I have found that setting SkipDependentWatches to true to stops the problem. But I do not know if that is the route we want to go.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants