cancel
Showing results for 
Search instead for 
Did you mean: 
TPeters
Flight Engineer
Flight Engineer
  • 10.9K Views

curl finds no route to host?

Jump to solution

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?

 

Labels (1)
27 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 1,906 Views

@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. 

0 Kudos
Chetan_Tiwary_
Community Manager
Community Manager
  • 1,046 Views

@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. 

0 Kudos
georgef
Mission Specialist
Mission Specialist
  • 1,044 Views

Playbook is executed fine, I get the correct .content from debug and the correct index.html through Firefox. Grading fails again.

 

Chetan_Tiwary_
Community Manager
Community Manager
  • 1,034 Views

@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 ) :

Chetan_Tiwary__0-1700058473176.png

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. 

0 Kudos
georgef
Mission Specialist
Mission Specialist
  • 1,026 Views

Here's the screenshot.

I can't try it right out because i get max capacity on my region again.

Screenshot_2023-11-15_14-55-45.png

 

Chetan_Tiwary_
Community Manager
Community Manager
  • 1,022 Views

@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 :

Chetan_Tiwary__0-1700060090064.png

Please use this exact one ( all the bold content that I highlighted ) and the grade will pass. 

0 Kudos
georgef
Mission Specialist
Mission Specialist
  • 978 Views

Hi @Chetan_Tiwary_

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.

 

Chetan_Tiwary_
Community Manager
Community Manager
  • 971 Views

@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. 

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