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

Misleading backup conditions in CGU when all clusters are already compliant

XMLWordPrintable

    • No
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-12152. The following is the description of the original issue:

      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
            openshift-crt-jira-prow OpenShift Prow Bot
            Joshua Clark Joshua Clark
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: