Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-70167

[stabilization]stabilize test_deprecated_apis_in_audit_logs 2

XMLWordPrintable

    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • CNV I/U Operators Sprint 278
    • None

      As a continuation of CNV-66017, The test  tests.deprecated_api.test_deprecation_audit_logs.test_deprecated_apis_in_audit_logs fails during fixture setup with:

      JSONDecodeError: Expecting value: line 1 column 1 (char 0) 

      but in this case the reason is different, the openshift API returned an error:

      2025-09-27T16:02:54.467728 conftest INFO Executing function fixture: deprecated_apis_calls 2025-09-27T16:08:23.712719 utilities.infra ERROR Unable to parse line: 'E0927 16:08:08.366839 12031 memcache.go:265] "Unhandled Error" err="couldn\'t get current server API group list: Get \\"https://api.bm07b-tlv2.abi.cnv-qe.rhood.us:6443/api?timeout=32s\\": dial tcp 10.46.255.246:6443: i/o timeout"' 

      And therefore, the json.loads() is failing.
       
      As discussed with gkapoor@redhat.com , the solution will be to implement a logic on the function get_node_audit_log_line_dict that will ignore this error instead of directly failing.

              rlobillo Ramón Lobillo
              rlobillo Ramón Lobillo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: