Uploaded image for project: 'Data Foundation Bugs'
  1. Data Foundation Bugs
  2. DFBUGS-532

[2297066] [Provider mode] Improve logs on client in case StorageClient fails to connect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • odf-4.16.4
    • odf-4.16
    • ocs-client-operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • 4.16.4
    • Committed
    • Committed
    • If docs needed, set a value
    • None

      Description of problem:
      Having the bug https://bugzilla.redhat.com/show_bug.cgi?id=2281536 it was discussed we can improve user awareness of connection failure and may recommend to check Provider endpoint.
      Discussion: https://ibm-systems-storage.slack.com/archives/C05RJB6H0LQ/p1720592374142339

      Error log message in case when Storage Client connect failed:
      ocs-client-operator-controller-manager

      2024-07-10T07:37:31Z INFO Reconciling StorageClient {"controller": "storageclient", "controllerGroup": "ocs.openshift.io", "controllerKind": "StorageClient", "StorageClient":

      {"name":"storage-client"}

      , "namespace": "", "name": "storage-client", "reconcileID": "22f6a770-892d-4776-b04b-48af84b8ad4f", "StorageClient": {"name":"storage-client"}}
      2024-07-10T07:37:41Z ERROR Reconciler error {"controller": "storageclient", "controllerGroup": "ocs.openshift.io", "controllerKind": "StorageClient", "StorageClient":

      {"name":"storage-client"}

      , "namespace": "", "name": "storage-client", "reconcileID": "22f6a770-892d-4776-b04b-48af84b8ad4f", "error": "failed to create a new provider client: failed to dial: context deadline exceeded"}
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
      /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.2/pkg/internal/controller/controller.go:329
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
      /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.2/pkg/internal/controller/controller.go:266
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
      /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.2/pkg/internal/controller/controller.go:227

      Version-Release number of selected component (if applicable):

      How reproducible:
      Try to connect a StorageClient. Issue is not consistent.

      Steps to Reproduce:
      1. Deploy Provider mode cluster, when Hosted Hypershift Cluster is ready install ODF Client operator and try to connect new StorageClient
      2.
      3.

      Actual results:
      StorageClient fail to connect. Logs are not clear. Empty PHASE status of StorageClient.
      NAME PHASE CONSUMER
      storage-client

      Expected results:
      Storage client connects or explicit error message is present in the logs of ocs-client-operator-controller-manager. User is notified to check endpoint. StorageClient PHASE status should not be empty

      Additional info:

              rh-ee-rohgupta Rohan Gupta
              rh-ee-dosypenk Daniel Osypenko
              Daniel Osypenko Daniel Osypenko
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: