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

Apps in Any Namespace: Warnings thrown when viewing application in UI #13694

Closed
3 tasks done
patrickbardo opened this issue May 23, 2023 · 8 comments
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@patrickbardo
Copy link
Contributor

patrickbardo commented May 23, 2023

Describe the bug
When running ArgoCD with application-namespaces, if an application is created in another namespace, and then viewed in the UI, an error pops up as seen below in screenshots.

The links field fails to load, and checking the logs, it looks as if the server is looking for the application in the argocd namespace, even though it is in another namespace.

level=warning msg="application does not exist" application=xxx namespace=argocd

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

To Reproduce

  • Run system with --application-namespaces=*
  • Create application with metadata.namespace anything other than argocd (to match exactly, this was done tracking resources in a private repo)
  • As admin role, open the application resource

Expected behavior

  • The error should show, with links failing to load (no links need to be present in the definition).
  • The server logs should include the logs pasted below.

Screenshots

Screenshot 2023-05-23 at 08 47 53

Version

argocd: v2.7.2+cbee7e6.dirty
  BuildDate: 2023-05-12T15:33:14Z
  GitCommit: cbee7e6011407ed2d1066c482db74e97e0cc6bdb
  GitTreeState: dirty
  GoVersion: go1.20.4
  Compiler: gc
  Platform: darwin/amd64
argocd-server: v2.7.1+5e54351.dirty
  BuildDate: 2023-05-02T16:35:40Z
  GitCommit: 5e543518dbdb5384fa61c938ce3e045b4c5be325
  GitTreeState: dirty
  GoVersion: go1.19.6
  Compiler: gc
  Platform: linux/amd64
  Kustomize Version: v5.0.1 2023-03-14T01:32:48Z
  Helm Version: v3.11.2+g912ebc1
  Kubectl Version: v0.24.2
  Jsonnet Version: v0.19.1

Logs

level=warning msg="application does not exist" application=xxx namespace=argocd  
level=warning msg="finished unary call with code PermissionDenied" error="rpc error: code = PermissionDenied desc = permission denied" grpc.code=PermissionDenied grpc.method=ListLinks grpc.service=application.ApplicationService  span.kind=server system=grpc
@patrickbardo patrickbardo added the bug Something isn't working label May 23, 2023
@alexmt
Copy link
Collaborator

alexmt commented May 23, 2023

Thank you for reporting! Fixed by #13664

@alexmt alexmt closed this as completed May 23, 2023
@patrickbardo
Copy link
Contributor Author

I just upgraded to latest with this bug fix, and I am still receiving the same error. It looks like the server is looking in the wrong namespace for the application resource.

@crenshaw-dev crenshaw-dev reopened this May 25, 2023
@speedfl
Copy link
Contributor

speedfl commented May 30, 2023

Hey. We have the same issue with latest version

@asohnlein-tsy
Copy link

This issue is also present for manifest editing not only on links field.

@speedfl
Copy link
Contributor

speedfl commented May 31, 2023

For manifest editing this was fixed in #13839

@speedfl
Copy link
Contributor

speedfl commented May 31, 2023

@crenshaw-dev here the issue is a similar but needs bit more work as appNamepace is not even part of the query in the proto. I can take care of it today

crenshaw-dev pushed a commit that referenced this issue Jun 2, 2023
Signed-off-by: Geoffrey Muselli <geoffrey.muselli@gmail.com>
gcp-cherry-pick-bot bot pushed a commit that referenced this issue Jun 2, 2023
Signed-off-by: Geoffrey Muselli <geoffrey.muselli@gmail.com>
crenshaw-dev pushed a commit that referenced this issue Jun 2, 2023
Signed-off-by: Geoffrey Muselli <geoffrey.muselli@gmail.com>
Co-authored-by: Geoffrey MUSELLI <geoffrey.muselli@gmail.com>
gcp-cherry-pick-bot bot pushed a commit that referenced this issue Jul 14, 2023
Signed-off-by: Geoffrey Muselli <geoffrey.muselli@gmail.com>
crenshaw-dev pushed a commit that referenced this issue Jul 14, 2023
Signed-off-by: Geoffrey Muselli <geoffrey.muselli@gmail.com>
Co-authored-by: Geoffrey MUSELLI <geoffrey.muselli@gmail.com>
@crenshaw-dev
Copy link
Member

@speedfl is this completely resolved now that #13854 is merged?

@speedfl
Copy link
Contributor

speedfl commented Jul 14, 2023

Yes all good on my side since upgrade to 2.7.7

schakrad pushed a commit to schakrad/argo-cd that referenced this issue Jul 24, 2023
…j#13890)

Signed-off-by: Geoffrey Muselli <geoffrey.muselli@gmail.com>
Co-authored-by: Geoffrey MUSELLI <geoffrey.muselli@gmail.com>
Signed-off-by: schakrad <58915923+schakrad@users.noreply.github.com>
yyzxw pushed a commit to yyzxw/argo-cd that referenced this issue Aug 9, 2023
Signed-off-by: Geoffrey Muselli <geoffrey.muselli@gmail.com>
tesla59 pushed a commit to tesla59/argo-cd that referenced this issue Dec 16, 2023
Signed-off-by: Geoffrey Muselli <geoffrey.muselli@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants