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

fix: kube-ovn-controller cannot be ready when ENABLE_METRICS is false #4865

Closed
wants to merge 1 commit into from

Conversation

zcq98
Copy link
Member

@zcq98 zcq98 commented Dec 23, 2024

Pull Request

What type of this PR

Examples of user facing changes:

  • Bug fixes

Which issue(s) this PR fixes

Fixes #4862

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Dec 23, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12464002853

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage remained the same at 22.126%

Files with Coverage Reduction New Missed Lines %
pkg/ovs/ovn-nb-port_group.go 2 82.53%
Totals Coverage Status
Change from base Build 12434320848: 0.0%
Covered Lines: 10164
Relevant Lines: 45937

💛 - Coveralls

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 24, 2024
@zcq98
Copy link
Member Author

zcq98 commented Dec 24, 2024

@zhangzujian could you help review this?

@oilbeater
Copy link
Collaborator

This will also enable the metrics endpoint, which is not the intended purpose of this configuration.

@bobz965
Copy link
Collaborator

bobz965 commented Dec 24, 2024

This will also enable the metrics endpoint, which is not the intended purpose of this configuration.

那就要把这个配置项用上,而不是无关乎这个配置项。也还要解决关闭的情况下,健康检查的问题。
在yaml 模版中要处理?难道不开启 enable metric 就不进行健康检查么? 这样好像也不合适

@oilbeater
Copy link
Collaborator

健康检查应该只检查端口是否开启就可以,不需要访问 metrics 内容

@bobz965
Copy link
Collaborator

bobz965 commented Dec 24, 2024

健康检查应该只检查端口是否开启就可以,不需要访问 metrics 内容

我们这边的理解是 enalbe metric 为 true, 服务才会监听在 10660 ,否则现有逻辑直接 return ,没有监听

@zcq98 zcq98 closed this Dec 25, 2024
@zcq98 zcq98 deleted the fix-metric branch December 25, 2024 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] kube-ovn-controller cannot be ready when ENABLE_METRICS is false
4 participants