Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-7618

Operator fails to create Cache CR with backup if timeout is missing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • RHDG Operator CSV 8.5.7 GA
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Low

      If creating a Cache CR against an Infinispan cluster with cross-site properly configured, if the backup section of the Cache CR lacks a timeout value, the Operator will give a false positive but not create the resource in the cluster.
      Example Cache CR:

      apiVersion: infinispan.org/v2alpha1
      kind: Cache
      metadata:
        name: resp-cache-multi-cloud
        finalizers:
          - finalizer.infinispan.org
      spec:
        clusterName: infinispan
        name: respCacheMultiCloud
        template: |
          replicatedCache: 
            aliases:
              - "0"
            backups:
              offsite:
                backup:
                  strategy: "SYNC"
      

      (same problem with "ASYNC")

      When trying to create that Cache CR, the Operator will update the Cache CR status to ready "True" and the Operator log will show:

      2025-04-22T14:32:57.857Z	INFO	controllers.Cache	+++++ Reconciling Cache.	{"Request.Namespace": "multi-cloud-demo-app", "Request.Name": "resp-cache-multi-cloud"}
      2025-04-22T14:32:57.864Z	INFO	controllers.Cache	----- End Reconciling Cache.	{"Request.Namespace": "multi-cloud-demo-app", "Request.Name": "resp-cache-multi-cloud"}
      2025-04-22T14:32:57.864Z	INFO	controllers.Cache	+++++ Reconciling Cache.	{"Request.Namespace": "multi-cloud-demo-app", "Request.Name": "resp-cache-multi-cloud"}
      2025-04-22T14:32:57.864Z	INFO	controllers.Cache	----- End Reconciling Cache.	{"Request.Namespace": "multi-cloud-demo-app", "Request.Name": "resp-cache-multi-cloud"}
      

      But nothing is logged in the Infinispan Pods of the cluster and nothing is created.

      Expected result:
      Either create the Cache CR with a default timeout value or fail to reconcile with a returned error in the Cache CR status.
      Either outcome should be documented.

              pminz@redhat.com Priyanka Minz
              rh-ee-bmerot Benjamin Merot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: