AWX Tower callback - No matching host could be found but tower console is working

75 views
Skip to first unread message

devula...@gmail.com

unread,
Aug 30, 2018, 2:46:53 PM8/30/18
to Ansible Project

I have setup inventory and job template and  the call back is returning  "No matching host could be found"  but actually the tower console I could see host listed in the inventory and even attempted synch and even I could able to run the job template successfully

could someone please help me why callback is not working but tower console is working fine.

Thank you!

Jonathan Lozada De La Matta

unread,
Aug 30, 2018, 2:48:32 PM8/30/18
to ansible...@googlegroups.com
Can you provide more details on what exactly you are trying to accomplish?

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/91998ed9-0225-4ab9-881f-2311595d9885%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Jonathan lozada de la matta

AUTOMATION PRACTICE



 

devula...@gmail.com

unread,
Aug 30, 2018, 3:10:10 PM8/30/18
to Ansible Project
I need to call tower callback API when EC2 instance is getting launched/provisioned to avoid manual launch job through tower console , I use below command in unix script added in the user_data section of aws launch configuration 
 curl --data "host_config_key=XXXX" https://XXX443/api/v2/job_templates/XXX/callback/


even when I run above curl command from that hosted EC2 instance still its giving same error  but everything is good when launching the job through tower console. Please help

cava cavamagie

unread,
Dec 11, 2018, 6:36:01 AM12/11/18
to Ansible Project
same problem

Op donderdag 30 augustus 2018 20:46:53 UTC+2 schreef devula...@gmail.com:

Jonathan Lozada De La Matta

unread,
Dec 11, 2018, 7:32:41 AM12/11/18
to ansible...@googlegroups.com
are you using tower or AWX?

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

cavamagie

unread,
Dec 11, 2018, 8:22:01 AM12/11/18
to ansible...@googlegroups.com
awx over openshift

2018-12-11 12:31:56,350 DEBUG awx.main.models.inventory Going to
update inventory computed fields
2018-12-11 12:31:56,372 DEBUG awx.main.models.inventory Finished
updating inventory computed fields
2018-12-11 12:31:56,446 DEBUG awx.main.dispatch publish
awx.main.scheduler.tasks.run_task_manager(68c377b9-f391-4e3e-b66e-aa3f5256a75f,
queue=awx_private_queue)
RESULT 2
OKREADY
No previous hash found192.168.13.1 - - [11/Dec/2018:12:32:13 +0000]
"POST /api/v2/job_templates/21/callback/ HTTP/1.1" 400 42 "-"
"curl/7.52.1" "192.168.10.25"
2018-12-11 12:32:13,626 WARNING awx.api.generics status 400 received
by user AnonymousUser attempting to access
/api/v2/job_templates/21/callback/ from 192.168.13.1
Il giorno mar 11 dic 2018 alle ore 13:32 Jonathan Lozada De La Matta
<jloz...@redhat.com> ha scritto:
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BJEctDKU1wrHf4d0R2DQFh-9aZ%3DUuurO0HvaA5hHYpyHw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages