-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
RH199 - RHEL10.0-en-1-20250820
-
None
-
False
-
-
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: