Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-11080

GRC UI: Inconsistent compliance state across different pages for policies with severity set to critical

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • ACM 2.11.0
    • GRC
    • 1
    • False
    • None
    • False
    • No
    • Moderate

      Description of problem:

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

      Initially noticed on 2.11, might be present in older versions as well.

      How reproducible:

      Always

      Steps to Reproduce:

      1. One of the Policy template should have severity set to "critical"

      Actual results:

      Policy shows "No status" on details page

      Expected results:

      Policy should be non-compliant consistent with other pages

      Additional info:

      One of the resources in the template has unknown compliance state

      Policy details (oc get plc test-operator-policy-template-ui -o json)

      {
          "apiVersion": "policy.open-cluster-management.io/v1",
          "kind": "Policy",
          "metadata": {
              "annotations": {
                  "policy.open-cluster-management.io/categories": "",
                  "policy.open-cluster-management.io/controls": "",
                  "policy.open-cluster-management.io/description": "operator policy for QE test",
                  "policy.open-cluster-management.io/standards": ""
              },
              "creationTimestamp": "2024-04-16T18:23:06Z",
              "generation": 1,
              "name": "test-operator-policy-template-ui",
              "namespace": "default",
              "resourceVersion": "643504",
              "uid": "582e47f8-a8a1-4a03-b26c-fdd87de8041f"
          },
          "spec": {
              "disabled": false,
              "policy-templates": [
                  {
                      "objectDefinition": {
                          "apiVersion": "policy.open-cluster-management.io/v1beta1",
                          "kind": "OperatorPolicy",
                          "metadata": {
                              "name": "install-operator"
                          },
                          "spec": {
                              "complianceType": "musthave",
                              "remediationAction": "enforce",
                              "severity": "critical",
                              "subscription": {
                                  "channel": "stable-3.8",
                                  "installPlanApproval": "Automatic",
                                  "name": "quay-operator",
                                  "namespace": "default",
                                  "source": "redhat-operators",
                                  "sourceNamespace": "openshift-marketplace",
                                  "startingCSV": "quay-operator.v3.8.1"
                              },
                              "versions": null
                          }
                      }
                  }
              ],
              "remediationAction": "enforce"
          },
          "status": {
              "compliant": "NonCompliant",
              "placement": [
                  {
                      "placement": "test-operator-policy-template-ui-placement",
                      "placementBinding": "test-operator-policy-template-ui-placement"
                  }
              ],
              "status": [
                  {
                      "clustername": "local-cluster",
                      "clusternamespace": "local-cluster",
                      "compliant": "NonCompliant"
                  }
              ]
          }
      } 

            jkulikau@redhat.com Justin Kulikauskas
            rh-ee-manravi ManiKrishna Sai Ravi
            Derek Ho Derek Ho
            ACM QE Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: