I am doing the self-paced course RH294 . With two exercises (Ch.3 final Lab and Ch.4 lab exercise 2) I ran into this problem:
after installing and starting a web service, from the classroom web termicaI I cannot reach servera.lab.example.com with curl: "No route to host". This despite the fact that I can ping it, open a shell to it, and install the package on it with Ansible.
Anyone else have the same problem?
What might be the cause?
@georgef I was just trying to check if that helps as you can see from my previous comments that I did not face the same when I try this lab grading. So I wanted to confirm before concluding that there is a bug here.
@georgef Could you please run the lab finish command and redo this exercise one more time to see if it is still giving error in the grading script.
Meanwhile I will check it from my side soon.
Playbook is executed fine, I get the correct .content from debug and the correct index.html through Firefox. Grading fails again.
@georgef I just created a fresh lab and did the lab exercise as instructed in the course. I did get the grading all Pass ( didnt have to do anything other than the course steps ) :
Do one thing : delete the existing lab and recreate a fresh lab - then retry this lab from beginning. Then check the lab grading - how it works out for you. There may be a syntax issue or a mis configuration in the playbook ( not sure , need to check the playbook ).
If you still face the issue from your end - submit a support case and our backend support will check your lab and assist you.
Here's the screenshot.
I can't try it right out because i get max capacity on my region again.
@georgef I get that. Grading script is hard coded to match the exact content :
here is the content : auth_test.content": "({{ ansible_facts['default_ipv4']['address'] }}) has been customized by Ansible.\n "
I mean this one :
Please use this exact one ( all the bold content that I highlighted ) and the grade will pass.
thanks, it works fine now.
Could I suggest changing the grading script to look for the output of just ansible_facts['fqdn']
and ['address'] instead of the whole sentence? After all these two variables are the point of the exercise, not whether the string terminates with \n or if Ansible is written with a capital a, and has a period at the end.
@georgef Thanks for confirming - yes this has been reported and will be fixed in the future release of this course.
Let me know if you need any more help.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.