-
Bug
-
Resolution: Done
-
Critical
-
ACM 2.11.0
-
1
-
False
-
None
-
False
-
-
-
Moderate
-
No
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:
- 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" } ] } }