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

lab command line is not idempotent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • RH294 - RHEL9.0-en-4-20241107
    • RH294
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • en-US (English)

      Please fill in the following information:


      URL:  
      Reporter RHNID:  
      Section Title:                                                                        

      Issue description

      In RH294, any lab executed more than once fails with the following message, despite the fact that I am not in the directory mentioned by the script:

      [student@workstation ~]$ lab start data-factsStarting lab. · Checking lab systems .................................................................................................... SUCCESS
       · Ensuring required packages are installed ................................................................................ SUCCESS
       · Adding exercise content ................................................................................................. FAIL
          - Playbook failed: add-exercise-dirs.yml
          - workstation: Fail if user in exercise directory: User in "/home/student/data-facts" (or subdirectory). Change to "/home/student" and then run the "lab" command again.    - Cannot continue starting lab[student@workstation ~]

      Steps to reproduce:

      run amy lab script twice

      Workaround:

      Delete the existing directory (and lose all files created so far)

      Expected result:

              rht-dspohn Dallas Spohn
              rhn-gls-rtaniguchi Ricardo Taniguchi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: