Skip to content

Commit

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

DFBUGS-532:[release-4.16] controller: update storageclient connection fail log
  • Loading branch information
openshift-merge-bot[bot] authored Nov 19, 2024
2 parents 4beea0d + 5bdb2a9 commit 45b3302
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/storageclaim_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,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 controllers/storageclient_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,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 @@ -95,7 +95,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 45b3302

Please sign in to comment.