I'am getting the following when trying to grade the lab projects-review in Chapter 6.
Ansible-navigator stdout:
lab grade projects-review
The status code is 200 for all hosts:
Has anyone had the same problem and managed to solve it?
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.
The filed bug is: https://issues.redhat.com/browse/PTL-13785
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.
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.
The filed bug is: https://issues.redhat.com/browse/PTL-13785
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.