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

Argo - The server could not find the requested resource (get workflows.argoproj.io) #9461

Closed
2 of 3 tasks
decipher27 opened this issue Aug 29, 2022 · 5 comments
Closed
2 of 3 tasks
Labels

Comments

@decipher27
Copy link

decipher27 commented Aug 29, 2022

Checklist

  • Double-checked my configuration.
  • Tested using the latest version.
  • Used the Emissary executor.

Summary

What happened/what you expected to happen?

Cluster Configuration:
Eks clusters having 4 spot nodes.

We noticed our workflows are failing due to this error - "Failed to wait for service account secret: timed out waiting for the condition". , this started happening after upgrading k3s to v1.24.3.

Here, we had to perform argoCD CLI version upgrade in order to fix the above [Upgraded it to 2.3.7] [Fix - https://github.com/argoproj/argo-cd/issues/9422#issuecomment-1128135869, PR FIX - https://github.com/argoproj/argo-cd/pull/9546]

Next issue started happeningg after upgrading argoCD CLI version to 2.3.7.
Related ArgoCD ticket - argoproj/argo-cd#10422

The cluster got created successfully but we believe the CRD's did not get applied here. Please Note that it was getting applied prior to upgrading ARGO CD CLI version..

When I do an "argo list" below is the log that I see.

❯ argo list
FATA[2022-08-29T14:44:59.636Z] rpc error: code = NotFound desc = the server could not find the requested resource (get workflows.argoproj.io)

What version are you running?
Current argo CD CLI version: 2.3.7
k3s version: v1.24.3-k3s1
ARGO workflows CLI : v3.1.3

Diagnostics

We have a sequential workflow that runs one after the other. Hope this much information is sufficient.

Cluster got created but there are no resources find under it. When I do an argo list, I do see this error:

❯ argo list
FATA[2022-08-29T14:44:59.636Z] rpc error: code = NotFound desc = the server could not find the requested resource (get workflows.argoproj.io)

If the workflow's pods have not been created, you can skip the rest of the diagnostics.


Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@sarabala1979
Copy link
Member

@dpadhiar can you do the initial triage?

@dpadhiar
Copy link
Member

This may be an error with the CRD installation, could you try reapplying these and reporting back if the error occurs?

@alexec
Copy link
Contributor

alexec commented Sep 5, 2022

This is likely a set-up issue. If you can show othewise, please re-open.

@alexec alexec closed this as completed Sep 5, 2022
@decipher27
Copy link
Author

decipher27 commented Sep 9, 2022

Found the issue, since we are using latest version of k3s i.e v1.24.3+k3s1, it requires latest CRD's updated with the latest apiVersion.

@Talador12
Copy link

Found the issue, since we are using latest version of k3s i.e v1.24.3+k3s1, it requires latest CRD's updated with the latest apiVersion.

What change in apiVersion/CRDs did you make? We are using the most recent CRDs on this github with the same error as you. I can see the v1 CustomResourceDefinition with an argoproj.io/v1alpha1 apiVersion, but we are on the latest v1.26.1-k3s1 k3s

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

No branches or pull requests

5 participants