Skip to content

Commit

Permalink
Merge pull request #240 from openshift-cherrypick-robot/cherry-pick-2…
Browse files Browse the repository at this point in the history
…27-to-release-4.17

DFBUGS-81:[release-4.17] controller: update storageclient connection fail log
  • Loading branch information
openshift-merge-bot[bot] authored Nov 19, 2024
2 parents aaf873e + 11915d1 commit 435e72a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/controller/storageclaim_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (r *StorageClaimReconciler) reconcilePhases() (reconcile.Result, error) {
10*time.Second,
)
if err != nil {
return reconcile.Result{}, fmt.Errorf("failed to create provider client: %v", err)
return reconcile.Result{}, fmt.Errorf("failed to create provider client with endpoint %v: %v", r.storageClient.Spec.StorageProviderEndpoint, err)
}

// Close client-side connections.
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/storageclient_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ func (r *StorageClientReconciler) newExternalClusterClient() (*providerClient.OC
ocsProviderClient, err := providerClient.NewProviderClient(
r.ctx, r.storageClient.Spec.StorageProviderEndpoint, time.Second*10)
if err != nil {
return nil, fmt.Errorf("failed to create a new provider client: %v", err)
return nil, fmt.Errorf("failed to create a new provider client with endpoint %v: %v", r.storageClient.Spec.StorageProviderEndpoint, err)
}

return ocsProviderClient, nil
Expand Down
2 changes: 1 addition & 1 deletion service/status-report/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func main() {
10*time.Second,
)
if err != nil {
klog.Exitf("Failed to create grpc client: %v", err)
klog.Exitf("Failed to create grpc client with endpoint %v: %v", storageClient.Spec.StorageProviderEndpoint, err)
}
defer providerClient.Close()

Expand Down

0 comments on commit 435e72a

Please sign in to comment.