Uploaded image for project: 'OPCT - OpenShift Provider Compatibility Tool'
  1. OPCT - OpenShift Provider Compatibility Tool
  2. OPCT-316

[cli] opct report should not fail when baseline API does not have results

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • CLI
    • 2
    • OpenShift SPLAT - Sprint 266

      Problem:

      • opct report is exiting with errors when baseline API filter does not have results (return HTTP 403)

      The baseline API filter exports a summary of baseline validations (executed in Prow) to make inference of know issues in the controlled environment, eliminating from the local archive, the flow should not be blocking when running 'opct report'. We can raise a error in the debug mode, or even error logging, but not stopping the flow.

       

      Environment:

      • HCP Hosted cluster on AWS (hypershift controller  [MGR] installed in self-managed OCP on AWS)

       

       

      $ opct report --save-to results opct_202502041948_e68ef821-0d6a-4131-a135-e3dbb0dd7109.tar.gz --log-level=debug
      INFO[2025-02-04T21:44:08-03:00] Creating report...                           
       ...
      DEBU[2025-02-04T21:44:22-03:00] Summary Report API (/result/summary/4.19_AWS_latest.json) response code: 403 Forbidden 
      
      ERRO[2025-02-04T21:44:22-03:00] could not process archive: opct_202502041948_e68ef821-0d6a-4131-a135-e3dbb0dd7109.tar.gz: error processing results: loading baseline results from API: failed to get baseline from API: error loading BaselineAPI: error BaselineAPI request: 403 Forbidden

       

       

       

              rhn-support-mrbraga Marco Braga
              rhn-support-mrbraga Marco Braga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: