{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8io/fabric8/issues/6085","repository_url":"https://api.github.com/repos/fabric8io/fabric8","labels_url":"https://api.github.com/repos/fabric8io/fabric8/issues/6085/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/fabric8/issues/6085/comments","events_url":"https://api.github.com/repos/fabric8io/fabric8/issues/6085/events","html_url":"https://github.com/fabric8io/fabric8/issues/6085","id":161038524,"number":6085,"title":"Container ipv6 getaddrinfo dns resolution issues on fabric8 openshift","user":{"login":"johanvdb","id":815840,"avatar_url":"https://avatars.githubusercontent.com/u/815840?v=3","gravatar_id":"","url":"https://api.github.com/users/johanvdb","html_url":"https://github.com/johanvdb","followers_url":"https://api.github.com/users/johanvdb/followers","following_url":"https://api.github.com/users/johanvdb/following{/other_user}","gists_url":"https://api.github.com/users/johanvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/johanvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanvdb/subscriptions","organizations_url":"https://api.github.com/users/johanvdb/orgs","repos_url":"https://api.github.com/users/johanvdb/repos","events_url":"https://api.github.com/users/johanvdb/events{/privacy}","received_events_url":"https://api.github.com/users/johanvdb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-18T18:58:07Z","updated_at":"2016-06-19T03:53:01Z","closed_at":null,"body":"I am trying to deploy a wordpress docker that talks to a spring boot microservice using the fabric8 openshift vagrant local setup (http://fabric8.io/guide/getStartedVagrant.html)\r\n\r\nI get DNS lookup problems whereby glibc is trying to resolve both AAAA and A records for a domain, but then the failure on AAAA breaks the request even though an A record exists.\r\n\r\nThe following was tested on debian:latest f854eed3f31f as well as on the official wordpress docker.\r\n\r\n```\r\n# apt-get update\r\nErr http://security.debian.org jessie/updates InRelease\r\nErr http://security.debian.org jessie/updates Release.gpg\r\n  Could not resolve 'security.debian.org'\r\n...\r\n```\r\n\r\nPing however works (Maybe because it uses gethostbyname rather than getaddrinfo?):\r\n\r\n```\r\n# ping security.debian.org\r\nPING security.debian.org (212.211.132.32): 56 data bytes\r\n64 bytes from 212.211.132.32: icmp_seq=0 ttl=61 time=169.647 ms\r\n```\r\n\r\nI tried to disable the ipv6 support in docker images by modifying the docker daemon startup to include --ipv6=false but containers still see ipv6 support:\r\n\r\n```\r\n[vagrant@vagrant ~]$ ps -Af | grep \"docker daemon\" | grep -v grep\r\nroot      1020     1  2 18:36 ?        00:00:20 /usr/bin/docker daemon -H fd:// -H tcp://0.0.0.0:2375 --selinux-enabled --insecure-registry=172.0.0.0/8 --log-level=warn --ipv6=false\r\n```\r\n\r\n```\r\n[vagrant@vagrant ~]$ oc debug debug-rc-0m7dk\r\nDebugging with pod/debug-rc-0m7dk-debug, original command: <image entrypoint>\r\nWaiting for pod to start ...\r\nPod IP: 172.17.0.12\r\n\r\nHit enter for command prompt\r\n\r\n# ip addr\r\n1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default \r\n    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n    inet 127.0.0.1/8 scope host lo\r\n       valid_lft forever preferred_lft forever\r\n    inet6 ::1/128 scope host \r\n       valid_lft forever preferred_lft forever\r\n27: eth0@if28: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default \r\n    link/ether 02:42:ac:11:00:0c brd ff:ff:ff:ff:ff:ff\r\n    inet 172.17.0.12/16 scope global eth0\r\n       valid_lft forever preferred_lft forever\r\n    inet6 fe80::42:acff:fe11:c/64 scope link tentative dadfailed \r\n       valid_lft forever preferred_lft forever\r\n```"},"comment":{"url":"https://api.github.com/repos/fabric8io/fabric8/issues/comments/226977935","html_url":"https://github.com/fabric8io/fabric8/issues/6085#issuecomment-226977935","issue_url":"https://api.github.com/repos/fabric8io/fabric8/issues/6085","id":226977935,"user":{"login":"johanvdb","id":815840,"avatar_url":"https://avatars.githubusercontent.com/u/815840?v=3","gravatar_id":"","url":"https://api.github.com/users/johanvdb","html_url":"https://github.com/johanvdb","followers_url":"https://api.github.com/users/johanvdb/followers","following_url":"https://api.github.com/users/johanvdb/following{/other_user}","gists_url":"https://api.github.com/users/johanvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/johanvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanvdb/subscriptions","organizations_url":"https://api.github.com/users/johanvdb/orgs","repos_url":"https://api.github.com/users/johanvdb/repos","events_url":"https://api.github.com/users/johanvdb/events{/privacy}","received_events_url":"https://api.github.com/users/johanvdb/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T03:53:01Z","updated_at":"2016-06-19T03:53:01Z","body":"I just tried a stock standard openshift vagrant, the debian:stable and debian:latest images and their containers look identical, yet they work. I am stumped...\r\n\r\n```\r\n[vagrant@localhost ~]$ oc debug pod/debug-rc-qknar\r\nDebugging with pod/debug-rc-qknar-debug, original command: <image entrypoint>\r\nWaiting for pod to start ...\r\n\r\nHit enter for command prompt\r\n\r\n# cat /etc/resolv.conf\r\nsearch sample.svc.cluster.local svc.cluster.local cluster.local vdb.local\r\nnameserver 10.2.2.2\r\nnameserver 10.0.2.3\r\noptions ndots:5\r\n```\r\n\r\n```\r\n# apt-get update\r\nGet:1 http://security.debian.org jessie/updates InRelease [63.1 kB]\r\nIgn http://httpredir.debian.org jessie InRelease           \r\nGet:2 http://httpredir.debian.org jessie-updates InRelease [142 kB]\r\n...\r\n```\r\n\r\n```\r\n# ip addr\r\n1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default \r\n    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n    inet 127.0.0.1/8 scope host lo\r\n       valid_lft forever preferred_lft forever\r\n    inet6 ::1/128 scope host \r\n       valid_lft forever preferred_lft forever\r\n37: eth0@if38: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default \r\n    link/ether 02:42:ac:11:00:10 brd ff:ff:ff:ff:ff:ff\r\n    inet 172.17.0.16/16 scope global eth0\r\n       valid_lft forever preferred_lft forever\r\n    inet6 fe80::42:acff:fe11:10/64 scope link tentative dadfailed \r\n       valid_lft forever preferred_lft forever\r\n```\r\n\r\n"}}
{"actor":{"display_login":"johanvdb"}}