{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/openshift-ansible/issues/1350","repository_url":"https://api.github.com/repos/openshift/openshift-ansible","labels_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/1350/labels{/name}","comments_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/1350/comments","events_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/1350/events","html_url":"https://github.com/openshift/openshift-ansible/issues/1350","id":132441070,"number":1350,"title":"« Warn user about bad openshift_hostname values » failed on Vagrant","user":{"login":"harobed","id":230143,"avatar_url":"https://avatars.githubusercontent.com/u/230143?v=3","gravatar_id":"","url":"https://api.github.com/users/harobed","html_url":"https://github.com/harobed","followers_url":"https://api.github.com/users/harobed/followers","following_url":"https://api.github.com/users/harobed/following{/other_user}","gists_url":"https://api.github.com/users/harobed/gists{/gist_id}","starred_url":"https://api.github.com/users/harobed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harobed/subscriptions","organizations_url":"https://api.github.com/users/harobed/orgs","repos_url":"https://api.github.com/users/harobed/repos","events_url":"https://api.github.com/users/harobed/events{/privacy}","received_events_url":"https://api.github.com/users/harobed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-09T14:57:20Z","updated_at":"2016-02-09T15:14:30Z","closed_at":null,"body":"« Warn user about bad openshift_hostname values » failed on Vagrant : \r\n\r\n```\r\nTASK: [shell getent ahostsv4 {{ openshift.common.hostname }} | head -n 1 | awk '{ print $1 }'] ***\r\nok: [master]\r\nok: [node2]\r\nok: [node1]\r\n\r\nTASK: [Warn user about bad openshift_hostname values] *************************\r\nfatal: [master] => Traceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/site-packages/ansible/runner/__init__.py\", line 586, in _executor\r\n    exec_rc = self._executor_internal(host, new_stdin)\r\n  File \"/usr/local/lib/python2.7/site-packages/ansible/runner/__init__.py\", line 789, in _executor_internal\r\n    return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)\r\n  File \"/usr/local/lib/python2.7/site-packages/ansible/runner/__init__.py\", line 1036, in _executor_internal_inner\r\n    result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)\r\n  File \"/usr/local/lib/python2.7/site-packages/ansible/runner/action_plugins/pause.py\", line 103, in run\r\n    tcflush(sys.stdin, TCIFLUSH)\r\nerror: (25, 'Inappropriate ioctl for device')\r\n\r\n\r\nFATAL: all hosts have already failed -- aborting\r\n\r\nPLAY RECAP ********************************************************************\r\n           to retry, use: --limit @/Users/stephane/vagrant.retry\r\n\r\nlocalhost                  : ok=10   changed=0    unreachable=0    failed=0\r\nmaster                     : ok=23   changed=0    unreachable=0    failed=1\r\nnode1                      : ok=23   changed=0    unreachable=0    failed=1\r\nnode2                      : ok=23   changed=0    unreachable=0    failed=1\r\n\r\nAnsible failed to complete successfully. Any error output should be\r\nvisible above. Please fix these errors and try again.\r\n```\r\n\r\nWhy ? \r\n\r\n```\r\n$ vagrant ssh master\r\n$ sudo su\r\nroot@ose3-master vagrant]# getent ahostsv4 ose3-master.example.com | head -n 1 | awk '{ print $1 }'\r\n127.0.0.1\r\n[root@ose3-master vagrant]# getent ahostsv4\r\n127.0.0.1       ose3-master.example.com ose3-master localhost localhost.localdomain localhost4 localhost4.localdomain4\r\n127.0.0.1       localhost localhost.localdomain localhost6 localhost6.localdomain6\r\n192.168.100.200 ose3-node1.example.com\r\n192.168.100.201 ose3-node2.example.com\r\n192.168.100.100 ose3-master.example.com\r\n```\r\n\r\nAnsible check first IP found.\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/openshift-ansible/issues/comments/181909987","html_url":"https://github.com/openshift/openshift-ansible/issues/1350#issuecomment-181909987","issue_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/1350","id":181909987,"user":{"login":"harobed","id":230143,"avatar_url":"https://avatars.githubusercontent.com/u/230143?v=3","gravatar_id":"","url":"https://api.github.com/users/harobed","html_url":"https://github.com/harobed","followers_url":"https://api.github.com/users/harobed/followers","following_url":"https://api.github.com/users/harobed/following{/other_user}","gists_url":"https://api.github.com/users/harobed/gists{/gist_id}","starred_url":"https://api.github.com/users/harobed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harobed/subscriptions","organizations_url":"https://api.github.com/users/harobed/orgs","repos_url":"https://api.github.com/users/harobed/repos","events_url":"https://api.github.com/users/harobed/events{/privacy}","received_events_url":"https://api.github.com/users/harobed/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T15:14:30Z","updated_at":"2016-02-09T15:14:30Z","body":"Fix : \r\n\r\n```\r\ngetent ahostsv4 {{ openshift.common.hostname }} | grep -v \"127.0.0.1\" | head -n 1 | awk '{ print $1 }'\r\n```\r\n\r\nat https://github.com/openshift/openshift-ansible/blob/34b68829e36f7151c6c09411585b25b2340d2823/playbooks/common/openshift-cluster/validate_hostnames.yml#L18"}}