{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/awx/issues/2507","repository_url":"https://api.github.com/repos/ansible/awx","labels_url":"https://api.github.com/repos/ansible/awx/issues/2507/labels{/name}","comments_url":"https://api.github.com/repos/ansible/awx/issues/2507/comments","events_url":"https://api.github.com/repos/ansible/awx/issues/2507/events","html_url":"https://github.com/ansible/awx/issues/2507","id":372630597,"node_id":"MDU6SXNzdWUzNzI2MzA1OTc=","number":2507,"title":"Provisioning callback No matching host could be found","user":{"login":"jwinderWCB","id":40030921,"node_id":"MDQ6VXNlcjQwMDMwOTIx","avatar_url":"https://avatars2.githubusercontent.com/u/40030921?v=4","gravatar_id":"","url":"https://api.github.com/users/jwinderWCB","html_url":"https://github.com/jwinderWCB","followers_url":"https://api.github.com/users/jwinderWCB/followers","following_url":"https://api.github.com/users/jwinderWCB/following{/other_user}","gists_url":"https://api.github.com/users/jwinderWCB/gists{/gist_id}","starred_url":"https://api.github.com/users/jwinderWCB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwinderWCB/subscriptions","organizations_url":"https://api.github.com/users/jwinderWCB/orgs","repos_url":"https://api.github.com/users/jwinderWCB/repos","events_url":"https://api.github.com/users/jwinderWCB/events{/privacy}","received_events_url":"https://api.github.com/users/jwinderWCB/received_events","type":"User","site_admin":false},"labels":[{"id":687169246,"node_id":"MDU6TGFiZWw2ODcxNjkyNDY=","url":"https://api.github.com/repos/ansible/awx/labels/component:api","name":"component:api","color":"fbca04","default":false},{"id":687178854,"node_id":"MDU6TGFiZWw2ODcxNzg4NTQ=","url":"https://api.github.com/repos/ansible/awx/labels/state:needs_info","name":"state:needs_info","color":"eb6420","default":false},{"id":607283748,"node_id":"MDU6TGFiZWw2MDcyODM3NDg=","url":"https://api.github.com/repos/ansible/awx/labels/type:bug","name":"type:bug","color":"F79F81","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-22T18:03:00Z","updated_at":"2018-10-26T01:38:17Z","closed_at":null,"author_association":"NONE","body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n - API\r\n\r\n##### SUMMARY\r\nI am attempting to setup a provisioning callback. The message being returned is \"No matching host could be found!\"\r\n\r\nI have verified the host was added to the dynamic inventory and has a fact foreman.ip: [correct ip address]\r\n\r\nThe hostname can not be resolved using a reverse DNS lookup. What other methods does AWX use to lookup a host by the requesting IP?\r\n\r\n##### ENVIRONMENT\r\n* AWX version: 2.0.1\r\n* AWX install method: docker on linux\r\n* Ansible version:  2.7.0\r\n* Operating System: RHEL 7.5\r\n* Web Browser: Chrome\r\n\r\n##### STEPS TO REPRODUCE\r\n1) I setup an inventory and verified it would update.\r\n    I also set Overwrite, and Update on Launch.\r\n2) Verified remote host is available in the inventory. Also, found host's IP address in the following facts:\r\n  - foreman.ip\r\n  - foreman_facts.discovery_bootip\r\n  - foreman_facts.ipaddress_ens32\r\n  - foreman_facts.discovery_ip_cidr\r\n  - foreman_facts.nmprimary_ip4_address\r\n  - foreman_facts.ipaddress\r\n3) Created project and verified it would update from git.\r\n   I also set Clean, and Update Revision on Launch\r\n4) Created template and verified I could execute it on remote host via the AWX UI.\r\n   I also set Allow Provisioning Callbacks\r\n\r\n5) On remote host execute 'curl -k -s -vv --data \"host_config_key=4d27ec88782b2010cee8ae19f5977199\" https://[server running AWX]/api/v2/job_templates/15/callback/\r\n\r\n\r\n##### EXPECTED RESULTS\r\nI expected the job template to be kicked off and run my provisioning playbook against the calling host.\r\n\r\n##### ACTUAL RESULTS\r\nAfter updating the dynamic inventory I receive the error \"No matching host could be found!\"\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/awx/issues/comments/433258195","html_url":"https://github.com/ansible/awx/issues/2507#issuecomment-433258195","issue_url":"https://api.github.com/repos/ansible/awx/issues/2507","id":433258195,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzI1ODE5NQ==","user":{"login":"matburt","id":89544,"node_id":"MDQ6VXNlcjg5NTQ0","avatar_url":"https://avatars0.githubusercontent.com/u/89544?v=4","gravatar_id":"","url":"https://api.github.com/users/matburt","html_url":"https://github.com/matburt","followers_url":"https://api.github.com/users/matburt/followers","following_url":"https://api.github.com/users/matburt/following{/other_user}","gists_url":"https://api.github.com/users/matburt/gists{/gist_id}","starred_url":"https://api.github.com/users/matburt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matburt/subscriptions","organizations_url":"https://api.github.com/users/matburt/orgs","repos_url":"https://api.github.com/users/matburt/repos","events_url":"https://api.github.com/users/matburt/events{/privacy}","received_events_url":"https://api.github.com/users/matburt/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T01:38:17Z","updated_at":"2018-10-26T01:38:17Z","author_association":"MEMBER","body":"It'd be helpful to check the web server / docker console logs to see where AWX thinks the request is coming from... is it the actual host or does the source address differ?"}}
{"actor":{"display_login":"matburt"}}