{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/8939","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/8939/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/8939/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/8939/events","html_url":"https://github.com/openshift/origin/issues/8939","id":155727455,"number":8939,"title":"developer vagrant box networking problem","user":{"login":"surajssd","id":5815795,"avatar_url":"https://avatars.githubusercontent.com/u/5815795?v=3","gravatar_id":"","url":"https://api.github.com/users/surajssd","html_url":"https://github.com/surajssd","followers_url":"https://api.github.com/users/surajssd/followers","following_url":"https://api.github.com/users/surajssd/following{/other_user}","gists_url":"https://api.github.com/users/surajssd/gists{/gist_id}","starred_url":"https://api.github.com/users/surajssd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surajssd/subscriptions","organizations_url":"https://api.github.com/users/surajssd/orgs","repos_url":"https://api.github.com/users/surajssd/repos","events_url":"https://api.github.com/users/surajssd/events{/privacy}","received_events_url":"https://api.github.com/users/surajssd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/composition","name":"component/composition","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/kind/question","name":"kind/question","color":"cc317c"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P2","name":"priority/P2","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars.githubusercontent.com/u/1163175?v=3","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-05-19T12:43:10Z","updated_at":"2016-05-20T14:01:55Z","closed_at":null,"body":"I am using this docker file and doing `oc import docker-compose`, when the pods come up, wordpress pod is not able to talk to centos based maraidb pod, but if I exec into the mariadb pod and create connection to outside world, then try again connecting to mariadb from wordpress container it works.\r\n\r\nThis happens only on the vagrant box that is downloaded by the Vagrantfile in origin source code. I also tried importing docker-compose and exporting the yaml and importing that into ADB and everything worked fine.\r\n\r\n##### Version\r\n```bash\r\n$ openshift version\r\nopenshift v1.3.0-alpha.0-559-g14d77ab-dirty\r\nkubernetes v1.3.0-alpha.1-331-g0522e63\r\netcd 2.3.0\r\n```\r\n\r\n##### Steps To Reproduce\r\ncompose file:\r\n```yaml\r\nversion: \"2\"\r\n\r\nservices:\r\n  mariadb:\r\n    image: centos/mariadb\r\n    ports:\r\n      - \"3306\"\r\n    environment:\r\n      MYSQL_ROOT_PASSWORD: wordpress\r\n      MYSQL_DATABASE: wordpress\r\n      MYSQL_PASSWORD: wordpress\r\n      MYSQL_USER: wordpress\r\n      TERM: dumb\r\n\r\n  wordpress:\r\n    image: wordpress\r\n    ports:\r\n      - \"8080:80\"\r\n    depends_on:\r\n      - mariadb\r\n    restart: always\r\n    environment:\r\n      WORDPRESS_DB_HOST: mariadb\r\n      WORDPRESS_DB_NAME: wordpress\r\n      WORDPRESS_DB_PASSWORD: wordpress\r\n      WORDPRESS_DB_USER: wordpress\r\n```\r\n\r\nimporting\r\n```bash\r\n$ oc new-project compose\r\n$ oc import docker-compose -f docker-compose.yml \r\n```\r\n\r\nto be able to run wordpress pod and as per conversation: https://github.com/openshift/origin/issues/8904\r\n```bash\r\n$ oadm policy add-scc-to-user anyuid -n compose -z default\r\n```\r\n\r\nThis works fine all pods come up and service is enabled but wordpress is not able to access the maraidb service.\r\n\r\npods\r\n```bash\r\n$ oc get pods\r\nNAME                READY     STATUS    RESTARTS   AGE\r\nmariadb-1-m5nza     1/1       Running   0          19s\r\nwordpress-1-opho0   1/1       Running   0          17s\r\n```\r\nservices\r\n```bash\r\n$ oc get svc\r\nNAME        CLUSTER-IP       EXTERNAL-IP   PORT(S)    AGE\r\nmariadb     172.30.83.251    <none>        3306/TCP   37s\r\nwordpress   172.30.212.139   <none>        80/TCP     37s\r\n```\r\n##### Current Result\r\nThis is how it fails\r\n\r\n```bash\r\n$ curl 172.30.212.139:80\r\ncurl: (7) Failed to connect to 172.30.212.139 port 80: Connection refused\r\n```\r\n\r\nBut if I get into the maraidb pod and make some outside connection\r\n```bash\r\n$ oc exec -it mariadb-1-m5nza bash\r\nbash-4.2$ host www.google.com\r\nwww.google.com has address 216.58.196.164\r\nwww.google.com has IPv6 address 2404:6800:4003:809::2004\r\nbash-4.2$ exit\r\n```\r\n\r\nAnd now if I do curl, it works:\r\n\r\n```bash\r\n$ curl -L 172.30.212.139:80\r\n<!DOCTYPE html>\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-US\" xml:lang=\"en-US\">\r\n<head>\r\n\t<meta name=\"viewport\" content=\"width=device-width\" />\r\n\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n\t<meta name=\"robots\" content=\"noindex,nofollow\" />\r\n\t<title>WordPress &rsaquo; Installation</title>\r\n\t<link rel='stylesheet' id='open-sans-css'  href='https://fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&#038;subset=latin%2Clatin-ext&#038;ver=4.5.2' type='text/css' media='all' />\r\n<link rel='stylesheet' id='buttons-css'  href='http://172.30.212.139/wp-includes/css/buttons.min.css?ver=4.5.2' type='text/css' media='all' />\r\n<link rel='stylesheet' id='install-css'  href='http://172.30.212.139/wp-admin/css/install.min.css?ver=4.5.2' type='text/css' media='all' />\r\n<link rel='stylesheet' id='dashicons-css'  href='http://172.30.212.139/wp-includes/css/dashicons.min.css?ver=4.5.2' type='text/css' media='all' />\r\n</head>\r\n<body class=\"wp-core-ui language-chooser\">\r\n[SNIP]\r\n<p class=\"step\"><span class=\"spinner\"></span><input id=\"language-continue\" type=\"submit\" class=\"button button-primary button-large\" value=\"Continue\" /></p></form><script type=\"text/javascript\">var t = document.getElementById('weblog_title'); if (t){ t.focus(); }</script>\r\n\t<script type='text/javascript' src='http://172.30.212.139/wp-includes/js/jquery/jquery.js?ver=1.12.3'></script>\r\n<script type='text/javascript' src='http://172.30.212.139/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.0'></script>\r\n<script type='text/javascript' src='http://172.30.212.139/wp-admin/js/language-chooser.min.js?ver=4.5.2'></script>\r\n<script type=\"text/javascript\">\r\njQuery( function( $ ) {\r\n\t$( '.hide-if-no-js' ).removeClass( 'hide-if-no-js' );\r\n} );\r\n</script>\r\n</body>\r\n</html>\r\n```\r\n\r\n##### Additional Information\r\n\r\n\r\n\r\nwordpress logs:\r\n\r\n```bash\r\n$ oc logs wordpress-1-opho0\r\nWordPress not found in /var/www/html - copying now...\r\nComplete! WordPress has been successfully copied to /var/www/html\r\nMySQL Connection Error: (2002) Connection timed out\r\nWarning: mysqli::mysqli(): (HY000/2002): Connection timed out in - on line 10\r\nMySQL Connection Error: (2002) Connection timed out\r\nWarning: mysqli::mysqli(): (HY000/2002): Connection timed out in - on line 10\r\nWarning: mysqli::mysqli(): (HY000/2002): Connection timed out in - on line 10\r\nMySQL Connection Error: (2002) Connection timed out\r\nAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.6. Set the 'ServerName' directive globally to suppress this message\r\nAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.6. Set the 'ServerName' directive globally to suppress this message\r\n[Thu May 19 12:00:22.239298 2016] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.10 (Debian) PHP/5.6.21 configured -- resuming normal operations\r\n[Thu May 19 12:00:22.239334 2016] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'\r\n192.168.121.62 - - [19/May/2016:12:01:01 +0000] \"GET / HTTP/1.1\" 302 352 \"-\" \"curl/7.43.0\"\r\n192.168.121.62 - - [19/May/2016:12:01:08 +0000] \"GET / HTTP/1.1\" 302 352 \"-\" \"curl/7.43.0\"\r\n192.168.121.62 - - [19/May/2016:12:01:08 +0000] \"GET /wp-admin/install.php HTTP/1.1\" 200 9256 \"-\" \"curl/7.43.0\"\r\n192.168.121.62 - - [19/May/2016:12:01:36 +0000] \"HEAD / HTTP/1.1\" 302 333 \"-\" \"curl/7.43.0\"\r\n```\r\n\r\nmariadb logs:\r\n\r\n```bash\r\n$ oc logs mariadb-1-m5nza\r\nRunning mysql_install_db ...\r\nInstalling MariaDB/MySQL system tables in '/var/lib/mysql' ...\r\n160519 11:56:53 [Note] /usr/libexec/mysqld (mysqld 5.5.47-MariaDB) starting as process 33 ...\r\nOK\r\nFilling help tables...\r\n160519 11:56:54 [Note] /usr/libexec/mysqld (mysqld 5.5.47-MariaDB) starting as process 42 ...\r\nOK\r\nTo start mysqld at boot time you have to copy\r\nsupport-files/mysql.server to the right place for your system\r\nPLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !\r\nTo do so, start the server, then issue the following commands:\r\n'/usr/bin/mysqladmin' -u root password 'new-password'\r\n'/usr/bin/mysqladmin' -u root -h mariadb-1-m5nza password 'new-password'\r\nAlternatively you can run:\r\n'/usr/bin/mysql_secure_installation'\r\nwhich will also give you the option of removing the test\r\ndatabases and anonymous user created by default.  This is\r\nstrongly recommended for production servers.\r\nSee the MariaDB Knowledgebase at http://mariadb.com/kb or the\r\nMySQL manual for more instructions.\r\nYou can start the MariaDB daemon with:\r\ncd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'\r\nYou can test the MariaDB daemon with mysql-test-run.pl\r\ncd '/usr/mysql-test' ; perl mysql-test-run.pl\r\nPlease report any problems at http://mariadb.org/jira\r\nThe latest information about MariaDB is available at http://mariadb.org/.\r\nYou can find additional information about the MySQL part at:\r\nhttp://dev.mysql.com\r\nSupport MariaDB development by buying support/new features from MariaDB\r\nCorporation Ab. You can contact us about this at sales@mariadb.com.\r\nAlternatively consider joining our community based development effort:\r\nhttp://mariadb.com/kb/en/contributing-to-the-mariadb-project/\r\nFinished mysql_install_db\r\n160519 11:56:54 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.\r\n160519 11:56:54 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql\r\n```"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/220613779","html_url":"https://github.com/openshift/origin/issues/8939#issuecomment-220613779","issue_url":"https://api.github.com/repos/openshift/origin/issues/8939","id":220613779,"user":{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars.githubusercontent.com/u/1163175?v=3","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T14:01:54Z","updated_at":"2016-05-20T14:01:54Z","body":"@knobuc is there anything network-y you can think of that would cause this to fail?"}}
{"actor":{"display_login":"smarterclayton"}}