cancel
Showing results for 
Search instead for 
Did you mean: 
  • 732 Views

Error in Chapter 6: lab grade projects-review

Jump to solution

I'am getting the following when trying to grade the lab projects-review in Chapter 6. 

Ansible-navigator stdout:

Porcupinetree_2-1720439337009.pngPorcupinetree_3-1720439368812.png

lab grade projects-review

Porcupinetree_0-1720438890092.png

 

The status code is 200 for all hosts: 

Porcupinetree_1-1720439148326.png

 

Has anyone had the same problem and managed to solve it?

 

 

2 Solutions

Accepted Solutions
Travis
Moderator
Moderator
  • 700 Views

I've confirmed it is definitely an issue with the grading script. The status code should be a 200 and not a 403 which is what the grading script is checking for and which is why things are being marked wrong. I would guess it was a slight oversight.

I changed the grading script on my end and I got a pass ...

[student@workstation projects-review]$ lab grade projects-review

Grading lab.

· Checking lab systems .............................................................................................................................................. SUCCESS
· Ensuring httpd service is started ................................................................................................................................. PASS
· Ensuring firewalld service is started ............................................................................................................................. PASS
· Checking for Apache tune.conf ..................................................................................................................................... PASS
· Ensuring the web server is reachable on servera ................................................................................................................... PASS
· Ensuring the web server is reachable on serverb ................................................................................................................... PASS
· Ensuring the web server is reachable on serverc ................................................................................................................... PASS
· Ensuring the web server is reachable on serverd ................................................................................................................... PASS

Overall lab grade: PASS

A ticket has been created to resolve the issue, but for now, know your lab was completed correctly.

 

 

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training

View solution in original post

Travis
Moderator
Moderator
  • 698 Views

The filed bug is: https://issues.redhat.com/browse/PTL-13785

 

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training

View solution in original post

3 Replies
Travis
Moderator
Moderator
  • 719 Views

This will need checked, but most likely you have done things correctly and it is an issue with the grading script. Without looking at your exact playbook and seeing all the output, it would appear that the playbook executed properly. Furthermore, it would also appear from your testing that the Apache servers are reachable and returning some type of content by having a Status Code: 200.

A status code of 403 would mean the system is unreachable, but you aren't getting that. It is possible that the check on the evaluation should recognize that the code is 200 and should be producing a "Pass" instead of a "Fail", but this will need to be looked at in more detail.

I would also suggest doing a real curl or checking the site with Firefox from workstation as the other error that could be somewhat misleading is it might be failing the content check as each index.html should be returning "This is servera.lab.example.com" for ServerA and the FQDN of each other server based on the one you checked, so it could be that it is getting Status of 200 meaning things are up and good, but unexpected Index.html.

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training
Travis
Moderator
Moderator
  • 701 Views

I've confirmed it is definitely an issue with the grading script. The status code should be a 200 and not a 403 which is what the grading script is checking for and which is why things are being marked wrong. I would guess it was a slight oversight.

I changed the grading script on my end and I got a pass ...

[student@workstation projects-review]$ lab grade projects-review

Grading lab.

· Checking lab systems .............................................................................................................................................. SUCCESS
· Ensuring httpd service is started ................................................................................................................................. PASS
· Ensuring firewalld service is started ............................................................................................................................. PASS
· Checking for Apache tune.conf ..................................................................................................................................... PASS
· Ensuring the web server is reachable on servera ................................................................................................................... PASS
· Ensuring the web server is reachable on serverb ................................................................................................................... PASS
· Ensuring the web server is reachable on serverc ................................................................................................................... PASS
· Ensuring the web server is reachable on serverd ................................................................................................................... PASS

Overall lab grade: PASS

A ticket has been created to resolve the issue, but for now, know your lab was completed correctly.

 

 

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training
Travis
Moderator
Moderator
  • 699 Views

The filed bug is: https://issues.redhat.com/browse/PTL-13785

 

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training
Join the discussion
You must log in to join this conversation.