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

[bug][plugins] CERT_LEVEL: unbound variable (patch v0.2)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Plugins
    • False
    • Hide

      None

      Show
      None
    • False
    • OCPSTRAT-343 - Onboarding New Providers/Platforms (Phase 2)

      Description of problem:

      Plugin reporting unbound variable when dumping config [show_config()].
      
      ./global_fn.sh: line 95: CERT_LEVEL: unbound variable
      
      There's no impact on the plugin execution, but that function is used when troubleshooting issues on plugin logs.
      
      NOTE: it's desired to backport this patch to v0.2

      Version-Release number of selected component (if applicable):

      v0.2+

      How reproducible:

      Always

      Steps to Reproduce:

      1. Run the cert tool and collect the results
      2. unpack the results archive
      3. check the plugin.txt from any plugin instance: less results/podlogs/openshift-provider-certification/sonobuoy-10-openshift-kube-conformance-job-fabced07cc18451b/logs/plugin.txt  

      Actual results:

      #./runner.sh:17>  20230107-003959> [runner] Plugin Config: PLUGIN_NAME=[10-openshift-kube-conformance] PLUGIN_BLOCKED_BY=[05-openshift-cluster-upgrade] CERT_TEST_FILE=[]
      #./runner.sh:17>  20230107-003959> [runner] Setup config done.
      ./global_fn.sh: line 95: CERT_LEVEL: unbound variable
      #./global_fn.sh:12>  [signal handler] ERROR on line 98 ./runner.sh
      #./runner.sh:17>  20230107-004000> [runner] check and wait for dependencies...
      

      Expected results:

      Dump of the configuration: https://github.com/redhat-openshift-ecosystem/provider-certification-plugins/blob/main/openshift-tests-provider-cert/plugin/global_fn.sh#L90-L104

      Additional info:

       

              rhn-support-rvanderp Richard Vanderpool
              rhn-support-mrbraga Marco Braga
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: