-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Workflow controller v3 fails to start on OpenShift 3.11 #5638
Comments
Can you please run |
Can you also Google "OpenShift coordination API" / speak to your OpenShift contacts and ask for their advice or documentation of this feature. Once you've confirm if they do not support this API, then you'll have confirmed that OpenShift that Leader Election/HA is not supported on v3. If that is the case, can you please submit a PR to support a |
The OpenShift 3.11 is using Kubernetes 1.11, so it makes sense this is not working. https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.14.md Thanks for pointing out where this can be fixed....I'll try on the weekend if I'm able to get things set up. |
Thank you for helping! |
Leader election used the `coordination.k8s.io` kubernetes api with is only available in kubernetes >= 1.14. By settings the environment variable LEADER_ELECTION_IDENTITY=off leader election can be disabled for the workflow controller. Signed-off-by: tobi <mail@singhania.at>
…_ELECTION_DISABLE (argoproj#5638) Signed-off-by: tobi <mail@singhania.at>
I'm trying this fix to run Argo Workflows v3 on a cluster running in version < 1.14 I found out 2 issues:
I think when the leader election is disabled, we shouldn't try to start leading:
|
I also encountered the same issue as @vbarbaresi in Openshift 3.11 (Argo v3.0.2).
|
@sarabala1979 didn't this get fixed? |
Any updates on this? |
I think you need to set LEADER_ELECTION_IDENTITY=off. |
I already set |
I tested with the |
We should backport the fix. |
@sarabala1979 this did not appear to get back-ported to v3.0.2 - can you please make sure it makes it into v3.0.3. Commits are: |
I'm on OpenShift Container Platform 4.7, and the leases are there: ltheisen@MM233009-PC:~/git/caasd-portal-config$ oc api-resources|grep leases
helmreleases apps.open-cluster-management.io true HelmRelease
leases coordination.k8s.io true Lease
machinepoolnameleases hive.openshift.io true MachinePoolNameLease
clustersyncleases csl hiveinternal.openshift.io true ClusterSyncLease
releases rls redis.databases.cloud.ibm.com true Release However, we are using namespaced install and Anyway, if leases are required, perhaps more updates to the documentation to describe what is actually required to get namespaced installs to work? |
@lucastheisen would you like to supply the updated manifests needed to run it in a PR? |
@alexec I would... As soon as I figure it out. We are stuck on the |
Leases are used for controller HA. If v3.0.3 you can disable them by setting |
Was just about to say:
Looks like you released it 29 minutes ago... Ill give that a go. |
Looks like |
|
Summary
When tying to upgrade to Argo workflows 3, startup of the workflow controller on OpenShift 3.11 failes, because the underlying api for leader election is not available.
A configuration for disabling leader election might mitigate the situation.
Diagnostics
What Kubernetes provider are you using?
OpenShift 3.11 which is running on Kubernetes 1.11
What version of Argo Workflows are you running?
v3.0.1
The issue can be reproduced by running the default namespace install manifest
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
The text was updated successfully, but these errors were encountered: