{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2960","repository_url":"https://api.github.com/repos/openshift/openshift-ansible","labels_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2960/labels{/name}","comments_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2960/comments","events_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2960/events","html_url":"https://github.com/openshift/openshift-ansible/issues/2960","id":194610814,"number":2960,"title":"Playbook fails when only using private IP's","user":{"login":"lorenzvth7","id":14105387,"avatar_url":"https://avatars.githubusercontent.com/u/14105387?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzvth7","html_url":"https://github.com/lorenzvth7","followers_url":"https://api.github.com/users/lorenzvth7/followers","following_url":"https://api.github.com/users/lorenzvth7/following{/other_user}","gists_url":"https://api.github.com/users/lorenzvth7/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzvth7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzvth7/subscriptions","organizations_url":"https://api.github.com/users/lorenzvth7/orgs","repos_url":"https://api.github.com/users/lorenzvth7/repos","events_url":"https://api.github.com/users/lorenzvth7/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzvth7/received_events","type":"User","site_admin":false},"labels":[{"id":129999522,"url":"https://api.github.com/repos/openshift/openshift-ansible/labels/kind/bug","name":"kind/bug","color":"d93f0b","default":false},{"id":363924584,"url":"https://api.github.com/repos/openshift/openshift-ansible/labels/priority/P2","name":"priority/P2","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/openshift/openshift-ansible/milestones/3","html_url":"https://github.com/openshift/openshift-ansible/milestone/3","labels_url":"https://api.github.com/repos/openshift/openshift-ansible/milestones/3/labels","id":1883332,"number":3,"title":"1.5/3.5","description":"OpenShift Origin 1.5/OpenShift Container Platform 3.5","creator":{"login":"detiber","id":915544,"avatar_url":"https://avatars.githubusercontent.com/u/915544?v=3","gravatar_id":"","url":"https://api.github.com/users/detiber","html_url":"https://github.com/detiber","followers_url":"https://api.github.com/users/detiber/followers","following_url":"https://api.github.com/users/detiber/following{/other_user}","gists_url":"https://api.github.com/users/detiber/gists{/gist_id}","starred_url":"https://api.github.com/users/detiber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/detiber/subscriptions","organizations_url":"https://api.github.com/users/detiber/orgs","repos_url":"https://api.github.com/users/detiber/repos","events_url":"https://api.github.com/users/detiber/events{/privacy}","received_events_url":"https://api.github.com/users/detiber/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-07-14T13:28:41Z","updated_at":"2016-12-09T14:50:40Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2016-12-09T14:35:42Z","updated_at":"2016-12-13T17:49:41Z","closed_at":null,"body":"Playbook fails when we only use private ip's in our setup. \r\n\r\n##### Version\r\n`v1.2.0` \r\n`ansible version: 2.1.0`\r\n\r\n##### Steps To Reproduce\r\nInstalled + configured the prereqs on our environment. (docker, docker-storage-setup, ssh connection from master to nodes, install git, ansible, openssl, ...\r\nAfter that we delete our networkinteface with the public ip's.  \r\nWe have 3 nic's left:\r\n- docker0\r\n- ens192\r\n- lo\r\n\r\nWe edit the `/etc/ansible/hosts` which looks like this:\r\n```\r\n# host group for masters\r\n[masters]\r\n192.168.20.1\r\n\r\n# host group for etcd\r\n[etcd]\r\n192.168.20.1\r\n\r\n# host group for nodes, includes region info\r\n[nodes]\r\n192.168.20.1\r\n192.168.20.2\r\n```\r\nNow I launch the playbook:\r\n`ansible-playbook ~/openshift-ansible/playbooks/byo/config.yml`\r\n\r\n\r\n##### Current Result\r\n```\r\n...\r\nTASK [openshift_facts : Ensure PyYaml is installed] ****************************\r\nok: [192.168.20.1]\r\nok: [192.168.20.2]\r\n\r\nTASK [openshift_facts : Ensure yum-utils is installed] *************************\r\nok: [192.168.20.2]\r\nok: [192.168.20.1]\r\n\r\nTASK [openshift_facts : Gather Cluster facts and set is_containerized if needed] ***\r\nfatal: [192.168.20.1]: FAILED! => {\"changed\": false, \"failed\": true, \"module_stderr\": \"\", \"module_stdout\": \"Traceback (most recent call last):\\r\\n  File \\\"/tmp/ansible_7lfdJ7/ansible_module_openshift_facts.py\\\", line 2130, in <module>\\r\\n    main()\\r\\n  File \\\"/tmp/ansible_7lfdJ7/ansible_module_openshift_facts.py\\\", line 2111, in main\\r\\n    protected_facts_to_overwrite)\\r\\n  File \\\"/tmp/ansible_7lfdJ7/ansible_module_openshift_facts.py\\\", line 1589, in __init__\\r\\n    protected_facts_to_overwrite)\\r\\n  File \\\"/tmp/ansible_7lfdJ7/ansible_module_openshift_facts.py\\\", line 1622, in generate_facts\\r\\n    defaults = self.get_defaults(roles, deployment_type)\\r\\n  File \\\"/tmp/ansible_7lfdJ7/ansible_module_openshift_facts.py\\\", line 1665, in get_defaults\\r\\n    ip_addr = self.system_facts['default_ipv4']['address']\\r\\nKeyError: 'address'\\r\\n\", \"msg\": \"MODULE FAILURE\", \"parsed\": false}\r\nfatal: [192.168.20.2]: FAILED! => {\"changed\": false, \"failed\": true, \"module_stderr\": \"\", \"module_stdout\": \"Traceback (most recent call last):\\r\\n  File \\\"/tmp/ansible_A7Bz2D/ansible_module_openshift_facts.py\\\", line 2130, in <module>\\r\\n    main()\\r\\n  File \\\"/tmp/ansible_A7Bz2D/ansible_module_openshift_facts.py\\\", line 2111, in main\\r\\n    protected_facts_to_overwrite)\\r\\n  File \\\"/tmp/ansible_A7Bz2D/ansible_module_openshift_facts.py\\\", line 1589, in __init__\\r\\n    protected_facts_to_overwrite)\\r\\n  File \\\"/tmp/ansible_A7Bz2D/ansible_module_openshift_facts.py\\\", line 1622, in generate_facts\\r\\n    defaults = self.get_defaults(roles, deployment_type)\\r\\n  File \\\"/tmp/ansible_A7Bz2D/ansible_module_openshift_facts.py\\\", line 1665, in get_defaults\\r\\n    ip_addr = self.system_facts['default_ipv4']['address']\\r\\nKeyError: 'address'\\r\\n\", \"msg\": \"MODULE FAILURE\", \"parsed\": false}\r\n\r\nNO MORE HOSTS LEFT *************************************************************\r\n\r\n##### Expected Result\r\nPlaybook works.\r\n\r\n##### Additional Information\r\nCentos7 + we have our own registry (also in the 192 network) where we will pull from so normally we don't need internet acces.\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/openshift/openshift-ansible/issues/comments/266810068","html_url":"https://github.com/openshift/openshift-ansible/issues/2960#issuecomment-266810068","issue_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2960","id":266810068,"user":{"login":"lorenzvth7","id":14105387,"avatar_url":"https://avatars.githubusercontent.com/u/14105387?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzvth7","html_url":"https://github.com/lorenzvth7","followers_url":"https://api.github.com/users/lorenzvth7/followers","following_url":"https://api.github.com/users/lorenzvth7/following{/other_user}","gists_url":"https://api.github.com/users/lorenzvth7/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzvth7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzvth7/subscriptions","organizations_url":"https://api.github.com/users/lorenzvth7/orgs","repos_url":"https://api.github.com/users/lorenzvth7/repos","events_url":"https://api.github.com/users/lorenzvth7/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzvth7/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T17:49:41Z","updated_at":"2016-12-13T17:49:41Z","body":"@detiber Thanks, that seemed to work for the etcd. Now I'm trying to pull the CLI image which is in my repo as `192.168.80.133/openshift/origin:v1.3.0`\r\n\r\n`\"stdout\": \"Trying to pull repository 192.168.30.133/openshift/origin ... \\nPulling repository 192.168.30.133/openshift/origin\\nError while pulling image: Get http://192.168.30.133/v1/repositories/openshift/origin/images`\r\n\r\nMy registry is secured with a selfsigned certificate. So I've put the `openshift_docker_insecure_registries` line in comment but it's still complaining."}}
{"actor":{"display_login":"lorenzvth7"}}