Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-14173

do316-4.14 / ch09s04 review-cr3-review grading failure

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • ROLE
    • en-US (English)

      Please fill in the following information:


      URL:  https://rol.redhat.com/rol/app/courses/do316-4.14/pages/ch09s04
      Reporter RHNID: ssanyal@redhat.com 
      Section Title:                                                                        

      Lab: Clone a Virtual Machine and Configure Load Balancing
      Issue description

      Issue with lab grade review-cr2 and lab grade review-cr3.

      Same issue was already fixed for review-cr1
      (https://issues.redhat.com/browse/PTL-14047)

      Grading lab.

      PASS Checking lab systems
      PASS Checking cluster readiness
      PASS Checking CatalogSource
      FAIL Check if the 'OpenShift Virtualization' operator is installed

      • An unexpected error ocurred: 'namespace'
      • Check the log file for more details
      • Cannot continue grading lab

      An error has occurred.

      For more details, run: lab logs review-cr3
      [student@workstation ~]$ lab logs review-cr3
      2024-08-29 02:43:36,783:review-cr3:ERROR:runner.py(17) Unexpected error
      Traceback (most recent call last):
      File "/home/student/.venv/labs/lib/python3.9/site-packages/labs/core/task/runner.py", line 15, in run_task
      ret_code = step.task(step)
      File "/home/student/.venv/labs/lib/python3.9/site-packages/do316/common.py", line 446, in grade_virtualization
      namespace = item["namespace"]
      File "/home/student/.venv/labs/lib/python3.9/site-packages/labs/core/step.py", line 110, in _getitem_
      return self._dict_[key]
      KeyError: 'namespace'
      2024-08-29 02:43:36,915:review-cr3:ERROR:userinterface.py(119) The 'Check if the 'OpenShift Virtualization' operator is installed' fatal step has failed
      2024-08-29 02:43:36,915:review-cr3:ERROR:lab.py(54) Lab script has failed due to an error: The 'Check if the 'OpenShift Virtualization' operator is installed' fatal step has failed

      Fix is to add the "namespace": "openshift-cnv" line in the ansible scripts for the "Check if the 'OpenShift Virtualization' operator is installed" task in /home/student/.venv/labs/lib/python3.9/site-packages/do316/review-cr2.py (line 221) and /home/student/.venv/labs/lib/python3.9/site-packages/do316/review-cr3.py (line 228).
       
      Steps to reproduce:

       

      Workaround:

       

      Expected result:

              rht-nlind Natalie Watkins
              ssanyal@redhat.com samik sanyal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: