Skip to content

no connectivity to outside from openshift containers #9789

@PI-Victor

Description

@PI-Victor

openshift v1.3.0-alpha.2+e7d0a44
kubernetes v1.3.0+57fb9ac
etcd 2.3.0+git

Client:
Version: 1.10.3
API version: 1.22
Package version: docker-1.10.3-21.git19b5791.fc24.x86_64
Go version: go1.6.2
Git commit: 19b5791/1.10.3
Built:
OS/Arch: linux/amd64

Server:
Version: 1.10.3
API version: 1.22
Package version: docker-1.10.3-21.git19b5791.fc24.x86_64
Go version: go1.6.2
Git commit: 19b5791/1.10.3
Built:
OS/Arch: linux/amd64

Whenever creating a new build with new-app the build fails because containers cannot reach the outside world.
I can't shake this issue with any solutions. tried various versions of docker from 1.9 to 1.12.
i tried formatting my laptop, twice. i can even reproduce it on a digital ocean droplet with a fedora 23/24 image. i can even reproduce this on ubuntu 16.04

this is with oc cluster up

[ipalade@openshift-lab ~]$ oc logs -f ruby-sample-build-1-build
Downloading "https://github.com/openshift/ruby-hello-world.git" ...
error: build error: fatal: unable to access 'https://github.com/openshift/ruby-hello-world.git/': Could not resolve host: github.com; Unknown error
[ipalade@openshift-lab ~]$ sudo iptables -F -t nat
[sudo] password for ipalade: 
[ipalade@openshift-lab ~]$ sudo iptables -F 
[ipalade@openshift-lab ~]$ oc start-build ruby-sample-build 
ruby-sample-build-2
[ipalade@openshift-lab ~]$ oc logs -f ruby-sample-build-2-build
Downloading "https://github.com/openshift/ruby-hello-world.git" ...
WARNING: timed out waiting for git server, will wait 1m4s
WARNING: timed out waiting for git server, will wait 4m16s

running native

[ipalade@openshift-lab ~]$ oc new-app -f openshift/origin/examples/sample-app/application-template-stibuild.json 
--> Deploying template ruby-helloworld-sample for "openshift/origin/examples/sample-app/application-template-stibuild.json"
     With parameters:
      ADMIN_USERNAME=adminJF5 # generated
      ADMIN_PASSWORD=vy5ecEf7 # generated
      MYSQL_USER=userHO2 # generated
      MYSQL_PASSWORD=AMUW5wCQ # generated
      MYSQL_DATABASE=root
--> Creating resources with label app=ruby-sample-build ...
    service "frontend" created
    route "route-edge" created
    imagestream "origin-ruby-sample" created
    imagestream "ruby-22-centos7" created
    buildconfig "ruby-sample-build" created
    deploymentconfig "frontend" created
    service "database" created
    deploymentconfig "database" created
--> Success
    Build scheduled, use 'oc logs -f bc/ruby-sample-build' to track its progress.
    Run 'oc status' to view your app.
[ipalade@openshift-lab ~]$ oc logs -f bc/ruby-sample-build
[ipalade@openshift-lab ~]$ oc logs -f bc/ruby-sample-build
Using locally available image "centos/ruby-22-centos7@sha256:221fa430a2f..."
Using locally available image "centos/ruby-22-centos7@sha256:221fa430a2f..."
Using locally available image "centos/ruby-22-centos7@sha256:221fa430a2f..."
Image sha256:34621bd05a7e000fb012da21c85e0e270ef7962bc3fe1b50e97bce2a80e52c51 contains io.openshift.s2i.scripts-url set to "image:///usr/libexec/s2i"
I0711 22:59:02.499259       1 sti.go:142] Preparing to build demo/ruby-sample-build-1:0a7c7e01
Downloading "https://github.com/openshift/ruby-hello-world.git" ...
WARNING: timed out waiting for git server, will wait 1m4s
WARNING: timed out waiting for git server, will wait 4m16s

turning off firewalld doesn't solve the issue on native.
vagrant also doesn't work.

on digitalocean it starts happening after i install firewalld, but stops after i remove it completely from the system - tested with the latest release https://github.com/openshift/origin/releases/tag/v1.3.0-alpha.2

i believe it's an iptables rule that does this, but i can't figure out what it is.

iptables -L -t nat dump here

and without nat here

dumps before i flushed the iptables rule: here

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions