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

Handle errors on manager_cluster resource properly #1103

Merged
merged 1 commit into from
Feb 11, 2024

Conversation

ksamoray
Copy link
Collaborator

@ksamoray ksamoray commented Feb 8, 2024

Output messages weren't outputed properly from provider.

@ksamoray
Copy link
Collaborator Author

ksamoray commented Feb 8, 2024

/test-all

@@ -356,7 +356,7 @@ func joinNodeToCluster(clusterID string, certSha256Thumbprint string, guestNode
}
_, err = client.Joincluster(joinClusterParams)
if err != nil {
return fmt.Errorf("Failed to join node to cluster: %s, node ip address: %s", err, guestNode.IPAddress)
return logAPIError(fmt.Sprintf("Failed to join node to cluster: %s, node ip address: %s", clusterID, guestNode.IPAddress), err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Failed to join node test is repeated on Create (but not on Update), maybe lets remove the duplicate text from Create flow?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah makes sense

Output messages weren't outputed properly from provider.

Signed-off-by: Kobi Samoray <[email protected]>
@ksamoray ksamoray force-pushed the manager_cluster_err branch from 187f96c to e3068cb Compare February 8, 2024 19:45
@ksamoray
Copy link
Collaborator Author

ksamoray commented Feb 8, 2024

/test-all

@ksamoray ksamoray merged commit 8c0081c into vmware:master Feb 11, 2024
7 checks passed
@ksamoray ksamoray deleted the manager_cluster_err branch February 11, 2024 08:52
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

Successfully merging this pull request may close these issues.

2 participants