Skip to content
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

Disable leader election between ingress classes #921

Conversation

markusthoemmes
Copy link
Contributor

We're now running two ingress reconcilers (one for Kourier and one for Istio) in the same component, which makes their respective leader election clash

I0429 08:25:42.686755       1 leaderelection.go:243] attempting to acquire leader lease  openshift-serverless/openshift-ingress-controller.github.com.openshift-knative.serverless-operator.serving.ingress.pkg.reconciler.ingress.reconciler.00-of-01...
I0429 08:25:42.686761       1 leaderelection.go:243] attempting to acquire leader lease  openshift-serverless/openshift-ingress-controller.github.com.openshift-knative.serverless-operator.serving.ingress.pkg.reconciler.ingress.reconciler.00-of-01...

As a result, only one of the reconcilers will run in practice, which breaks things horribly. We don't actually run multiple instances of these today anyway, so disabling the HA code fixes that situation.

@markusthoemmes
Copy link
Contributor Author

could not upsert output imagestreamtag: imagestreamtag.image.openshift.io "stable:knative-operator" already exists

/retest

@mgencur
Copy link
Contributor

mgencur commented Apr 29, 2021

/lgtm

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: markusthoemmes, mgencur

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [markusthoemmes,mgencur]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 056bee3 into openshift-knative:main Apr 29, 2021
ctx := signals.NewContext()

// Disable leader election to allow both ingress controllers to do their job.
// TODO: Fix the respective clash in Knative's reconciler framework.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we track this somewhere upstream ? e.g. knaitve/pkg ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants