-
Notifications
You must be signed in to change notification settings - Fork 32
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
sctool takes more time (~3min) then before to retrieve manager-server version after upgrade #3849
Comments
From SM logs:
As it can be seen above, SM tries to connect to the host represented by an empty string func (s *Service) CreateClientNoCache(ctx context.Context, clusterID uuid.UUID) (*scyllaclient.Client, error) {
s.logger.Info(ctx, "Creating new Scylla HTTP client", "cluster_id", clusterID)
c, err := s.GetClusterByID(ctx, clusterID)
if err != nil {
return nil, err
}
config := scyllaclient.DefaultConfigWithTimeout(s.timeoutConfig)
if c.Port != 0 {
config.Port = fmt.Sprint(c.Port)
}
config.AuthToken = c.AuthToken
config.Hosts = append([]string{c.Host}, c.KnownHosts...) // <- bug This can't happen with clusters added to SM 3.2, as it persists the |
Steps:
systemctl start scylla-manager
sctool version
Actual result:
Error
Error: Get "http://127.0.0.1:12345/api/v1/version": dial tcp 127.0.0.1:12345: connect: connection refused
while getting the version of client.Expected result:
In older versions it was enough to sleep 30 seconds before running
sctool version
to get the versions. So, expected the same behavior here as well.Additional info:
3.2.7-0.20240509.769fc4f1a
;The text was updated successfully, but these errors were encountered: