{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2163","repository_url":"https://api.github.com/repos/openshift/openshift-ansible","labels_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2163/labels{/name}","comments_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2163/comments","events_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2163/events","html_url":"https://github.com/openshift/openshift-ansible/issues/2163","id":165966866,"number":2163,"title":"nameserver changed","user":{"login":"bkmagnetron","id":4893873,"avatar_url":"https://avatars.githubusercontent.com/u/4893873?v=3","gravatar_id":"","url":"https://api.github.com/users/bkmagnetron","html_url":"https://github.com/bkmagnetron","followers_url":"https://api.github.com/users/bkmagnetron/followers","following_url":"https://api.github.com/users/bkmagnetron/following{/other_user}","gists_url":"https://api.github.com/users/bkmagnetron/gists{/gist_id}","starred_url":"https://api.github.com/users/bkmagnetron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkmagnetron/subscriptions","organizations_url":"https://api.github.com/users/bkmagnetron/orgs","repos_url":"https://api.github.com/users/bkmagnetron/repos","events_url":"https://api.github.com/users/bkmagnetron/events{/privacy}","received_events_url":"https://api.github.com/users/bkmagnetron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-17T08:28:37Z","updated_at":"2016-07-20T12:06:41Z","closed_at":null,"body":"In my private network I have deployed a bind server with IP 192.168.0.88. \r\n\r\n**Before Installing:**\r\n```\r\n# node1.localdomain 192.168.0.101\r\n$ sudo cat /etc/resolv.conf \r\nsearch localdomain\r\nnameserver 192.168.0.88\r\nnameserver 8.8.8.8\r\n```\r\n```\r\n# docker options\r\nOPTIONS=' --selinux-enabled --dns 192.168.0.88 --dns 8.8.8.8 --insecure-registry=172.30.0.0/16 --log-driver=json-file'\r\n```\r\n**After Installing:**\r\n_nameserver_ has been changed.\r\n```\r\n# node1.localdomain 192.168.0.101\r\n$ sudo cat /etc/resolv.conf \r\nsearch localdomain\r\nnameserver 192.168.0.101\r\nnameserver 8.8.8.8\r\n```\r\n_dns_ options were removed\r\n```\r\n# docker options\r\nOPTIONS=' --selinux-enabled --insecure-registry=172.30.0.0/16 --log-driver=json-file --log-opt max-size=50m'\r\n```\r\n**Installation:**\r\n```\r\n# cat /etc/ansible/hosts \r\n# Create an OSEv3 group that contains the masters and nodes groups\r\n[OSEv3:children]\r\nmasters\r\nnodes\r\n\r\n# Set variables common for all OSEv3 hosts\r\n[OSEv3:vars]\r\n# SSH user, this user should allow ssh based auth without requiring a password\r\nansible_ssh_user=root\r\n\r\n# If ansible_ssh_user is not root, ansible_sudo must be set to true\r\n#ansible_sudo=true\r\n\r\ndeployment_type=origin\r\n\r\n# uncomment the following to enable htpasswd authentication; defaults to DenyAllPasswordIdentityProvider\r\n#openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]\r\n\r\n# host group for masters\r\n[masters]\r\nnode1.localdomain\r\n\r\n# host group for nodes, includes region info\r\n[nodes]\r\nnode1.localdomain openshift_node_labels=\"{'region': 'infra', 'zone': 'default'}\" openshift_schedulable=true\r\n```\r\n```\r\n# ansible-playbook ~/openshift-ansible/playbooks/byo/config.yml\r\n```\r\n**Issue:**\r\n```\r\nI0717 06:30:03.649386       1 builder.go:57] Master version \"v1.2.0\", Builder version \"v1.2.0\"\r\nI0717 06:30:03.716060       1 builder.go:145] Running build with cgroup limits: api.CGroupLimits{MemoryLimitBytes:92233720368547, CPUShares:2, CPUPeriod:100000, CPUQuota:-1, MemorySwap:92233720368547}\r\nI0717 06:30:03.890806       1 sti.go:205] The value of ALLOWED_UIDS is [1-]\r\nI0717 06:30:03.890843       1 sti.go:213] The value of DROP_CAPS is [KILL,MKNOD,SETGID,SETUID,SYS_CHROOT]\r\nI0717 06:30:03.902074       1 docker.go:355] Using locally available image \"centos/python-34-centos7@sha256:e3ad517f317ad7a5d1939ab38e406825d2b51e9cc676df53825356fc18027c15\"\r\nI0717 06:30:03.906015       1 sti.go:232] Creating a new S2I builder with build config: \"Builder Name:\\t\\t\\tPython 3.4\\nBuilder Image:\\t\\t\\tcentos/python-34-centos7@sha256:e3ad517f317ad7a5d1939ab38e406825d2b51e9cc676df53825356fc18027c15\\nBuilder Image Version:\\t\\te761571bb1bc910bda65674e0d43c4c3509a7823\\nBuilder Base Version:\\t\\te178f1c\\nSource:\\t\\t\\t\\tfile:///tmp/s2i-build680461441/upload/src\\nOutput Image Tag:\\t\\tdjango-ex/django-example-2:ffd6400a\\nEnvironment:\\t\\t\\tOPENSHIFT_BUILD_NAME=django-example-2,OPENSHIFT_BUILD_NAMESPACE=django-ex,OPENSHIFT_BUILD_SOURCE=https://github.com/openshift/django-ex.git,PIP_INDEX_URL=\\nIncremental Build:\\t\\tdisabled\\nRemove Old Build:\\t\\tdisabled\\nBuilder Pull Policy:\\t\\tif-not-present\\nPrevious Image Pull Policy:\\talways\\nQuiet:\\t\\t\\t\\tdisabled\\nLayered Build:\\t\\t\\tdisabled\\nWorkdir:\\t\\t\\t/tmp/s2i-build680461441\\nDocker NetworkMode:\\t\\tcontainer:3f83a7f33dd9a756ef3abc9939c6a51e22d0519bc97937403d75a9591d167843\\nDocker Endpoint:\\t\\tunix:///var/run/docker.sock\\n\"\r\nI0717 06:30:03.912004       1 docker.go:355] Using locally available image \"centos/python-34-centos7@sha256:e3ad517f317ad7a5d1939ab38e406825d2b51e9cc676df53825356fc18027c15\"\r\nI0717 06:30:03.923626       1 docker.go:355] Using locally available image \"centos/python-34-centos7@sha256:e3ad517f317ad7a5d1939ab38e406825d2b51e9cc676df53825356fc18027c15\"\r\nI0717 06:30:03.923688       1 docker.go:475] Image contains io.openshift.s2i.scripts-url set to 'image:///usr/libexec/s2i'\r\nI0717 06:30:03.923751       1 sti.go:140] Preparing to build django-ex/django-example-2:ffd6400a\r\nI0717 06:30:04.081751       1 source.go:197] Downloading \"https://github.com/openshift/django-ex.git\" ...\r\nI0717 06:30:20.081999       1 cleanup.go:23] Removing temporary directory /tmp/s2i-build680461441\r\nI0717 06:30:20.082028       1 fs.go:156] Removing directory '/tmp/s2i-build680461441'\r\nF0717 06:30:20.082433       1 builder.go:204] Error: build error: timeout while waiting for remote repository \"https://github.com/openshift/django-ex.git\"\r\n```\r\n**How I solved it:**\r\nI again appended `--dns 192.168.0.88 --dns 8.8.8.8` to docker `OPTIONS` again. And restarted the node(tried restarting the docker alone but it didn't worked)."},"comment":{"url":"https://api.github.com/repos/openshift/openshift-ansible/issues/comments/233930485","html_url":"https://github.com/openshift/openshift-ansible/issues/2163#issuecomment-233930485","issue_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/2163","id":233930485,"user":{"login":"sdodson","id":48161,"avatar_url":"https://avatars.githubusercontent.com/u/48161?v=3","gravatar_id":"","url":"https://api.github.com/users/sdodson","html_url":"https://github.com/sdodson","followers_url":"https://api.github.com/users/sdodson/followers","following_url":"https://api.github.com/users/sdodson/following{/other_user}","gists_url":"https://api.github.com/users/sdodson/gists{/gist_id}","starred_url":"https://api.github.com/users/sdodson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdodson/subscriptions","organizations_url":"https://api.github.com/users/sdodson/orgs","repos_url":"https://api.github.com/users/sdodson/repos","events_url":"https://api.github.com/users/sdodson/events{/privacy}","received_events_url":"https://api.github.com/users/sdodson/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T12:06:41Z","updated_at":"2016-07-20T12:06:41Z","body":"Django-ex.my-domain. is the route's hostname? If so that would depend on\nyour wildcard DNS setup and is unrelated to dnsmasq.\n\nOn Jul 20, 2016 3:30 AM, \"Balakrishnan\" <notifications@github.com> wrote:\n\n> @sdodson <https://github.com/sdodson> Thanks NM_CONTROLLED=\"yes\" fixed\n> the problem and the django app that I deployed also worked fine i.e. route\n> created and can able to do curl django-ex.my-domain . But when I *restart*\n> both the master and nodes. I get the following in events\n>\n> Readiness probe failed: Get http://10.1.0.2:8080/: read tcp 10.1.0.2:8080: use of closed network connection\n>\n> Liveness probe failed: Get http://10.1.0.2:8080/: read tcp 10.1.0.2:8080: use of closed network connection\n>\n> 10.1.0.2 is the ip of the pod.\n> I can able to curl 10.1.0.2:8080 but not curl django-ex.my-domain\n>\n> I don't know weather this relates to the environment setup by ansible or\n> the issue with kubernetes.\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/openshift/openshift-ansible/issues/2163#issuecomment-233865079>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AAC8IU9-oCCfb850mcbAprwdve1XZWYhks5qXc55gaJpZM4JOLlt>\n> .\n>\n"}}
{"actor":{"display_login":"sdodson"}}