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

v1.4.2安装后eureka发现不了服务ip #1284

Closed
1 task done
lcfang opened this issue Sep 4, 2024 · 8 comments · Fixed by #1322
Closed
1 task done

v1.4.2安装后eureka发现不了服务ip #1284

lcfang opened this issue Sep 4, 2024 · 8 comments · Fixed by #1322

Comments

@lcfang
Copy link
Contributor

lcfang commented Sep 4, 2024

If you are reporting any crash or any potential security issue, do not
open an issue in this repo. Please report the issue via ASRC(Alibaba Security Response Center) where the issue will be triaged appropriately.

  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

使用k8s 1.28版本 helm部署higress1.4.2后(console和gateway配置成NodePort类型service),容器均能正常启动,console能正常访问,但是配置路由后访问服务报错

Ⅱ. Describe what happened

console能够正常访问,配置路由策略成功,但是通过网关访问报错:
c969d5af283063a7101bf544419b31e
看到console中报了很多错误,不确定是否有影响:
eb16044331581d4ce147975e56842062

controller中看感觉f服务发现是没有问题的,但是没有看到路由规则下发的日志,在gateway中没有看到什么重要信息

Ⅲ. Describe what you expected to happen

路由下发成功后通过网关访问正常

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. 配置eureka服务发现
  2. 配置路由
  3. 配置策略:url重定向

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • Higress version: v1.4.2
  • OS : kylin
  • Others: k8s v1.28
@CH3CHO
Copy link
Collaborator

CH3CHO commented Sep 5, 2024

这个 Console 的错误日志是不影响功能的,下个版本会移除。

@lcfang
Copy link
Contributor Author

lcfang commented Sep 5, 2024

就简单配置了一个路由和重定向规则,访问不通。
在gateway中查看cluster和endpoint情况:
image
image
在controller中查看serviceentry和vs都事正常的:
image
在controller和gateway中没看到什么异常,在gateway中只看到循环在报下面的wariwarning:
image

@johnlanni
Copy link
Collaborator

你这个是建了一个固定IP的服务,配了域名?

@johnlanni
Copy link
Collaborator

控制台下发的吗?mcpbridge看下

@johnlanni johnlanni changed the title v1.4.2安装后发现路由不生效 v1.4.2安装后eureka发现不了服务ip Sep 5, 2024
@lcfang
Copy link
Contributor Author

lcfang commented Sep 5, 2024

你这个是建了一个固定IP的服务,配了域名?

没有配置域名

控制台下发的吗?mcpbridge看下

是控制台下发的,只有一个default的mcpbridge,里面是eureka注册中心的配置

@lcfang
Copy link
Contributor Author

lcfang commented Sep 5, 2024

通过在controller中执行curl http://localhost:15014/debug/configz获取configz,查找gateway中循环报warning的域名信息,发现有一个该域名是某一个服务的endpoints地址,在console的服务列表中搜索服务也能够查到:
image
image
该服务在注册中心中查不到了,已经下掉了,于是将controller重启,gateway中不再刷上面的warning了,到gateway中查路由不生效的服务对应的endpoints也能查到了,再次访问服务就正常了。
不知道是不是因为存在注册地址是路由的服务导致的该问题,明天尝试复现一下。

@lcfang lcfang closed this as completed Sep 5, 2024
@lcfang lcfang reopened this Sep 6, 2024
@lcfang
Copy link
Contributor Author

lcfang commented Sep 6, 2024

今天该服务再次注册到了注册中心,重启了controller和gateway后复现了该问题,但是发现并不是所有的EDS都下发失败,部分是好的,部分没有,看不出什么规律,下面是在gateway中查看cluster看到的:
image

@johnlanni
Copy link
Collaborator

eureka 的服务发现需要做一下校验,禁止不合法的 ip 字段,影响这个行为

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants