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

RHT2513946: RH199: Ch15s05: The lab grade command fails when different pri numbers are used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • RH199 - RHEL10.0-en-1-20250820
    • RH199
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • en-US (English)

      Please fill in the following information:


      URL: https://rol.redhat.com/rol/app/courses/rh199-10.0/pages/ch15s05
      Reporter RHNID: wasim-rhls
      Section Title:               Lab: Manage Basic Storage                                                         

      Issue description

      ab grade storage-review
      ```

       in https://role.rhu.redhat.com/rol-rhu/app/courses/rh199-10.0/pages/ch15s05 is incorrect, as it does check for pri=10 and pri=20 on swap partitions, when the exercise text in point 4 is "Initialize the swap1 and swap2 swap spaces, and configure them to activate at boot. Set the priority order so that the swap2 partition is preferred over the swap1 partition."
      So any priority numbers, such as 2 and 3 would also be sufficient. However the lab grade script fails:

      ```
      [root@serverb ~]# swapon --show
      NAME TYPE SIZE USED PRIO
      /dev/sdb2 partition 489M 0B 2
      /dev/sdb3 partition 488M 0B 3
      ```

      ```
      student@workstation:~$ lab grade storage-review 
      🤖 Running: lab grade storage-review
      PASS Check backup in fstab
      FAIL Check swap1 in fstab
       - file incorrect: /etc/fstab
      FAIL Check swap2 in fstab
       - file incorrect: /etc/fstab
      PASS Check mount
      FAIL Check swap priority of swap1
       - '['swapon --show=name,prio']' did not print the expected message
       - '/dev/sdb2 10' not found in command output
      FAIL Check swap priority of swap2
       - '['swapon --show=name,prio']' did not print the expected message
       - '/dev/sdb3 20' not found in command output
      PASS Verify sdb1 size on serverb
      PASS Verify sdb2 size on serverb
      PASS Verify sdb3 size on serverb
      ```

      If you are grading for hardcoded values, then please specify it in the exercise. 

      Steps to reproduce:

       

      Workaround:

       

      Expected result:

              glsbugs-hybridcloud@redhat.com PTL - RHEL Team
              wraja@redhat.com Wasim Raja
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: