Created attachment 1702478 [details] ComplianceSuite shows empty status Description of problem: The ComplianceSuite shows empty status over OLM (UI) after the scan complete. However, the ComplianceScan shows the status `Phase: DONE`. Attaching 'ComplianceSuite UI-2020-07-27 11-18-27.png' screenshot for more detail. Version-Release number of selected component (if applicable): 4.6.0-0.nightly-2020-07-25-091217 How reproducible: Always Steps to Reproduce: 1. clone git repo $ git clone https://github.com/openshift/compliance-operator.git 2. Create openshift-compliance namespace $ oc create namepsace openshift-compliance 3. Deploy operator-source $ oc create -f compliance-operator/deploy/olm-catalog/operator-source.yaml 4. Deploy Compliance-Operator through OLM Actual results: The ComplianceSuite shows empty status over OLM (UI) after the scan complete. Expected results: The ComplianceSuite should show some status like the ComplianceScan shows the status `Phase: DONE` once the scan complete. Additional info: On CLI, these resources show the proper status however, on UI the status of the ComplianceSuite show empty. Attaching 'ComplianceSuite UI-2020-07-27 11-18-27.png' screenshot for more detail. $ oc get compliancescan NAME PHASE RESULT workers-scan DONE NON-COMPLIANT $ oc get compliancesuite NAME PHASE RESULT example-compliancesuite DONE NON-COMPLIANT
I started looking into this, so far I was able to reproduce the behaviour and I asked for pointers on #forum-ui. btw the empty columns are not displayed only for Scans, but also for CheckResults etc. It looks like the console is not really honoring the `additionalPrinterColumns` the CRDs specify. I'll update the bug again once I have some reply about how is the UI rendered.
So, we could fix the complianceSuite status by switching the field name from .status.aggregatedPhase to .status.Phase. But the other CRs would still show nothing. Unsure if it's worth it. Long-term I guess implementing a console plugin is a more systematic way. Matt, Ozz, what do you think?
WIP PR: https://github.com/openshift/compliance-operator/pull/405
https://github.com/openshift/compliance-operator/pull/405 updated to be non-WIP. Note that the patch only fixes Suites, not e.g. Remediations or Checks
Merged as https://github.com/openshift/compliance-operator/commit/59cde7c7aa131c5b3938766f4dbc5c736a1d0e0c
This looks good now, The ComplianceSuite shows proper status over OLM (UI) during & after the scan complete. Attaching some screenshots (Csuite-launching-2020-09-08 11-57-29.png, Csuite-aggregating-2020-09-08 12-01-14.png, csuite-done- 2020-09-08 12-02-21.png) Verified on: 4.6.0-0.nightly-2020-09-07-224533 $ oc get compliancesuite NAME PHASE RESULT example-compliancesuite DONE NON-COMPLIANT $ oc get compliancescan NAME PHASE RESULT platform-scan DONE NON-COMPLIANT workers-scan DONE NON-COMPLIANT
Created attachment 1714056 [details] Csuite-launching
Created attachment 1714059 [details] Csuite-aggregating
Created attachment 1714061 [details] Csuite-done
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:4196