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

when kube-proxy is disabled, sdn should not startMetricsServer #231

Closed
fzu-huang opened this issue Dec 10, 2020 · 3 comments
Closed

when kube-proxy is disabled, sdn should not startMetricsServer #231

fzu-huang opened this issue Dec 10, 2020 · 3 comments

Comments

@fzu-huang
Copy link

fzu-huang commented Dec 10, 2020

I have deploy openshift-sdn successfully and update it by edit configmap sdn-config:

mode: "disabled"

after that I deploy a kube-proxy ,and RE-DEPLOY sdn again, this time, sdn pod stuck in phase: RunContainerError. logs:

W1210 10:17:38.676349   44123 proxy.go:63] Built-in kube-proxy is disabled
E1210 10:17:38.678956   44123 proxy.go:254] starting metrics server failed: listen tcp 127.0.0.1:10249: bind: address already in use
I1210 10:17:38.701436   44123 multitenant.go:158] SyncVNIDRules: 0 unused VNIDs
E1210 10:17:43.679198   44123 proxy.go:254] starting metrics server failed: listen tcp 127.0.0.1:10249: bind: address already in use
E1210 10:17:48.681093   44123 proxy.go:254] starting metrics server failed: listen tcp 127.0.0.1:10249: bind: address already in use

I tried update sdn‘s configmap to erase kube-proxy-metric-addr:

metricsBindAddress: ""

but seem uneless.

I check the code and found that :

func (sdn *OpenShiftSDN) runProxy(waitChan chan<- bool) {
	if string(sdn.ProxyConfig.Mode) == "disabled" {
		klog.Warningf("Built-in kube-proxy is disabled")
		sdn.startMetricsServer()
		close(waitChan)
		return
	}
...
func (sdn *OpenShiftSDN) startMetricsServer() {
	if sdn.ProxyConfig.MetricsBindAddress == "" {
		return
	}

I think maybe we should cancel call sdn.startMetricsServer() if sdn.ProxyConfig.Mode is "disabled"

@fzu-huang
Copy link
Author

@danwinship CC,please. If it really need an optimaze , I'm glad to open a pullrequest to resolve it

@danwinship
Copy link
Contributor

Running openshift-sdn with kube-proxy disabled is not supported. The mode only exists for our own internal testing purposes. Where did you even learn about this config option?
/close

@openshift-ci-robot
Copy link
Contributor

@danwinship: Closing this issue.

In response to this:

Running openshift-sdn with kube-proxy disabled is not supported. The mode only exists for our own internal testing purposes. Where did you even learn about this config option?
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

No branches or pull requests

3 participants