cancel
Showing results for 
Search instead for 
Did you mean: 
gmichae
Mission Specialist
Mission Specialist
  • 806 Views

Comprehensive Review 3 specifications vs grading expectations

Jump to solution

In the specifications for the storage.yml playbook, the sizes for the logical volumes are given using MB. The grading script is using a rounded off value for Gigabytes (or Gibibytes).

 

For the script to grade successfully, the volumes should be created using "MiB" (mibibytes) so that the calculation for the sizes of the LVs returns the expected values. The documentation does not default to using any specific unit.

gmichae_0-1723933288922.png

 

1 Solution

Accepted Solutions
Chetan_Tiwary_
Community Manager
Community Manager
  • 573 Views

@gmichae I just followed the course and used MB and it worked fine :

Chetan_Tiwary__0-1726174756508.png

Chetan_Tiwary__1-1726175027197.png

 

View solution in original post

0 Kudos
6 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 636 Views

@gmichae Apologies for late reply!

The Exercise wants you to configure 128MB & 256 MB logical volume

Chetan_Tiwary__0-1726077438792.png

and the grading script is looking for 0.25 GB & 0.12 GB respectively - which is correct since 256 MB is 0.256 GB and similarly 128 MB is 0.128 GB.

Please let me know if I understood your question correctly.

0 Kudos
gmichae
Mission Specialist
Mission Specialist
  • 627 Views

Yes @Chetan_Tiwary_, you are correct that 256MB (Megabytes, not Mebibytes) is the same as .256GB (Gigabytes not Gibibytes). Likewise, 128MB is the same as .128GB. Gibibytes are 1000x bigger than Mebibytes, so the decimal place moves 3 places to the left when converting Mebibytes to Gibibytes, or 3 places to the right when converting from Gibibytes to Mebibytes.

 

With that said, the grading script is rounding the size of the volumes before comparing against the defined size for success/fail. I no longer have access to the environment to look at the grading script for the exact format. When I created the volumes using MB, they were indeed created as 128MB and 256GB appropriately. The grading script, however did not validate them as being sized correctly. It wasn't until I modified the volumes to 128MiB and 256GiB that the grading script marked them as Successful when checked.

 

Please test the lab using 128MB and 256MB (Megabytes) and then run the grading script against the lab. If my assertion is correct, they will be marked as Failed because the value of MB vs MiB is different enough when rounded for the grading script to incorrectly compare them against what is expected. If the script does indeed fail the lab when creating the volumes using Megabytes, run an lvextend -L 128MiB (or 256GiB) against the respective volumes and then grade it again. Again, if my assertion is correct, the grading script will mark them as Successful.

Chetan_Tiwary_
Community Manager
Community Manager
  • 621 Views

@gmichae Alright ! Thanks for providing me the detailed info, I will check your assertion in the lab and let you know.

0 Kudos
Chetan_Tiwary_
Community Manager
Community Manager
  • 574 Views

@gmichae I just followed the course and used MB and it worked fine :

Chetan_Tiwary__0-1726174756508.png

Chetan_Tiwary__1-1726175027197.png

 

0 Kudos
Chetan_Tiwary_
Community Manager
Community Manager
  • 627 Views

@gmichae Also the ansible_facts['lvm']['lvs'][lv]['size_g']  will be size in GB.

gmichae
Mission Specialist
Mission Specialist
  • 537 Views

OK. Maybe my lab at the time needed to be rebuilt. It was probably just coincidence that when I redid the sizing using MiB that it worked. Thanks!

Join the discussion
You must log in to join this conversation.