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

I can't remove Application with error #1568

Closed
kwladyka opened this issue May 5, 2019 · 10 comments
Closed

I can't remove Application with error #1568

kwladyka opened this issue May 5, 2019 · 10 comments
Labels
bug Something isn't working
Milestone

Comments

@kwladyka
Copy link

kwladyka commented May 5, 2019

Describe the bug
image

image

This happen after delete. I can't remove the Application.

To Reproduce
Add resource which fail not adding any resources.

Expected behavior
Delete works.

@kwladyka kwladyka added the bug Something isn't working label May 5, 2019
@alexec
Copy link
Contributor

alexec commented May 6, 2019

It looks like it cannot find the application path inside your repo. I tried to access your repo myself, but I cannot get it to work. Can you please share your repo?

@kwladyka
Copy link
Author

kwladyka commented May 6, 2019

I think the issue was: Application was created with 0 resources, because of bad kustomization.yaml definition. Probably argocd doesn't predict situation with 0 resources.

This repo is already fixed and puss with --force, so it wouldn't help.

@alexec
Copy link
Contributor

alexec commented May 6, 2019

Does this relate to not having the diagnostic output in the UI (only the pods logs)?

@kwladyka
Copy link
Author

kwladyka commented May 6, 2019

Not sure what stay behind this error in argocd. If source of this error is from kubectl there should be way to see it.

But this time it looks like a argocd issue to not know what to do when deleting cascade when there is 0 resources in application.

@alexec
Copy link
Contributor

alexec commented May 10, 2019

Legit bug. I plan to fix this as part of #1544.

@alexmt
Copy link
Collaborator

alexmt commented May 10, 2019

Cascade delete fails because app controller fails to get the list of these resources. I think right to fail but it should be done in a more user-friendly matter. e.g. suggest deleting with cascade false.

@kwladyka
Copy link
Author

I think it should just delete it ;)

@alexec alexec modified the milestone: v1.1 May 13, 2019
@alexec alexec modified the milestones: v1.1, v1.2 Jun 14, 2019
@alexmt
Copy link
Collaborator

alexmt commented Jun 17, 2019

Controller don't depend on cache any more to do the deletion. Now even if repo is unavailable controller deletes app resources and deletes the app.

@alexmt alexmt closed this as completed Jun 17, 2019
@shineirvin
Copy link

shineirvin commented Jan 19, 2020

@kwladyka how did you solved it ? I'm experiencing the same issue. I've tried delete with cascade false, but still no luck.

@kwladyka
Copy link
Author

Not sure if it is the same issue then. My was about cascade. I don't remember to be honest. I don't experience this issue anymore.

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

4 participants