Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion internal/rest/resources/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ func joinWithToken(state types.State, r *http.Request, req *types.Control) (*typ

client, err := state.Connect().Member(&url.URL, false, cert)
if err != nil {
return nil, nil, err
logger.Warn("Failed to get client for cluster member", slog.String("address", url.String()), slog.String("error", err.Error()))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect we currently simply return the error as the call to shared.GetRemoteCertificate should have already failed if it's not reachable.

Would you mind sharing a reproducer how to trigger this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claudiubelu any update on this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking as draft until you get a chance to get back to it @claudiubelu.

lastErr = err
continue
Comment on lines 248 to +252
}

joinInfo, err = internalClient.AddClusterMember(context.Background(), client, newClusterMember)
Expand Down