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

Unable to delete HTTPRoute object #79

Closed
ashoksrirama opened this issue Jan 24, 2023 · 4 comments
Closed

Unable to delete HTTPRoute object #79

ashoksrirama opened this issue Jan 24, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ashoksrirama
Copy link

ashoksrirama commented Jan 24, 2023

I've a failed HTTPRoute object (crystal) in default namespace due to "Failed build model due to RETRY". When I tried to delete the object, kubectl command just hangs forever. Lattice is unable to release the finalizer and see the following messages in the controller logs.

Retrying Reconcile after 20 seconds ...
2023-01-24T19:21:11.095Z INFO controller.httproute HTTPRouteReconciler {"reconciler group": "gateway.networking.k8s.io", "reconciler kind": "HTTPRoute", "name": "crystal", "namespace": "default"}
2023-01-24T19:21:11.095Z INFO controller.httproute Deleting {"reconciler group": "gateway.networking.k8s.io", "reconciler kind": "HTTPRoute", "name": "crystal", "namespace": "default"}
2023-01-24T19:21:11.096Z DEBUG events Normal {"object": {"kind":"HTTPRoute","namespace":"default","name":"crystal","uid":"275832ce-830e-469b-84f0-777027e351d9","apiVersion":"gateway.networking.k8s.io/v1alpha2","resourceVersion":"7605439"}, "reason": "Reconcile", "message": "Deleting Reconcile"}
2023-01-24T19:21:11.096Z DEBUG events Warning {"object": {"kind":"HTTPRoute","namespace":"default","name":"crystal","uid":"275832ce-830e-469b-84f0-777027e351d9","apiVersion":"gateway.networking.k8s.io/v1alpha2","resourceVersion":"7605439"}, "reason": "FailedBuildModel", "message": "Failed build model due to RETRY"}
2023-01-24T19:21:31.096Z INFO controller.httproute HTTPRouteReconciler {"reconciler group": "gateway.networking.k8s.io", "reconciler kind": "HTTPRoute", "name": "crystal", "namespace": "default"}
2023-01-24T19:21:31.097Z INFO controller.httproute Deleting {"reconciler group": "gateway.networking.k8s.io", "reconciler kind": "HTTPRoute", "name": "crystal", "namespace": "default"}

Events:
Type Reason Age From Message


Warning FailedBuildModel 53m (x12 over 57m) httproute Failed build model due to RETRY
Normal Reconcile 12m (x137 over 57m) httproute Adding/Updating Reconcile
Normal Reconcile 2m18s (x24 over 9m49s) httproute Deleting Reconcile

@liwenwu-amazon
Copy link
Contributor

Can you send me the complete controller log file? I believe it should contains lattice API call error detail why it can NOT delete HTTPRoute

@liwenwu-amazon
Copy link
Contributor

Please also attach following info:

kubectl get gatewayclass -o yaml
kubectl get gateway -o yaml
kubectl get httproute -o yaml
kubectl get svc 
kubectl get endpoints
kubectl get serviceimport
kubectl get serviceexport

@ashoksrirama
Copy link
Author

@liwenwu-amazon liwenwu-amazon added bug Something isn't working and removed needs investigation labels Jan 25, 2023
@liwenwu-amazon
Copy link
Contributor

When a serviceimport object is not present and it is referenced by a HTTPRoute, the current code will fail and retry forever to delete this HTTPRoute

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

2 participants