Non-existent ScanSetting priority classes silently break the ability to rerun scans in Compliance Operator

Solution Verified - Updated -

Issue

  • Compliance Operator jobs fail with the below mentioned error:


    $ oc get cronjobs -n opneshift-compliance NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE cis-rerunner-xxxxxxxx- 0 1 * * * False 0 <none> 151m $ oc describe job cis-rerunner-xxxxxxxx -n openshift-compliance Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning FailedCreate 6s (x6 over 37s) job-controller Error creating: pods "cis-rerunner-xxxxxxxx-" is forbidden: no PriorityClass with name compliance-high-priority was found

Environment

  • Red Hat OpenShift Container Platform (RHOCP4)
    • 4.z
  • Compliance Operator
    • 1.4.0
    • 1.5.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content