argoproj-labs / argocd-operator

A Kubernetes operator for managing Argo CD clusters.
https://argocd-operator.readthedocs.io
Apache License 2.0
653 stars 758 forks source link

Error loading Operands for argocd-operator in argocd: r: Failed to list operands: could not find underlying CSV for operator argocd-operator.argocd #1458

Open UriZafrir opened 3 months ago

UriZafrir commented 3 months ago

Describe the bug can't install argo-cd on openshift

To Reproduce Steps to reproduce the behavior:

  1. go to operator hub
  2. search argocd and install it remains stuck as in the screenshot below. When i get to uninstall it it prints "Error loading Operands for argocd-operator in argocd: r: Failed to list operands: could not find underlying CSV for operator argocd-operator.argocd"

i also get no resources for it: oc get all -n argocd Warning: apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+ No resources found in argocd namespace.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image image

Additional context

svghadi commented 3 months ago

What is the Openshift and ArgoCD Operator version?

UriZafrir commented 3 months ago

hi openshift is 4.14 argocd is argocd-operator.v0.10.1

svghadi commented 3 months ago

I could successfully install and uninstall the operator on Openshift 4.14. Can you check operator subscription and events to see if there are any errors during install? Other thing which you can try is to clean up all argocd-operator resources like operands, subscription, crd, csv manually to do a clean fresh install.

tijnwe commented 3 months ago

I'm having the exact same issue, 4.14.30

tijnwe commented 3 months ago

An update:

I've cleaned up everything and tried installing following versions: 0.9.0, 0.8.0, 0.10.0 and 0.10.1. Same issue as above on all.

On openshift 4.14.18 it works as expected.

svghadi commented 3 months ago

Is it possible to share the error logs?

tijnwe commented 3 months ago

Any specific thing you want to see? The only thing similar to an error that I see is the screenshot above posted by UriZafrir. There are no events in the namespace, the yaml of the subscription doesn't have any errors in it either.

tijnwe commented 3 months ago

For what it's worth I updated our 4.14.18 cluster to 4.14.30 and couldn't reproduce it on that specific cluster. So will investigate further to see what the issue could be.

tijnwe commented 3 months ago

Ok so I found the error in the catalog pod in the openshift-operator-lifecycle-manager namespace. First I had to remove all remaining crd's linking to argocd. Then I had to remove a jobs.batch in openshift-marketplace namespace. Command below was the fix for me:

oc delete jobs.batch $ID -n openshift-marketplace

svghadi commented 3 months ago

Glad to hear that. By any chance, do you remember what the error message said?