Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-12152

Misleading backup conditions in CGU when all clusters are already compliant

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • None
    • 4.12.z
    • TALM Operator
    • No
    • CNF RAN Sprint 235, CNF RAN Sprint 236
    • 2
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      See summary
      

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

      
      

      How reproducible:

      100%
      

      Steps to Reproduce:

      1. Create a CGU with all clusters already compliant to the managed policy and backup enabled
      
      

      Actual results:

              "conditions": [
                  {
                      "lastTransitionTime": "2023-04-19T14:41:06Z",
                      "message": "All selected clusters are valid",
                      "reason": "ClusterSelectionCompleted",
                      "status": "True",
                      "type": "ClustersSelected"
                  },
                  {
                      "lastTransitionTime": "2023-04-19T14:41:06Z",
                      "message": "Completed validation",
                      "reason": "ValidationCompleted",
                      "status": "True",
                      "type": "Validated"
                  },
                  {
                      "lastTransitionTime": "2023-04-19T14:41:06Z",
                      "message": "All clusters are compliant with all the managed policies",
                      "reason": "Completed",
                      "status": "False",
                      "type": "Progressing"
                  },
                  {
                      "lastTransitionTime": "2023-04-19T14:41:14Z",
                      "message": "Backup is completed for all clusters",
                      "reason": "BackupCompleted",
                      "status": "True",
                      "type": "BackupSuceeded"
                  },
                  {
                      "lastTransitionTime": "2023-04-19T14:41:14Z",
                      "message": "All clusters already compliant with the specified managed policies",
                      "reason": "Completed",
                      "status": "True",
                      "type": "Succeeded"
                  }
      

      Expected results:

      BackupSucceeded condition not added or with a different reason/message, e.g. "No cluster requires remediation"
      

      Additional info:

      
      

              jche@redhat.com Jun Chen
              jche@redhat.com Jun Chen
              Joshua Clark Joshua Clark
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: