You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2023/01/16 17:41:00 UTC

[GitHub] [apisix-ingress-controller] jensg-st opened a new issue, #1602: bug: DNS resolution on Ubuntu 22.04.1 LTS

jensg-st opened a new issue, #1602:
URL: https://github.com/apache/apisix-ingress-controller/issues/1602

   ### Issue description
   
   This is is more FYI than a bug but I think it is worthwhile reporting. We are running k3s (v1.24.7+k3s1) on Ubuntu 22.04.01. We are getting DNS errors and the ingress controller does not work. Weirdly it works on some notebooks with Ubuntu, so we could not pinpoint the issue.
   
   We have changed the Dockerfile to run it on Debian and Ubuntu and this problem goes away and the ingress controller works as expected. My main question is if there is something I should be aware of changing the base of the Dockerfile? Is there a specific reason to use centos? Have you experienced this behaviour as well?
   
   Other than that you can close the issue because we are building our own image on Ubuntu now because centos is not longer supported/maintained and we need UTC as timezone. This is just FYI. 
   
   ### Environment
   
   - version:
   ```
   Version: 1.6.0
   Git SHA: no-git-module
   Go Version: go1.19.4
   Building OS/Arch: linux/amd64
   Running OS/Arch: linux/amd64
   ```
   
   - kubernetes:
   ```
   Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.7+k3s1", GitCommit:"7af5b16788afe9ce1718d7b75b35eafac7454705", GitTreeState:"clean", BuildDate:"2022-10-25T19:31:34Z", GoVersion:"go1.18.7", Compiler:"gc", Platform:"linux/amd64"}
   ```
   
   - uname: 5.15.0-58-generic 64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
   
   ```
   DISTRIB_ID=Ubuntu
   DISTRIB_RELEASE=22.04
   DISTRIB_CODENAME=jammy
   DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
   ```
   ```ldd (Ubuntu GLIBC 2.35-0ubuntu3.1) 2.35```
   
   ### Minimal test code / Steps to reproduce
   
   Basic k3s installation on Ubuntu
   
   ### Actual result
   
   Internal services are not getting resolved
   
   ### Error log
   
   ```
   2023-01-17T01:26:46+08:00	warn	providers/controller.go:175	found a new leader apisix-ingress-controller-b675bd778-chwb2
   2023-01-17T01:26:46+08:00	info	providers/controller.go:359	controller tries to leading ...	{"namespace": "apisix", "pod": "apisix-ingress-controller-b675bd778-chwb2"}
   2023-01-17T01:26:46+08:00	warn	apisix/cluster.go:344	waiting cluster default to ready, it may takes a while
   2023-01-17T01:26:46+08:00	info	apisix/cluster.go:172	syncing cache	{"cluster": "default"}
   2023-01-17T01:26:46+08:00	info	apisix/cluster.go:384	syncing schema	{"cluster": "default"}
   2023-01-17T01:26:46+08:00	error	apisix/plugin.go:46	failed to list plugins' names: Get "http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/plugins?all=true": dial tcp: lookup apisix-admin.apisix.svc.cluster.local: no such host
   2023-01-17T01:26:46+08:00	error	apisix/cluster.go:404	failed to list plugin names in APISIX: Get "http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/plugins?all=true": dial tcp: lookup apisix-admin.apisix.svc.cluster.local: no such host
   2023-01-17T01:26:46+08:00	error	apisix/cluster.go:367	failed to sync schema: Get "http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/plugins?all=true": dial tcp: lookup apisix-admin.apisix.svc.cluster.local: no such host
   2023-01-17T01:26:46+08:00	error	apisix/route.go:118	failed to list routes: Get "http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes": dial tcp: lookup apisix-admin.apisix.svc.cluster.local: no such host
   2023-01-17T01:26:46+08:00	error	apisix/cluster.go:222	failed to list routes in APISIX: Get "http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes": dial tcp: lookup apisix-admin.apisix.svc.cluster.local: no such host
   2023-01-17T01:26:48+08:00	error	apisix/route.go:118	failed to list routes: Get "http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes": dial tcp: lookup apisix-admin.apisix.svc.cluster.local: no such host
   2023-01-17T01:26:48+08:00	error	apisix/cluster.go:222	failed to list routes in APISIX: Get "http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes": dial tcp: lookup apisix-admin.apisix.svc.cluster.local: no such host
   2023-01-17T01:26:50+08:00	error	apisix/route.go:118	failed to list routes: Get "http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes": dial tcp: lookup apisix-admin.apisix.svc.cluster.local: no such host
   2023-01-17T01:26:50+08:00	error	apisix/cluster.go:222	failed to list routes in APISIX: Get "http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes": dial tcp: lookup apisix-admin.apisix.svc.cluster.local: no such host
   2023-01-17T01:26:52+08:00	error	apisix/route.go:118	failed to list routes: Get "http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes": dial tcp: lookup apisix-admin.apisix.svc.cluster.local: no such host
   2023-01-17T01:26:52+08:00	error	apisix/cluster.go:222	failed to list routes in APISIX: Get "http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/routes": dial tcp: lookup apisix-admin.apisix.svc.cluster.local: no such host```
   
   ### Expected result
   
   _No response_


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] jensg-st closed issue #1602: bug: DNS resolution on Ubuntu 22.04.1 LTS

Posted by "jensg-st (via GitHub)" <gi...@apache.org>.
jensg-st closed issue #1602: bug: DNS resolution on Ubuntu 22.04.1 LTS
URL: https://github.com/apache/apisix-ingress-controller/issues/1602


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1602: bug: DNS resolution on Ubuntu 22.04.1 LTS

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1602:
URL: https://github.com/apache/apisix-ingress-controller/issues/1602#issuecomment-1386734933

   Can you try to exec into the pod and look at `/etc/resolv.conf` ?
   
   
   
   > Other than that you can close the issue because we are building our own image on Ubuntu now because centos is not longer supported/maintained and we need UTC as timezone. This is just FYI.
   
   good point! I think we can modify it


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] jensg-st commented on issue #1602: bug: DNS resolution on Ubuntu 22.04.1 LTS

Posted by "jensg-st (via GitHub)" <gi...@apache.org>.
jensg-st commented on issue #1602:
URL: https://github.com/apache/apisix-ingress-controller/issues/1602#issuecomment-1420333105

   Sorry for the late reply as well. It exists. I run exactly the same installation. I only change the Dockerfile to a different base image. That is the only difference. Basically I don't re-install at all. I build the new ingress-controller image and do a `kubectl edit deployment` to change the image and then it starts working. 


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1602: bug: DNS resolution on Ubuntu 22.04.1 LTS

Posted by "tao12345666333 (via GitHub)" <gi...@apache.org>.
tao12345666333 commented on issue #1602:
URL: https://github.com/apache/apisix-ingress-controller/issues/1602#issuecomment-1423593069

   OK. So this issue can be closed?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] jensg-st commented on issue #1602: bug: DNS resolution on Ubuntu 22.04.1 LTS

Posted by "jensg-st (via GitHub)" <gi...@apache.org>.
jensg-st commented on issue #1602:
URL: https://github.com/apache/apisix-ingress-controller/issues/1602#issuecomment-1423626930

   Well, it's not fixed but we fix it on our side. All good. Thanks a lot.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] jensg-st commented on issue #1602: bug: DNS resolution on Ubuntu 22.04.1 LTS

Posted by GitBox <gi...@apache.org>.
jensg-st commented on issue #1602:
URL: https://github.com/apache/apisix-ingress-controller/issues/1602#issuecomment-1387359424

   The `etc/resolv.conf` looks alright:
   
   ```
   search apisix.svc.cluster.local svc.cluster.local cluster.local local.ds-networks.de
   nameserver 10.43.0.10
   options ndots:5
   ```


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1602: bug: DNS resolution on Ubuntu 22.04.1 LTS

Posted by "tao12345666333 (via GitHub)" <gi...@apache.org>.
tao12345666333 commented on issue #1602:
URL: https://github.com/apache/apisix-ingress-controller/issues/1602#issuecomment-1407578145

   sorry for delay. 
   
   Could you show me your install commands? 
   
   And you can run `kubectl -n apisix get svc` to check whether `admin-apisix` exists.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org