diff --git a/internal/controller/storageclaim_controller.go b/internal/controller/storageclaim_controller.go index 497383d6..2eaf7f93 100644 --- a/internal/controller/storageclaim_controller.go +++ b/internal/controller/storageclaim_controller.go @@ -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. diff --git a/internal/controller/storageclient_controller.go b/internal/controller/storageclient_controller.go index 6e1cc925..3544db9c 100644 --- a/internal/controller/storageclient_controller.go +++ b/internal/controller/storageclient_controller.go @@ -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 diff --git a/service/status-report/main.go b/service/status-report/main.go index 38475f31..34ca9bef 100644 --- a/service/status-report/main.go +++ b/service/status-report/main.go @@ -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()