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

[stabilization]stabilize test_deprecated_apis_in_audit_logs

XMLWordPrintable

    • CNV I/U Operators Sprint 274
    • None

      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) 

       when attempting to parse audit log entries. It's observed that the cluster may answer with an error to below request:

      $ oc adm node-logs <node_name> --path=kube-apiserver/<log_file> | grep '"k8s.io/deprecated":"true"' 
      error: the server could not find the requested resource

      And therefore, the json.loads() is failing.
       
      The test should handle this kind of temporary infrastructure issues gracefully and only fail for persistent problems or actual deprecated API usage.

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

                Created:
                Updated: