MirtoBusico commented on issue #851:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/851#issuecomment-1025126152


   **UPDATE**
   I reinstalled apisix from scratch and looked at the 
apisix-ingress-controller log before ever trying to create a route.
   The pod is trapped in a loop between the "GET /healtz" messages
   ```
   [GIN] 2022/01/30 - 19:41:39 | 200 | 35.789µs | 127.0.0.6 | GET "/healthz"
   [GIN] 2022/01/30 - 19:41:39 | 200 | 819.067µs | 127.0.0.6 | GET "/healthz"
   2022-01-30T19:41:41+08:00 error apisix/route.go:117 failed to list 
routes: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes: context 
canceled
   2022-01-30T19:41:41+08:00 error apisix/cluster.go:197 failed to 
list route in APISIX: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes: context 
canceled
   2022-01-30T19:41:43+08:00 error apisix/route.go:117 failed to list 
routes: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes: context 
canceled
   2022-01-30T19:41:43+08:00 error apisix/cluster.go:197 failed to 
list route in APISIX: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes: context 
canceled
   2022-01-30T19:41:45+08:00 error apisix/route.go:117 failed to list 
routes: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes: context 
canceled
   2022-01-30T19:41:45+08:00 error apisix/cluster.go:197 failed to 
list route in APISIX: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes: context 
canceled
   2022-01-30T19:41:45+08:00 error apisix/cluster.go:164 failed to 
sync cache {"cost_time": "8.000983025s", "cluster": "default"}
   2022-01-30T19:41:45+08:00 error ingress/controller.go:396 failed to 
wait the default cluster to be ready: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes: context 
canceled
   2022-01-30T19:41:45+08:00 info ingress/controller.go:337 controller 
now is running as a candidate {"namespace": "apisix", "pod": 
"apisix-ingress-controller-7d5bbf5dd5-4dr2m"}
   I0130 19:41:45.428676 1 leaderelection.go:243] attempting to acquire leader 
lease apisix/ingress-apisix-leader...
   2022-01-30T19:41:45+08:00 info apisix/cluster.go:155 syncing cache 
{"cluster": "default"}
   2022-01-30T19:41:45+08:00 info apisix/cluster.go:344 syncing schema 
{"cluster": "default"}
   2022-01-30T19:41:45+08:00 error apisix/route.go:117 failed to list 
routes: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes: context 
canceled
   2022-01-30T19:41:45+08:00 error apisix/cluster.go:197 failed to 
list route in APISIX: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes: context 
canceled
   2022-01-30T19:41:45+08:00 error apisix/plugin.go:46 failed to list 
plugins' names: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/plugins/list: 
context canceled
   2022-01-30T19:41:45+08:00 error apisix/cluster.go:364 failed to 
list plugin names in APISIX: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/plugins/list: 
context canceled
   2022-01-30T19:41:45+08:00 warn apisix/cluster.go:327 failed to sync 
schema: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/plugins/list: 
context canceled
   2022-01-30T19:41:45+08:00 info ingress/controller.go:290 
LeaderElection {"message": "apisix-ingress-controller-7d5bbf5dd5-4dr2m became 
leader", "event_type": "Normal"}
   I0130 19:41:45.432763 1 leaderelection.go:253] successfully acquired lease 
apisix/ingress-apisix-leader
   2022-01-30T19:41:45+08:00 info ingress/controller.go:370 controller 
tries to leading ... {"namespace": "apisix", "pod": 
"apisix-ingress-controller-7d5bbf5dd5-4dr2m"}
   2022-01-30T19:41:45+08:00 warn apisix/cluster.go:304 waiting 
cluster default to ready, it may takes a while
   2022-01-30T19:41:47+08:00 error apisix/route.go:117 failed to list 
routes: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes: context 
canceled
   2022-01-30T19:41:47+08:00 error apisix/cluster.go:197 failed to 
list route in APISIX: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes: context 
canceled
   2022-01-30T19:41:49+08:00 error apisix/route.go:117 failed to list 
routes: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes: context 
canceled
   2022-01-30T19:41:49+08:00 error apisix/cluster.go:197 failed to 
list route in APISIX: Get 
http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes: context 
canceled
   [GIN] 2022/01/30 - 19:41:49 | 200 | 31.261µs | 127.0.0.6 | GET "/healthz"
   [GIN] 2022/01/30 - 19:41:49 | 200 | 35.169µs | 127.0.0.6 | GET "/healthz"
   ```
   This loop is repeated continuously.
   Hope this helps
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to