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

RH124v10:Ch19s05: lab finish ssh-review fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • RH124 - RHEL10.0-en-3-20250821
    • RH124
    • None
    • False
    • Hide

      None

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

      Please fill in the following information:


      URL: https://rol.redhat.com/rol/app/courses/rh124-10.0/pages/ch19s05 
      Reporter RHNID: chetan-rhls
      Section Title:  Lab: Configure and Secure SSH                                                                        

      Issue description: 

       rh0027l-10.0 + encountered this error when trying to run finish lab script:

      student@workstation:~$ lab finish ssh-review
      🤖 Running: lab finish ssh-review
      FAIL Restoring password authentication on serverb
       - An unexpected error ocurred: encountered RSA key, expected OPENSSH key. 
       - Check /tmp/log/labs/ssh-review or use the 'lab logs' command for details.
      Traceback (most recent call last):
       File "/home/student/.cache/uv/archive-v0/XPQ8KJD5mIUJGM54KkpRQ/bin/lab", line 12, in 
       sys.exit(main())
       ~~~~^^
       File "/home/student/.cache/uv/archive-v0/XPQ8KJD5mIUJGM54KkpRQ/lib/python3.13/site-packages/click/core.py", line 1128, in _call_
       return self.main(*args, **kwargs)
       ~~~~~~~~~^^^^^^^^^^^^^^^^^
       File "/home/student/.cache/uv/archive-v0/XPQ8KJD5mIUJGM54KkpRQ/lib/python3.13/site-packages/click/core.py", line 1053, in main
       rv = self.invoke(ctx)
       File "/home/student/.cache/uv/archive-v0/XPQ8KJD5mIUJGM54KkpRQ/lib/python3.13/site-packages/click/core.py", line 1659, in invoke
       return _process_result(sub_ctx.command.invoke(sub_ctx))
       ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
       File "/home/student/.cache/uv/archive-v0/XPQ8KJD5mIUJGM54KkpRQ/lib/python3.13/site-packages/click/core.py", line 1395, in invoke
       return ctx.invoke(self.callback, **ctx.params)
       ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/home/student/.cache/uv/archive-v0/XPQ8KJD5mIUJGM54KkpRQ/lib/python3.13/site-packages/click/core.py", line 754, in invoke
       return __callback(*args, **kwargs)
       File "/home/student/.cache/uv/archive-v0/XPQ8KJD5mIUJGM54KkpRQ/lib/python3.13/site-packages/labs/lab.py", line 378, in finish
       grading.prefinish()
       ~~~~~~~~~~~~~~~~~^^
       File "/home/student/.cache/uv/archive-v0/XPQ8KJD5mIUJGM54KkpRQ/lib/python3.13/site-packages/labs/grading.py", line 44, in prefinish
       self.finish()
       ~~~~~~~~~~~^^
       File "/home/student/.cache/uv/archive-v0/XPQ8KJD5mIUJGM54KkpRQ/lib/python3.13/site-packages/rh0027l/ssh-review.py", line 140, in finish
       run_command(
       ~~~~~~~~~~~^
       message="Restoring password authentication on " + _serverb + "",
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       ...<6 lines>...
       on...'; fi",
       ^^^^^^^^^^^^
       ),
       ^
       File "/home/student/.cache/uv/archive-v0/XPQ8KJD5mIUJGM54KkpRQ/lib/python3.13/site-packages/labs/common/commands/_init_.py", line 52, in ssh_run_command_step
       return process, step
       ^^^^^^^
      UnboundLocalError: cannot access local variable 'process' where it is not associated with a value 

       

      Steps to reproduce:

       

      Workaround:

       

      Expected result:

              glsbugs-hybridcloud@redhat.com PTL - RHEL Team
              chetan-rhls Chetan Tiwary
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: