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 single-use dialer already dialed issue #458

Merged

Conversation

RokibulHasan7
Copy link
Member

@RokibulHasan7 RokibulHasan7 commented Nov 2, 2024

Summary

Before:

$ clusteradm proxy health
I1102 11:57:52.678047   38144 portforward.go:154] Forwarding to pod cluster-proxy-696b948dff-bmlhx
E1102 11:57:53.647755   38144 exec.go:278] Failed requesting /healthz endpoint for cluster default: No agent available
I1102 11:57:53.754295   38144 portforward.go:249] Connection closed due to error stream closed
E1102 11:57:53.755129   38144 exec.go:278] Failed requesting /healthz endpoint for cluster global: single-use dialer already dialed
E1102 11:57:53.858835   38144 exec.go:278] Failed requesting /healthz endpoint for cluster spoke2: single-use dialer already dialed

After:

clusteradm proxy health
I1105 13:49:17.028443   16533 portforward.go:154] Forwarding to pod cluster-proxy-696b948dff-zqfw8
I1105 13:49:18.541635   16533 portforward.go:154] Forwarding to pod cluster-proxy-696b948dff-zqfw8
CLUSTER NAME    INSTALLED    AVAILABLE    PROBED HEALTH    LATENCY
rakib           True         True         True             598.983698ms
spoke1          True         True         False            <none>

Related issue(s)

Fixes #

@openshift-ci openshift-ci bot requested review from ycyaoxdu and yue9944882 November 2, 2024 06:12
@zhujian7
Copy link
Member

zhujian7 commented Nov 4, 2024

/cc @xuezhaojun could you please take a look at this PR? thx

@xuezhaojun
Copy link
Member

@RokibulHasan7 Is this also the k3s environment?

@RokibulHasan7
Copy link
Member Author

@RokibulHasan7 Is this also the k3s environment?

yes

@xuezhaojun
Copy link
Member

xuezhaojun commented Nov 5, 2024

@RokibulHasan7
It seems CreateSingleUseGrpcTunnel is deprecated, can we try use CreateSingleUseGrpcTunnelWithContext instead?

// Deprecated 2022-06-07: use CreateSingleUseGrpcTunnelWithContext
func CreateSingleUseGrpcTunnel(tunnelCtx context.Context, address string, opts ...grpc.DialOption) (Tunnel, error) {
	return CreateSingleUseGrpcTunnelWithContext(context.TODO(), tunnelCtx, address, opts...)
}

btw, is the fix verified in your env? Can we have command result of fixed version also pasted?

@RokibulHasan7
Copy link
Member Author

RokibulHasan7 commented Nov 5, 2024

@RokibulHasan7 It seems CreateSingleUseGrpcTunnel is deprecated, can we try use CreateSingleUseGrpcTunnelWithContext instead?

// Deprecated 2022-06-07: use CreateSingleUseGrpcTunnelWithContext
func CreateSingleUseGrpcTunnel(tunnelCtx context.Context, address string, opts ...grpc.DialOption) (Tunnel, error) {
	return CreateSingleUseGrpcTunnelWithContext(context.TODO(), tunnelCtx, address, opts...)
}

btw, is the fix verified in your env? Can we have command result of fixed version also pasted?

working in my env. Description updated.

@xuezhaojun
Copy link
Member

/lgtm

@xuezhaojun
Copy link
Member

@zhujian7 The fix looks good to me, I think we can approve it.

@zhujian7
Copy link
Member

zhujian7 commented Nov 6, 2024

/cc @qiujian16

@openshift-ci openshift-ci bot requested a review from qiujian16 November 6, 2024 06:28
@qiujian16
Copy link
Member

/approve
/lgtm

Copy link

openshift-ci bot commented Nov 6, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16, RokibulHasan7

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Nov 6, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 15b68c4 into open-cluster-management-io:main Nov 6, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants