Pod networking and DNS issues
I have an all-in-one server deployed within a Windows domain and the DC runs DNS. The host sits in one subnet, the DC in neighboring subnet, and bitbucket server in another neighboring subnet. The issue is that I can reach the bitbucket and DC from the host via name and IP through ping and dig, but from within a DB pod and a working route through oc rsh I can ping the host from within the pod, but can't even ping the gateway within the same subnet as the host. Weirder is that from within the pod I can run a dig command for the bitbucket fqdn and get the correct answer, but is unable to ping by name. DNSmasq isn't installed so is using the default SkyDNS. SkyDNS's default behavior as I understand it is that it answers DNS queries within pods and passes external queries to the hosts's /etc/resolv.conf file, which is set up with the primary DC IP and a secondary address which is a global DNS for my local environment that is in another subnet.
I've turned off firewalld for the time being to eliminate one complexity to this issue, and iptables have been flushed.
Version
oc v1.3.1 kubernetes v1.3.0+52492b4 features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://10.206.73.131:8443 openshift v1.3.1 kubernetes v1.3.0+52492b4
Steps To Reproduce
Here is how I built my all-in-one host;
Base VM Specs: 8GB Memory 8vCPU 75GB Primary VMDK 200GB Secondary VMDK
Add additional repositories: Add Docker repo: cat > /etc/yum.repos.d/docker.repo << 'EOF' [docker] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF
Update YUM: yum update -y
Install necessary and additional packages: Add necessary packages: yum install -y wget vim-enhanced net-tools bind-utils git bash-completion open-vm-tools yum-utils telnet deltarpm
Docker Installation: Install Docker engine: yum -y install docker-engine
Create docker.service file: systemctl enable docker.service
Change loopback storage to docker thin pool: Assumptions are made that another blank volume is available. For this example a second disk at /dev/sdb is available with a PV of dev/sdb1 vgcreate docker /dev/sdb1 lvcreate --wipesignatures y -n thinpool docker -l 95%VG lvcreate --wipesignatures y -n thinpoolmeta docker -l 1%VG lvconvert -y --zero n -c 512K --thinpool docker/thinpool --poolmetadata docker/thinpoolmeta
cat > /etc/lvm/profile/docker-thinpool.profile << 'EOF' activation { thin_pool_autoextend_threshold=80 thin_pool_autoextend_percent=20 } EOF
lvchange --metadataprofile docker-thinpool docker/thinpool lvs -o+seg_monitor Update Docker Unit file: vim /etc/systemd/system/multi-user.target.wants/docker.service ***add in the highlighted in ORANGE below
[Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.com After=network.target [Service] Type=notify
the default is not to use systemd for cgroups because the delegate issues still
exists and systemd currently does not support the cgroup feature set required
for containers run by docker
ExecStart=/usr/bin/dockerd --storage-driver=devicemapper --storage-opt=dm.thinpooldev=/dev/mapper/docker-thinpool --storage-opt=dm.use_deferred_removal=true --storage-opt=dm.use_deferred_deletion=true ExecReload=/bin/kill -s HUP $MAINPID
Having non-zero Limit*s causes performance problems due to accounting overhead
in the kernel. We recommend using cgroups to do container-local accounting.
LimitNOFILE=infinity LimitNPROC=infinity LimitCORE=infinity
Uncomment TasksMax if your systemd version supports it.
Only systemd 226 and above support this version.
#TasksMax=infinity TimeoutStartSec=0
set delegate yes so that systemd does not reset the cgroups of docker containers
Delegate=yes
kill only the docker process, not all processes in the cgroup
KillMode=process [Install] WantedBy=multi-user.target
If Docker has already been started*: In instances where the server is already running docker or the service was started before applying new storage configuation, these steps will need to be included before reloading and restarting the docker service. Move the files listed below to remove loopback configurations stored in /var/lib. Otherwise skip this step. mkdir /var/lib/docker_backup mv /var/lib/docker/* /var/lib/docker_backup Reload Daemon: systemctl daemon-reload Start Docker service: systemctl start docker Check if successful: First check that the service started correctly; systemctl status docker.service If it failed check logs and exit codes, otherwise check docker next; docker info | grep 'Pool Name' under the Storage Driver: stanza is Pool Name: which should be the pool name created in the above steps of docker-thinpool
Openshift Installation: Stage binary location & download binary: mkdir /opt/openshift/ chmod 755 /opt /opt/openshift/ cd /opt/openshift/ wget https://github.com/openshift/origin/releases/download/v1.3.1/openshift-origin-server-v1.3.1-dad658de7465ba8a234a4fb40b5b446a45a4cee1-linux-64bit.tar.gz tar -zxvf openshift-origin-server-.tar.gz --strip-components 1 rm -f openshift-origin-server-.tar.gz
Create environment script and execute: cat > /etc/profile.d/openshift.sh << 'EOF' export OPENSHIFT=/opt/openshift/ export OPENSHIFT_VERSION=v1.3.1 export PATH=$OPENSHIFT:$PATH export KUBECONFIG=$OPENSHIFT/openshift.local.config/master/admin.kubeconfig export CURL_CA_BUNDLE=$OPENSHIFT/openshift.local.config/master/ca.crt EOF
chmod 755 /etc/profile.d/openshift.sh . /etc/profile.d/openshift.sh
Stage Openshift Docker images: docker pull openshift/origin-pod:$OPENSHIFT_VERSION docker pull openshift/origin-sti-builder:$OPENSHIFT_VERSION docker pull openshift/origin-docker-builder:$OPENSHIFT_VERSION docker pull openshift/origin-deployer:$OPENSHIFT_VERSION docker pull openshift/origin-docker-registry:$OPENSHIFT_VERSION docker pull openshift/origin-haproxy-router:$OPENSHIFT_VERSION
Create Openshift config files: ./openshift start --write-config=openshift.local.config chmod +r $OPENSHIFT/openshift.local.config/master/admin.kubeconfig chmod +r $OPENSHIFT/openshift.local.config/master/openshift-registry.kubeconfig chmod +r $OPENSHIFT/openshift.local.config/master/openshift-router.kubeconfig
Change routing subdomain:
sed -i 's/router.default.svc.cluster.local/SUBDOMAIN.NAME/'
$OPENSHIFT/openshift.local.config/master/master-config.yaml
*change SUBDOMAIN.NAME to appropriate subdomain name. Test with the command below, the return should show your SUBDOMAIN.NAME
cat $OPENSHIFT/openshift.local.config/master/master-config.yaml | grep subdomain:
Open firewall ports: firewall-cmd --permanent --zone=public --add-port=80/tcp firewall-cmd --permanent --zone=public --add-port=443/tcp firewall-cmd --permanent --zone=public --add-port=8443/tcp firewall-cmd --reload
Create Openshift service file: Binary installation of Openshift doesn't install as a service and a config file will need to be created. Change <node_hostname>!
cat > /etc/systemd/system/openshift-origin.service << 'EOF' [Unit] Description=Origin Master Service After=docker.service Requires=docker.service [Service] Restart=always RestartSec=10s ExecStart=/opt/openshift/openshift start --master-config=/opt/openshift/openshift.local.config/master/master-config.yaml --node-config=/opt/openshift/openshift.local.config/node-<node_hostname>/node-config.yaml WorkingDirectory=/opt/openshift [Install] WantedBy=multi-user.target EOF
Reload damon and persistently start Openshift service: systemctl daemon-reload systemctl enable openshift-origin systemctl start openshift-origin
Check if service has successfully started by running systemctl status openshift-origin Create Openshift Administrator account: Add Cluster admins - oadm policy add-cluster-role-to-user cluster-admin admin oadm policy add-cluster-role-to-user admin admin
Install integrated registry: mkdir /opt/openshift-registry/ chcon -Rt svirt_sandbox_file_t /opt/openshift-registry/ chown 1001.root /opt/openshift-registry/ oadm policy add-scc-to-user privileged -z registry oadm registry --service-account=registry --mount-host=/opt/openshift-registry Test registry with oc get svc docker-registry command which should return a docker-registry with a cluster IP, default port 5000 and age/uptime count.
Setup Openshift router: oadm policy add-scc-to-user hostnetwork -z router oadm router router --replicas=1 --service-account=router Test with oc status command and in the output svc/router should be listed. Deploy default image streams: These are the default images that Openshift Enterprise would come with such as NodeJS cartridge. cd ~ git clone https://github.com/openshift/openshift-ansible.git cd openshift-ansible/roles/openshift_examples/files/examples/latest/ for f in image-streams/image-streams-centos7.json; do cat $f | oc create -n openshift -f -; done for f in db-templates/.json; do cat $f | oc create -n openshift -f -; done for f in quickstart-templates/.json; do cat $f | oc create -n openshift -f -; done for f in xpaas-templates/eap*.json; do cat $f | oc create -n openshift -f -; done
Easy to find access: Create a symlink for openshift installation; ln -s /opt/openshift /etc/origin
Install Source to Image (S2I) tools This is an optional step to install S2I tools which will enable the creation and maintenance of builder images. mkdir /opt/openshift/s2i/ chmod 755 /opt/openshift/s2i/ cd /opt/openshift/s2i/ wget https://github.com/openshift/source-to-image/releases/download/v1.1.3/source-to-image-v1.1.3-ddb10f1-linux-amd64.tar.gz tar -zxvf *.tar.gz --strip-components 1 rm -f *.tar.gz export PATH=$PATH:/opt/openshift/s2i/
Current Result
I can't use a s2i build since the DNS won't resolve to my internal bitbucket server, with the mongo db pod I built to test with, I added a route after creation through the GUI and tested via oc rsh
Expected Result
Should be able to resolve external DNS as well as IP routes
Additional Information
[try to run $ oadm diagnostics command if possible]
[Note] Determining if client configuration exists for client/cluster diagnostics
Info: Successfully read a client config file at '/opt/openshift//openshift.local.config/master/admin.kubeconfig'
Info: Using context for cluster-admin access: 'test3/10-206-73-131:8443/admin'
[Note] Running diagnostic: ConfigContexts[test/10-206-73-131:8443/admin] Description: Validate client config context is complete and has connectivity
Info: For client config context 'test/10-206-73-131:8443/admin': The server URL is 'https://10.206.73.131:8443' The user authentication is 'admin/10-206-73-131:8443' The current project is 'test' Successfully requested project list; has access to project(s): [test3 default kube-system openshift openshift-infra]
[Note] Running diagnostic: ConfigContexts[default/10-206-73-131:8443/system:admin] Description: Validate client config context is complete and has connectivity
Info: For client config context 'default/10-206-73-131:8443/system:admin': The server URL is 'https://10.206.73.131:8443' The user authentication is 'system:admin/10-206-73-131:8443' The current project is 'default' Successfully requested project list; has access to project(s): [kube-system openshift openshift-infra test3 default]
[Note] Running diagnostic: DiagnosticPod Description: Create a pod to run diagnostics from the application standpoint
Info: Output from the diagnostic pod (image openshift/origin-deployer:v1.3.1): [Note] Running diagnostic: PodCheckAuth Description: Check that service account credentials authenticate as expected
Info: Service account token successfully authenticated to master
Info: Service account token was authenticated by the integrated registry.
[Note] Running diagnostic: PodCheckDns
Description: Check that DNS within a pod works as expected
[Note] Summary of diagnostics execution (version v1.3.1):
[Note] Completed with no errors or warnings seen.
[Note] Running diagnostic: ClusterRegistry Description: Check that there is a working Docker registry
[Note] Running diagnostic: ClusterRoleBindings Description: Check that the default ClusterRoleBindings are present and contain the expected subjects
Info: clusterrolebinding/cluster-admins has more subjects than expected.
Use the `oadm policy reconcile-cluster-role-bindings` command to update the role binding to remove extra subjects.
Info: clusterrolebinding/cluster-admins has extra subject {User admin }.
[Note] Running diagnostic: ClusterRoles Description: Check that the default ClusterRoles are present and contain the expected permissions
[Note] Running diagnostic: ClusterRouterName Description: Check there is a working router
[Note] Running diagnostic: MasterNode Description: Check if master is also running node (for Open vSwitch)
Info: Found a node with same IP as master: osorigin.c2aos.test
[Note] Skipping diagnostic: MetricsApiProxy Description: Check the integrated heapster metrics can be reached via the API proxy Because: The heapster service does not exist in the openshift-infra project at this time, so it is not available for the Horizontal Pod Autoscaler to use as a source of metrics.
[Note] Running diagnostic: NodeDefinitions Description: Check node records on master
[Note] Skipping diagnostic: ServiceExternalIPs Description: Check for existing services with ExternalIPs that are disallowed by master config Because: No master config file was detected
[Note] Summary of diagnostics execution (version v1.3.1): [Note] Completed with no errors or warnings seen.
[if you are reporting issue related to builds, provide build logs with BUILD_LOGLEVEL=5]
oc logs -f bc/jbossservletpost
I1110 19:26:23.473759 1 builder.go:53] $BUILD env var is {"kind":"Build","apiVersion":"v1","metadata":{"name":"jbossservletpost-25","namespace":"test3","selfLink":"/oapi/v1/namespaces/test3/builds/jbossservletpost-25","uid":"8e6aec3b-a77b-11e6-a79d-005056ad4f06","resourceVersion":"142968","creationTimestamp":"2016-11-10T19:26:19Z","labels":{"app":"jbossservletpost","buildconfig":"jbossservletpost","openshift.io/build-config.name":"jbossservletpost","openshift.io/build.start-policy":"Serial"},"annotations":{"openshift.io/build-config.name":"jbossservletpost","openshift.io/build.number":"25"}},"spec":{"serviceAccount":"builder","source":{"type":"Git","git":{"uri":"ssh://[email protected]:7999/jbosp/jbossservletpost.git"},"sourceSecret":{"name":"sshsecret"}},"strategy":{"type":"Source","sourceStrategy":{"from":{"kind":"DockerImage","name":"openshift/wildfly-101-centos7@sha256:7f0aa3a6adeeaa6c0d28a8ce04dffacb3416008d32852c2d635cb60e64354724"},"env":[{"name":"BUILD_LOGLEVEL","value":"5"}]}},"output":{"to":{"kind":"DockerImage","name":"172.30.123.234:5000/test3/jbossservletpost:latest"},"pushSecret":{"name":"builder-dockercfg-evbi8"}},"resources":{},"postCommit":{},"triggeredBy":[{"message":"Manually triggered"}]},"status":{"phase":"New","outputDockerImageReference":"172.30.123.234:5000/test3/jbossservletpost:latest","config":{"kind":"BuildConfig","namespace":"test3","name":"jbossservletpost"}}}
I1110 19:26:23.573311 1 builder.go:61] Build: &api.Build{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"jbossservletpost-25", GenerateName:"", Namespace:"test3", SelfLink:"/oapi/v1/namespaces/test3/builds/jbossservletpost-25", UID:"8e6aec3b-a77b-11e6-a79d-005056ad4f06", ResourceVersion:"142968", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:63614402779, nsec:0, loc:(*time.Location)(0x8559120)}}, DeletionTimestamp:(*unversioned.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string{"app":"jbossservletpost", "buildconfig":"jbossservletpost", "openshift.io/build-config.name":"jbossservletpost", "openshift.io/build.start-policy":"Serial"}, Annotations:map[string]string{"openshift.io/build-config.name":"jbossservletpost", "openshift.io/build.number":"25"}, OwnerReferences:[]api.OwnerReference(nil), Finalizers:[]string(nil)}, Spec:api.BuildSpec{CommonSpec:api.CommonSpec{ServiceAccount:"builder", Source:api.BuildSource{Binary:(*api.BinaryBuildSource)(nil), Dockerfile:(*string)(nil), Git:(*api.GitBuildSource)(0xc8209631d0), Images:[]api.ImageSource(nil), ContextDir:"", SourceSecret:(*api.LocalObjectReference)(0xc820452260), Secrets:[]api.SecretBuildSource(nil)}, Revision:(*api.SourceRevision)(nil), Strategy:api.BuildStrategy{DockerStrategy:(*api.DockerBuildStrategy)(nil), SourceStrategy:(*api.SourceBuildStrategy)(0xc8208ba8f0), CustomStrategy:(*api.CustomBuildStrategy)(nil), JenkinsPipelineStrategy:(*api.JenkinsPipelineBuildStrategy)(nil)}, Output:api.BuildOutput{To:(*api.ObjectReference)(0xc8202608c0), PushSecret:(*api.LocalObjectReference)(0xc820452270)}, Resources:api.ResourceRequirements{Limits:api.ResourceList(nil), Requests:api.ResourceList(nil)}, PostCommit:api.BuildPostCommitSpec{Command:[]string(nil), Args:[]string(nil), Script:""}, CompletionDeadlineSeconds:(*int64)(nil)}, TriggeredBy:[]api.BuildTriggerCause{api.BuildTriggerCause{Message:"Manually triggered", GenericWebHook:(*api.GenericWebHookCause)(nil), GitHubWebHook:(*api.GitHubWebHookCause)(nil), ImageChangeBuild:(*api.ImageChangeCause)(nil)}}}, Status:api.BuildStatus{Phase:"New", Cancelled:false, Reason:"", Message:"", StartTimestamp:(*unversioned.Time)(nil), CompletionTimestamp:(*unversioned.Time)(nil), Duration:0, OutputDockerImageReference:"172.30.123.234:5000/test3/jbossservletpost:latest", Config:(*api.ObjectReference)(0xc820260930)}} I1110 19:26:23.573480 1 builder.go:68] Master version "v1.3.1", Builder version "v1.3.1" I1110 19:26:23.754765 1 scmauths.go:27] Finding auth for "..119811_10_11_14_26_19.804825963" I1110 19:26:23.754801 1 scmauths.go:27] Finding auth for "..data" I1110 19:26:23.754807 1 scmauths.go:27] Finding auth for "ssh-privatekey" I1110 19:26:23.754812 1 scmauths.go:30] Found SCMAuth "ssh-privatekey" to handle "ssh-privatekey" I1110 19:26:23.754827 1 scmauths.go:45] Setting up SCMAuth "ssh-privatekey" I1110 19:26:23.755114 1 builder.go:153] Running build with cgroup limits: api.CGroupLimits{MemoryLimitBytes:92233720368547, CPUShares:2, CPUPeriod:100000, CPUQuota:-1, MemorySwap:92233720368547} I1110 19:26:23.808236 1 glog.go:50] With force pull false, setting policies to if-not-present I1110 19:26:23.808260 1 glog.go:50] The value of ALLOWED_UIDS is [1-] I1110 19:26:23.808277 1 glog.go:50] The value of DROP_CAPS is [KILL,MKNOD,SETGID,SETUID,SYS_CHROOT] I1110 19:26:23.808289 1 cfg.go:44] Locating docker auth for image openshift/wildfly-101-centos7@sha256:7f0aa3a6adeeaa6c0d28a8ce04dffacb3416008d32852c2d635cb60e64354724 and type PULL_DOCKERCFG_PATH I1110 19:26:23.808384 1 cfg.go:112] Using Docker authentication configuration in '/root/.docker/config.json' I1110 19:26:23.823519 1 cfg.go:56] Problem accessing /root/.docker/config.json: stat /root/.docker/config.json: no such file or directory I1110 19:26:23.823538 1 cfg.go:44] Locating docker auth for image 172.30.123.234:5000/test3/jbossservletpost:latest and type PUSH_DOCKERCFG_PATH I1110 19:26:23.823573 1 cfg.go:112] Using Docker authentication configuration in '/var/run/secrets/openshift.io/push/.dockercfg' I1110 19:26:23.823846 1 cfg.go:79] Using serviceaccount user for Docker authentication for image 172.30.123.234:5000/test3/jbossservletpost:latest I1110 19:26:23.826092 1 docker.go:450] Using locally available image "openshift/wildfly-101-centos7@sha256:7f0aa3a6ade..." I1110 19:26:23.827482 1 glog.go:50] Creating a new S2I builder with build config: "Builder Name:\t\t\tWildFly 10.1.0.Final\nBuilder Image:\t\t\topenshift/wildfly-101-centos7@sha256:7f0aa3a6adeeaa6c0d28a8ce04dffacb3416008d32852c2d635cb60e64354724\nBuilder Image Version:\t\t8e12039\nBuilder Base Version:\t\t8c4d31f\nSource:\t\t\t\tfile:///tmp/s2i-build055089684/upload/src\nOutput Image Tag:\t\ttest3/jbossservletpost-25:736dee35\nEnvironment:\t\t\tOPENSHIFT_BUILD_NAME=jbossservletpost-25,OPENSHIFT_BUILD_NAMESPACE=test3,OPENSHIFT_BUILD_SOURCE=ssh://[email protected]:7999/jbosp/jbossservletpost.git,BUILD_LOGLEVEL=5\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-build055089684\nDocker NetworkMode:\t\tcontainer:5cb8d3a4ff2ce65b5d902b0ac778da1263f7efade7c5ab518c51f18f70ab1c48\nDocker Endpoint:\t\tunix:///var/run/docker.sock\n" I1110 19:26:23.829209 1 docker.go:450] Using locally available image "openshift/wildfly-101-centos7@sha256:7f0aa3a6ade..." I1110 19:26:23.832363 1 docker.go:450] Using locally available image "openshift/wildfly-101-centos7@sha256:7f0aa3a6ade..." I1110 19:26:23.832385 1 docker.go:587] Image sha256:9b131f1d18a4f77f0d5a01edd654629b68ca76f2b2f14749664625111a56942d contains io.openshift.s2i.scripts-url set to "image:///usr/libexec/s2i" I1110 19:26:23.832435 1 glog.go:50] Starting S2I build from test3/jbossservletpost-25 BuildConfig ... I1110 19:26:23.832450 1 sti.go:176] Preparing to build test3/jbossservletpost-25:736dee35 Cloning "ssh://[email protected]:7999/jbosp/jbossservletpost.git" ... I1110 19:26:23.883243 1 glog.go:50] git ls-remote --heads ssh://[email protected]:7999/jbosp/jbossservletpost.git I1110 19:26:23.883284 1 repository.go:355] Executing GIT_ASKPASS=true GIT_SSH=/tmp/gitssh261142345 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=jbossservletpost-25-build BUILD={"kind":"Build","apiVersion":"v1","metadata":{"name":"jbossservletpost-25","namespace":"test3","selfLink":"/oapi/v1/namespaces/test3/builds/jbossservletpost-25","uid":"8e6aec3b-a77b-11e6-a79d-005056ad4f06","resourceVersion":"142968","creationTimestamp":"2016-11-10T19:26:19Z","labels":{"app":"jbossservletpost","buildconfig":"jbossservletpost","openshift.io/build-config.name":"jbossservletpost","openshift.io/build.start-policy":"Serial"},"annotations":{"openshift.io/build-config.name":"jbossservletpost","openshift.io/build.number":"25"}},"spec":{"serviceAccount":"builder","source":{"type":"Git","git":{"uri":"ssh://[email protected]:7999/jbosp/jbossservletpost.git"},"sourceSecret":{"name":"sshsecret"}},"strategy":{"type":"Source","sourceStrategy":{"from":{"kind":"DockerImage","name":"openshift/wildfly-101-centos7@sha256:7f0aa3a6adeeaa6c0d28a8ce04dffacb3416008d32852c2d635cb60e64354724"},"env":[{"name":"BUILD_LOGLEVEL","value":"5"}]}},"output":{"to":{"kind":"DockerImage","name":"172.30.123.234:5000/test3/jbossservletpost:latest"},"pushSecret":{"name":"builder-dockercfg-evbi8"}},"resources":{},"postCommit":{},"triggeredBy":[{"message":"Manually triggered"}]},"status":{"phase":"New","outputDockerImageReference":"172.30.123.234:5000/test3/jbossservletpost:latest","config":{"kind":"BuildConfig","namespace":"test3","name":"jbossservletpost"}}} SOURCE_REPOSITORY=ssh://[email protected]:7999/jbosp/jbossservletpost.git SOURCE_URI=ssh://[email protected]:7999/jbosp/jbossservletpost.git ORIGIN_VERSION=v1.3.1 BUILD_LOGLEVEL=5 ALLOWED_UIDS=1- DROP_CAPS=KILL,MKNOD,SETGID,SETUID,SYS_CHROOT PUSH_DOCKERCFG_PATH=/var/run/secrets/openshift.io/push SOURCE_SECRET_PATH=/var/run/secrets/openshift.io/source KUBERNETES_PORT_443_TCP=tcp://172.30.0.1:443 JBOSSSERVLETPOST_SERVICE_PORT=8080 JBOSSSERVLETPOST_PORT_8080_TCP_PROTO=tcp JBOSSSERVLETPOST_PORT_8080_TCP_ADDR=172.30.46.73 KUBERNETES_PORT_443_TCP_PROTO=tcp KUBERNETES_PORT_443_TCP_PORT=443 KUBERNETES_PORT_53_UDP_PROTO=udp KUBERNETES_PORT_53_UDP_ADDR=172.30.0.1 KUBERNETES_PORT_53_TCP=tcp://172.30.0.1:53 KUBERNETES_PORT_53_TCP_ADDR=172.30.0.1 KUBERNETES_SERVICE_HOST=172.30.0.1 KUBERNETES_SERVICE_PORT_HTTPS=443 KUBERNETES_SERVICE_PORT_DNS=53 KUBERNETES_PORT=tcp://172.30.0.1:443 KUBERNETES_PORT_53_UDP=udp://172.30.0.1:53 KUBERNETES_PORT_53_UDP_PORT=53 KUBERNETES_PORT_53_TCP_PROTO=tcp KUBERNETES_PORT_53_TCP_PORT=53 JBOSSSERVLETPOST_SERVICE_HOST=172.30.46.73 JBOSSSERVLETPOST_SERVICE_PORT_8080_TCP=8080 JBOSSSERVLETPOST_PORT_8080_TCP_PORT=8080 KUBERNETES_SERVICE_PORT=443 KUBERNETES_SERVICE_PORT_DNS_TCP=53 KUBERNETES_PORT_443_TCP_ADDR=172.30.0.1 JBOSSSERVLETPOST_PORT=tcp://172.30.46.73:8080 JBOSSSERVLETPOST_PORT_8080_TCP=tcp://172.30.46.73:8080 HOME=/root OPENSHIFT_CONTAINERIZED=true KUBECONFIG=/var/lib/origin/openshift.local.config/master/admin.kubeconfig git ls-remote --heads ssh://[email protected]:7999/jbosp/jbossservletpost.git I1110 19:26:39.884145 1 repository.go:427] Command execution timed out after 16s WARNING: timed out waiting for git server, will wait 1m4s I1110 19:26:39.884251 1 glog.go:50] git ls-remote --heads ssh://[email protected]:7999/jbosp/jbossservletpost.git I1110 19:26:39.884286 1 repository.go:355] Executing GIT_ASKPASS=true GIT_SSH=/tmp/gitssh261142345 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=jbossservletpost-25-build BUILD={"kind":"Build","apiVersion":"v1","metadata":{"name":"jbossservletpost-25","namespace":"test3","selfLink":"/oapi/v1/namespaces/test3/builds/jbossservletpost-25","uid":"8e6aec3b-a77b-11e6-a79d-005056ad4f06","resourceVersion":"142968","creationTimestamp":"2016-11-10T19:26:19Z","labels":{"app":"jbossservletpost","buildconfig":"jbossservletpost","openshift.io/build-config.name":"jbossservletpost","openshift.io/build.start-policy":"Serial"},"annotations":{"openshift.io/build-config.name":"jbossservletpost","openshift.io/build.number":"25"}},"spec":{"serviceAccount":"builder","source":{"type":"Git","git":{"uri":"ssh://[email protected]:7999/jbosp/jbossservletpost.git"},"sourceSecret":{"name":"sshsecret"}},"strategy":{"type":"Source","sourceStrategy":{"from":{"kind":"DockerImage","name":"openshift/wildfly-101-centos7@sha256:7f0aa3a6adeeaa6c0d28a8ce04dffacb3416008d32852c2d635cb60e64354724"},"env":[{"name":"BUILD_LOGLEVEL","value":"5"}]}},"output":{"to":{"kind":"DockerImage","name":"172.30.123.234:5000/test3/jbossservletpost:latest"},"pushSecret":{"name":"builder-dockercfg-evbi8"}},"resources":{},"postCommit":{},"triggeredBy":[{"message":"Manually triggered"}]},"status":{"phase":"New","outputDockerImageReference":"172.30.123.234:5000/test3/jbossservletpost:latest","config":{"kind":"BuildConfig","namespace":"test3","name":"jbossservletpost"}}} SOURCE_REPOSITORY=ssh://[email protected]:7999/jbosp/jbossservletpost.git SOURCE_URI=ssh://[email protected]:7999/jbosp/jbossservletpost.git ORIGIN_VERSION=v1.3.1 BUILD_LOGLEVEL=5 ALLOWED_UIDS=1- DROP_CAPS=KILL,MKNOD,SETGID,SETUID,SYS_CHROOT PUSH_DOCKERCFG_PATH=/var/run/secrets/openshift.io/push SOURCE_SECRET_PATH=/var/run/secrets/openshift.io/source KUBERNETES_PORT_443_TCP=tcp://172.30.0.1:443 JBOSSSERVLETPOST_SERVICE_PORT=8080 JBOSSSERVLETPOST_PORT_8080_TCP_PROTO=tcp JBOSSSERVLETPOST_PORT_8080_TCP_ADDR=172.30.46.73 KUBERNETES_PORT_443_TCP_PROTO=tcp KUBERNETES_PORT_443_TCP_PORT=443 KUBERNETES_PORT_53_UDP_PROTO=udp KUBERNETES_PORT_53_UDP_ADDR=172.30.0.1 KUBERNETES_PORT_53_TCP=tcp://172.30.0.1:53 KUBERNETES_PORT_53_TCP_ADDR=172.30.0.1 KUBERNETES_SERVICE_HOST=172.30.0.1 KUBERNETES_SERVICE_PORT_HTTPS=443 KUBERNETES_SERVICE_PORT_DNS=53 KUBERNETES_PORT=tcp://172.30.0.1:443 KUBERNETES_PORT_53_UDP=udp://172.30.0.1:53 KUBERNETES_PORT_53_UDP_PORT=53 KUBERNETES_PORT_53_TCP_PROTO=tcp KUBERNETES_PORT_53_TCP_PORT=53 JBOSSSERVLETPOST_SERVICE_HOST=172.30.46.73 JBOSSSERVLETPOST_SERVICE_PORT_8080_TCP=8080 JBOSSSERVLETPOST_PORT_8080_TCP_PORT=8080 KUBERNETES_SERVICE_PORT=443 KUBERNETES_SERVICE_PORT_DNS_TCP=53 KUBERNETES_PORT_443_TCP_ADDR=172.30.0.1 JBOSSSERVLETPOST_PORT=tcp://172.30.46.73:8080 JBOSSSERVLETPOST_PORT_8080_TCP=tcp://172.30.46.73:8080 HOME=/root OPENSHIFT_CONTAINERIZED=true KUBECONFIG=/var/lib/origin/openshift.local.config/master/admin.kubeconfig git ls-remote --heads ssh://[email protected]:7999/jbosp/jbossservletpost.git I1110 19:27:43.884536 1 repository.go:427] Command execution timed out after 1m4s WARNING: timed out waiting for git server, will wait 4m16s I1110 19:27:43.884627 1 glog.go:50] git ls-remote --heads ssh://[email protected]:7999/jbosp/jbossservletpost.git I1110 19:27:43.884666 1 repository.go:355] Executing GIT_ASKPASS=true GIT_SSH=/tmp/gitssh261142345 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=jbossservletpost-25-build BUILD={"kind":"Build","apiVersion":"v1","metadata":{"name":"jbossservletpost-25","namespace":"test3","selfLink":"/oapi/v1/namespaces/test3/builds/jbossservletpost-25","uid":"8e6aec3b-a77b-11e6-a79d-005056ad4f06","resourceVersion":"142968","creationTimestamp":"2016-11-10T19:26:19Z","labels":{"app":"jbossservletpost","buildconfig":"jbossservletpost","openshift.io/build-config.name":"jbossservletpost","openshift.io/build.start-policy":"Serial"},"annotations":{"openshift.io/build-config.name":"jbossservletpost","openshift.io/build.number":"25"}},"spec":{"serviceAccount":"builder","source":{"type":"Git","git":{"uri":"ssh://[email protected]:7999/jbosp/jbossservletpost.git"},"sourceSecret":{"name":"sshsecret"}},"strategy":{"type":"Source","sourceStrategy":{"from":{"kind":"DockerImage","name":"openshift/wildfly-101-centos7@sha256:7f0aa3a6adeeaa6c0d28a8ce04dffacb3416008d32852c2d635cb60e64354724"},"env":[{"name":"BUILD_LOGLEVEL","value":"5"}]}},"output":{"to":{"kind":"DockerImage","name":"172.30.123.234:5000/test3/jbossservletpost:latest"},"pushSecret":{"name":"builder-dockercfg-evbi8"}},"resources":{},"postCommit":{},"triggeredBy":[{"message":"Manually triggered"}]},"status":{"phase":"New","outputDockerImageReference":"172.30.123.234:5000/test3/jbossservletpost:latest","config":{"kind":"BuildConfig","namespace":"test3","name":"jbossservletpost"}}} SOURCE_REPOSITORY=ssh://[email protected]:7999/jbosp/jbossservletpost.git SOURCE_URI=ssh://[email protected]:7999/jbosp/jbossservletpost.git ORIGIN_VERSION=v1.3.1 BUILD_LOGLEVEL=5 ALLOWED_UIDS=1- DROP_CAPS=KILL,MKNOD,SETGID,SETUID,SYS_CHROOT PUSH_DOCKERCFG_PATH=/var/run/secrets/openshift.io/push SOURCE_SECRET_PATH=/var/run/secrets/openshift.io/source KUBERNETES_PORT_443_TCP=tcp://172.30.0.1:443 JBOSSSERVLETPOST_SERVICE_PORT=8080 JBOSSSERVLETPOST_PORT_8080_TCP_PROTO=tcp JBOSSSERVLETPOST_PORT_8080_TCP_ADDR=172.30.46.73 KUBERNETES_PORT_443_TCP_PROTO=tcp KUBERNETES_PORT_443_TCP_PORT=443 KUBERNETES_PORT_53_UDP_PROTO=udp KUBERNETES_PORT_53_UDP_ADDR=172.30.0.1 KUBERNETES_PORT_53_TCP=tcp://172.30.0.1:53 KUBERNETES_PORT_53_TCP_ADDR=172.30.0.1 KUBERNETES_SERVICE_HOST=172.30.0.1 KUBERNETES_SERVICE_PORT_HTTPS=443 KUBERNETES_SERVICE_PORT_DNS=53 KUBERNETES_PORT=tcp://172.30.0.1:443 KUBERNETES_PORT_53_UDP=udp://172.30.0.1:53 KUBERNETES_PORT_53_UDP_PORT=53 KUBERNETES_PORT_53_TCP_PROTO=tcp KUBERNETES_PORT_53_TCP_PORT=53 JBOSSSERVLETPOST_SERVICE_HOST=172.30.46.73 JBOSSSERVLETPOST_SERVICE_PORT_8080_TCP=8080 JBOSSSERVLETPOST_PORT_8080_TCP_PORT=8080 KUBERNETES_SERVICE_PORT=443 KUBERNETES_SERVICE_PORT_DNS_TCP=53 KUBERNETES_PORT_443_TCP_ADDR=172.30.0.1 JBOSSSERVLETPOST_PORT=tcp://172.30.46.73:8080 JBOSSSERVLETPOST_PORT_8080_TCP=tcp://172.30.46.73:8080 HOME=/root OPENSHIFT_CONTAINERIZED=true KUBECONFIG=/var/lib/origin/openshift.local.config/master/admin.kubeconfig git ls-remote --heads ssh://[email protected]:7999/jbosp/jbossservletpost.git I1110 19:29:51.135259 1 repository.go:423] Error executing command: exit status 128 I1110 19:29:51.135339 1 glog.go:50] ssh: connect to host bitbucket.some.domain port 7999: Connection timed out fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. I1110 19:29:51.135371 1 cleanup.go:33] Removing temporary directory /tmp/s2i-build055089684 I1110 19:29:51.135390 1 fs.go:159] Removing directory '/tmp/s2i-build055089684' F1110 19:29:51.135645 1 helpers.go:110] error: build error: ssh: connect to host bitbucket.some.domain port 7999: Connection timed out fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
[consider attaching output of the $ oc get all -o json -n <namespace> command to the issue]
bc for above build;
oc get bc/jbossservletpost -o json { "kind": "BuildConfig", "apiVersion": "v1", "metadata": { "name": "jbossservletpost", "namespace": "test3", "selfLink": "/oapi/v1/namespaces/test3/buildconfigs/jbossservletpost", "uid": "43872b45-a756-11e6-a79d-005056ad4f06", "resourceVersion": "142967", "creationTimestamp": "2016-11-10T14:59:22Z", "labels": { "app": "jbossservletpost" }, "annotations": { "openshift.io/generated-by": "OpenShiftNewApp" } }, "spec": { "triggers": [ { "type": "GitHub", "github": { "secret": "42oCjqPAGZaIeehu0W-Q" } }, { "type": "Generic", "generic": { "secret": "g5AeWtbEqRuu6Y6eZ_jb" } }, { "type": "ConfigChange" }, { "type": "ImageChange", "imageChange": { "lastTriggeredImageID": "openshift/wildfly-101-centos7@sha256:7f0aa3a6adeeaa6c0d28a8ce04dffacb3416008d32852c2d635cb60e64354724" } } ], "runPolicy": "Serial", "source": { "type": "Git", "git": { "uri": "ssh://[email protected]:7999/jbosp/jbossservletpost.git" }, "sourceSecret": { "name": "sshsecret" } }, "strategy": { "type": "Source", "sourceStrategy": { "from": { "kind": "ImageStreamTag", "namespace": "openshift", "name": "wildfly:10.1" } } }, "output": { "to": { "kind": "ImageStreamTag", "name": "jbossservletpost:latest" } }, "resources": {}, "postCommit": {} }, "status": { "lastVersion": 25 } }
[visit https://docs.openshift.org/latest/welcome/index.html]
@sosiouxme seems like adm diagnostics should have reported a networking issue since the builder pods are not able to make external connections?
agreed, except diag doesn't show connectivity issues
@kenk667 that was my point..
right......thx
@bparees diagnostics don't yet test external connectivity. There's really nothing external we can count on being reachable from within a pod, in the general case.
@sosiouxme couldn't diagnostics take a hostname as an arg to validate against?
that gave me an idea, I do use a custom subdomain via master-config.yaml, so I re-ran the oc adm diagnostics with the --master-config= switch and did see one warning, however no error
oc adm diagnostics --master-config=$OPENSHIFT/openshift.local.config/master/master-config.yaml [Note] Determining if client configuration exists for client/cluster diagnostics Info: Successfully read a client config file at '/opt/openshift//openshift.local.config/master/admin.kubeconfig' Info: Using context for cluster-admin access: 'test3/10-206-73-131:8443/admin' [Note] Performing systemd discovery
[Note] Running diagnostic: ConfigContexts[test/10-206-73-131:8443/admin] Description: Validate client config context is complete and has connectivity
Info: For client config context 'test/10-206-73-131:8443/admin': The server URL is 'https://10.206.73.131:8443' The user authentication is 'admin/10-206-73-131:8443' The current project is 'test' Successfully requested project list; has access to project(s): [default kube-system openshift openshift-infra test3]
[Note] Running diagnostic: ConfigContexts[default/10-206-73-131:8443/system:admin] Description: Validate client config context is complete and has connectivity
Info: For client config context 'default/10-206-73-131:8443/system:admin': The server URL is 'https://10.206.73.131:8443' The user authentication is 'system:admin/10-206-73-131:8443' The current project is 'default' Successfully requested project list; has access to project(s): [default kube-system openshift openshift-infra test3]
[Note] Running diagnostic: DiagnosticPod Description: Create a pod to run diagnostics from the application standpoint
Info: Output from the diagnostic pod (image openshift/origin-deployer:v1.3.1): [Note] Running diagnostic: PodCheckAuth Description: Check that service account credentials authenticate as expected
Info: Service account token successfully authenticated to master
Info: Service account token was authenticated by the integrated registry.
[Note] Running diagnostic: PodCheckDns
Description: Check that DNS within a pod works as expected
[Note] Summary of diagnostics execution (version v1.3.1):
[Note] Completed with no errors or warnings seen.
[Note] Running diagnostic: ClusterRegistry Description: Check that there is a working Docker registry
[Note] Running diagnostic: ClusterRoleBindings Description: Check that the default ClusterRoleBindings are present and contain the expected subjects
Info: clusterrolebinding/cluster-admins has more subjects than expected.
Use the `oadm policy reconcile-cluster-role-bindings` command to update the role binding to remove extra subjects.
Info: clusterrolebinding/cluster-admins has extra subject {User admin }.
[Note] Running diagnostic: ClusterRoles Description: Check that the default ClusterRoles are present and contain the expected permissions
[Note] Running diagnostic: ClusterRouterName Description: Check there is a working router
[Note] Skipping diagnostic: MasterNode Description: Check if master is also running node (for Open vSwitch) Because: Network plugin does not require master to also run node:
[Note] Skipping diagnostic: MetricsApiProxy Description: Check the integrated heapster metrics can be reached via the API proxy Because: The heapster service does not exist in the openshift-infra project at this time, so it is not available for the Horizontal Pod Autoscaler to use as a source of metrics.
[Note] Running diagnostic: NodeDefinitions Description: Check node records on master
[Note] Running diagnostic: ServiceExternalIPs Description: Check for existing services with ExternalIPs that are disallowed by master config
[Note] Running diagnostic: AnalyzeLogs Description: Check for recent problems in systemd service logs
Info: Checking journalctl logs for 'docker' service
[Note] Running diagnostic: MasterConfigCheck Description: Check the master config file
WARN: [DH0005 from diagnostic MasterConfigCheck@openshift/origin/pkg/diagnostics/host/check_master_config.go:52] Validation of master config file '/opt/openshift//openshift.local.config/master/master-config.yaml' warned: assetConfig.loggingPublicURL: Invalid value: "": required to view aggregated container logs in the console assetConfig.metricsPublicURL: Invalid value: "": required to view cluster metrics in the console
[Note] Skipping diagnostic: NodeConfigCheck Description: Check the node config file Because: No node config file was detected
[Note] Running diagnostic: UnitStatus Description: Check status for related systemd units
[Note] Summary of diagnostics execution (version v1.3.1): [Note] Warnings seen: 1
Yes, though I try to minimize args for diagnostics; but it could have a default like "www.redhat.com" and then override that if you're in an environment where you don't expect to be able to reach that address.
On Tue, Nov 15, 2016 at 2:22 PM, Ben Parees [email protected] wrote:
@sosiouxme https://github.com/sosiouxme couldn't diagnostics take a hostname as an arg to validate against?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openshift/origin/issues/11920#issuecomment-260739661, or mute the thread https://github.com/notifications/unsubscribe-auth/AABz-qYGQycIw6XKr_h167vk9iIs_s2zks5q-gaCgaJpZM4Kysz5 .
Actually FWIW the networking diagnostics pod in 1.4/3.4 should test external connectivity, though I haven't looked at it too closely yet.
On Tue, Nov 15, 2016 at 2:22 PM, Ben Parees [email protected] wrote:
@sosiouxme https://github.com/sosiouxme couldn't diagnostics take a hostname as an arg to validate against?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openshift/origin/issues/11920#issuecomment-260739661, or mute the thread https://github.com/notifications/unsubscribe-auth/AABz-qYGQycIw6XKr_h167vk9iIs_s2zks5q-gaCgaJpZM4Kysz5 .
@pravisankar can clarify what the tests do.
Given that I can run dig commands and have the correct answer resolve within the db pod, I suspect that DNS is working, but I can't ping past the openshift host IP. Can't even reach the gateway IP within the same subnet
oc rsh mongodb-1-tsiej sh-4.2$ dig google.com
; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.4 <<>> google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56769 ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4000 ;; QUESTION SECTION: ;google.com. IN A
;; ANSWER SECTION: google.com. 300 IN A 173.194.205.139 google.com. 300 IN A 173.194.205.100 google.com. 300 IN A 173.194.205.101 google.com. 300 IN A 173.194.205.102 google.com. 300 IN A 173.194.205.113 google.com. 300 IN A 173.194.205.138
;; Query time: 2024 msec ;; SERVER: 10.206.73.131#53(10.206.73.131) ;; WHEN: Wed Nov 16 15:24:01 UTC 2016 ;; MSG SIZE rcvd: 135
What network plugin are you using, and how did you install?
@knobunc, I listed the install steps in my first post, similar to this post: http://sudhaker.com/10/install-the-latest-openshift-v3-on-centos-7-1 but I use a custom subdomain. Wondering what you mean by network plugin?
@knobunc I just looked up and checked the master-config.yaml, under the networkConfig stanza the value for networkPluginName is "", seems I have to install the SDN component separately, is that correct? I was assuming that it was installed as part of the openshift/origin package from wget?
@kenk667 you can specify it on this line: ./openshift start --write-config=openshift.local.config --network-plugin=...
But if you are only running a single node, then you may not need it. The default docker bridge ought to work.
If that is the case this may help, this is the output from running iptable -t nat -L from the master/node;
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
KUBE-SERVICES all -- anywhere anywhere /* kubernetes service portals /
KUBE-PORTALS-CONTAINER all -- anywhere anywhere / handle ClusterIPs; NOTE: this must be before the NodePort rules /
DOCKER all -- anywhere anywhere ADDRTYPE match dst-type LOCAL
KUBE-NODEPORT-CONTAINER all -- anywhere anywhere ADDRTYPE match dst-type LOCAL / handle service NodePorts; NOTE: this must be the last rule in the chain */
Chain INPUT (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
KUBE-SERVICES all -- anywhere anywhere /* kubernetes service portals /
KUBE-PORTALS-HOST all -- anywhere anywhere / handle ClusterIPs; NOTE: this must be before the NodePort rules /
DOCKER all -- anywhere !loopback/8 ADDRTYPE match dst-type LOCAL
KUBE-NODEPORT-HOST all -- anywhere anywhere ADDRTYPE match dst-type LOCAL / handle service NodePorts; NOTE: this must be the last rule in the chain */
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
KUBE-POSTROUTING all -- anywhere anywhere /* kubernetes postrouting rules */
MASQUERADE all -- 172.17.0.0/16 anywhere
Chain DOCKER (2 references)
target prot opt source destination
RETURN all -- anywhere anywhere
Chain KUBE-MARK-MASQ (10 references)
target prot opt source destination
MARK all -- anywhere anywhere MARK or 0x4000
Chain KUBE-NODEPORT-CONTAINER (1 references) target prot opt source destination
Chain KUBE-NODEPORT-HOST (1 references) target prot opt source destination
Chain KUBE-NODEPORTS (1 references) target prot opt source destination
Chain KUBE-PORTALS-CONTAINER (1 references) target prot opt source destination
Chain KUBE-PORTALS-HOST (1 references) target prot opt source destination
Chain KUBE-POSTROUTING (1 references)
target prot opt source destination
MASQUERADE all -- anywhere anywhere /* kubernetes service traffic requiring SNAT */ mark match 0x4000/0x4000
Chain KUBE-SEP-274GEK7H4NWWDCRH (2 references)
target prot opt source destination
KUBE-MARK-MASQ all -- osorigin.c2aos.test anywhere /* default/kubernetes:https /
DNAT tcp -- anywhere anywhere / default/kubernetes:https */ recent: SET name: KUBE-SEP-274GEK7H4NWWDCRH side: source mask: 255.255.255.255 tcp to:10.206.73.131:8443
Chain KUBE-SEP-5POF6LTBETWQHX6T (1 references)
target prot opt source destination
KUBE-MARK-MASQ all -- 172.17.0.3 anywhere /* test3/jenkins-jnlp:agent /
DNAT tcp -- anywhere anywhere / test3/jenkins-jnlp:agent */ tcp to:172.17.0.3:50000
Chain KUBE-SEP-AWT7EFD6A263UO3S (1 references)
target prot opt source destination
KUBE-MARK-MASQ all -- 172.17.0.4 anywhere /* test3/mongodb:mongo /
DNAT tcp -- anywhere anywhere / test3/mongodb:mongo */ tcp to:172.17.0.4:27017
Chain KUBE-SEP-DBUP7BOPBOIFWE6U (2 references)
target prot opt source destination
KUBE-MARK-MASQ all -- osorigin.c2aos.test anywhere /* default/kubernetes:dns /
DNAT udp -- anywhere anywhere / default/kubernetes:dns */ recent: SET name: KUBE-SEP-DBUP7BOPBOIFWE6U side: source mask: 255.255.255.255 udp to:10.206.73.131:8053
Chain KUBE-SEP-EELV6JIF6TIW4SSY (1 references)
target prot opt source destination
KUBE-MARK-MASQ all -- osorigin.c2aos.test anywhere /* default/router:1936-tcp /
DNAT tcp -- anywhere anywhere / default/router:1936-tcp */ tcp to:10.206.73.131:1936
Chain KUBE-SEP-IDEFQLWRJZ2EFWWS (2 references)
target prot opt source destination
KUBE-MARK-MASQ all -- 172.17.0.2 anywhere /* default/docker-registry:5000-tcp /
DNAT tcp -- anywhere anywhere / default/docker-registry:5000-tcp */ recent: SET name: KUBE-SEP-IDEFQLWRJZ2EFWWS side: source mask: 255.255.255.255 tcp to:172.17.0.2:5000
Chain KUBE-SEP-IESMFEMMKDQIEQJT (1 references)
target prot opt source destination
KUBE-MARK-MASQ all -- osorigin.c2aos.test anywhere /* default/router:80-tcp /
DNAT tcp -- anywhere anywhere / default/router:80-tcp */ tcp to:10.206.73.131:80
Chain KUBE-SEP-KWQCHHWAZ23W45BX (1 references)
target prot opt source destination
KUBE-MARK-MASQ all -- 172.17.0.3 anywhere /* test3/jenkins:web /
DNAT tcp -- anywhere anywhere / test3/jenkins:web */ tcp to:172.17.0.3:8080
Chain KUBE-SEP-LFL3RGVYTAJGWG63 (2 references)
target prot opt source destination
KUBE-MARK-MASQ all -- osorigin.c2aos.test anywhere /* default/kubernetes:dns-tcp /
DNAT tcp -- anywhere anywhere / default/kubernetes:dns-tcp */ recent: SET name: KUBE-SEP-LFL3RGVYTAJGWG63 side: source mask: 255.255.255.255 tcp to:10.206.73.131:8053
Chain KUBE-SEP-XGYIKTACQFQMNQZR (1 references)
target prot opt source destination
KUBE-MARK-MASQ all -- osorigin.c2aos.test anywhere /* default/router:443-tcp /
DNAT tcp -- anywhere anywhere / default/router:443-tcp */ tcp to:10.206.73.131:443
Chain KUBE-SERVICES (2 references)
target prot opt source destination
KUBE-SVC-TX2IEXHNVQIBA3BT tcp -- anywhere 172.30.46.73 /* test3/jbossservletpost:8080-tcp cluster IP / tcp dpt:webcache
KUBE-SVC-OOO2IR2BWIBHSLQS tcp -- anywhere 172.30.70.188 / test3/jenkins-jnlp:agent cluster IP / tcp dpt:50000
KUBE-SVC-Q2HJ63N2NGDSWH2U tcp -- anywhere 172.30.0.107 / test3/mongodb:mongo cluster IP / tcp dpt:27017
KUBE-SVC-BA6I5HTZKAAAJT56 tcp -- anywhere 172.30.0.1 / default/kubernetes:dns-tcp cluster IP / tcp dpt:domain
KUBE-SVC-4JCRTMMYZAAYMIJ2 tcp -- anywhere 172.30.255.142 / default/router:1936-tcp cluster IP / tcp dpt:jetcmeserver
KUBE-SVC-IKV43KYNCXS2W7KZ tcp -- anywhere 172.30.255.142 / default/router:443-tcp cluster IP / tcp dpt:https
KUBE-SVC-H4VILPC365YHLMA6 tcp -- anywhere 172.30.3.187 / test3/jenkins:web cluster IP / tcp dpt:http
KUBE-SVC-ECTPRXTXBM34L34Q tcp -- anywhere 172.30.123.234 / default/docker-registry:5000-tcp cluster IP / tcp dpt:commplex-main
KUBE-SVC-NPX46M4PTMTKRN6Y tcp -- anywhere 172.30.0.1 / default/kubernetes:https cluster IP / tcp dpt:https
KUBE-SVC-3VQ6B3MLH7E2SZT4 udp -- anywhere 172.30.0.1 / default/kubernetes:dns cluster IP / udp dpt:domain
KUBE-SVC-GQKZAHCS5DTMHUQ6 tcp -- anywhere 172.30.255.142 / default/router:80-tcp cluster IP / tcp dpt:http
KUBE-NODEPORTS all -- anywhere anywhere / kubernetes service nodeports; NOTE: this must be the last rule in this chain */ ADDRTYPE match dst-type LOCAL
Chain KUBE-SVC-3VQ6B3MLH7E2SZT4 (1 references)
target prot opt source destination
KUBE-SEP-DBUP7BOPBOIFWE6U all -- anywhere anywhere /* default/kubernetes:dns / recent: CHECK seconds: 180 reap name: KUBE-SEP-DBUP7BOPBOIFWE6U side: source mask: 255.255.255.255
KUBE-SEP-DBUP7BOPBOIFWE6U all -- anywhere anywhere / default/kubernetes:dns */
Chain KUBE-SVC-4JCRTMMYZAAYMIJ2 (1 references)
target prot opt source destination
KUBE-SEP-EELV6JIF6TIW4SSY all -- anywhere anywhere /* default/router:1936-tcp */
Chain KUBE-SVC-BA6I5HTZKAAAJT56 (1 references)
target prot opt source destination
KUBE-SEP-LFL3RGVYTAJGWG63 all -- anywhere anywhere /* default/kubernetes:dns-tcp / recent: CHECK seconds: 180 reap name: KUBE-SEP-LFL3RGVYTAJGWG63 side: source mask: 255.255.255.255
KUBE-SEP-LFL3RGVYTAJGWG63 all -- anywhere anywhere / default/kubernetes:dns-tcp */
Chain KUBE-SVC-ECTPRXTXBM34L34Q (1 references)
target prot opt source destination
KUBE-SEP-IDEFQLWRJZ2EFWWS all -- anywhere anywhere /* default/docker-registry:5000-tcp / recent: CHECK seconds: 180 reap name: KUBE-SEP-IDEFQLWRJZ2EFWWS side: source mask: 255.255.255.255
KUBE-SEP-IDEFQLWRJZ2EFWWS all -- anywhere anywhere / default/docker-registry:5000-tcp */
Chain KUBE-SVC-GQKZAHCS5DTMHUQ6 (1 references)
target prot opt source destination
KUBE-SEP-IESMFEMMKDQIEQJT all -- anywhere anywhere /* default/router:80-tcp */
Chain KUBE-SVC-H4VILPC365YHLMA6 (1 references)
target prot opt source destination
KUBE-SEP-KWQCHHWAZ23W45BX all -- anywhere anywhere /* test3/jenkins:web */
Chain KUBE-SVC-IKV43KYNCXS2W7KZ (1 references)
target prot opt source destination
KUBE-SEP-XGYIKTACQFQMNQZR all -- anywhere anywhere /* default/router:443-tcp */
Chain KUBE-SVC-NPX46M4PTMTKRN6Y (1 references)
target prot opt source destination
KUBE-SEP-274GEK7H4NWWDCRH all -- anywhere anywhere /* default/kubernetes:https / recent: CHECK seconds: 180 reap name: KUBE-SEP-274GEK7H4NWWDCRH side: source mask: 255.255.255.255
KUBE-SEP-274GEK7H4NWWDCRH all -- anywhere anywhere / default/kubernetes:https */
Chain KUBE-SVC-OOO2IR2BWIBHSLQS (1 references)
target prot opt source destination
KUBE-SEP-5POF6LTBETWQHX6T all -- anywhere anywhere /* test3/jenkins-jnlp:agent */
Chain KUBE-SVC-Q2HJ63N2NGDSWH2U (1 references)
target prot opt source destination
KUBE-SEP-AWT7EFD6A263UO3S all -- anywhere anywhere /* test3/mongodb:mongo */
Chain KUBE-SVC-TX2IEXHNVQIBA3BT (1 references) target prot opt source destination
docker ps:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 69cbc7af5c4c centos/mongodb-32-centos7@sha256:21f5581cb5e33b65814475482937e84e9d3341e396937e7651a6945b2a550b20 "container-entrypoint" About an hour ago Up About an hour k8s_mongodb.29eebeb9_mongodb-1-tsiej_test3_6106ec5e-aaa2-11e6-a79d-005056ad4f06_6d8cc816 5eb206206383 openshift/jenkins-1-centos7@sha256:6e4821f5ed73a56ea5f0ff28369aba6041683c691b6194c3831bf2ee458b8a65 "/usr/libexec/s2i/run" About an hour ago Up About an hour k8s_jenkins.f4cde826_jenkins-1-6z6jt_test3_2afdf729-ac10-11e6-a79d-005056ad4f06_6a1062a7 ceffb59cb468 openshift/origin-haproxy-router:v1.3.1 "/usr/bin/openshift-r" About an hour ago Up About an hour k8s_router.5a8ef52a_router-1-ef2oy_default_e22c7f4b-a11a-11e6-a79d-005056ad4f06_6f9232d2 dfe5b964ebd6 openshift/origin-docker-registry:v1.3.1 "/bin/sh -c 'DOCKER_R" About an hour ago Up About an hour k8s_registry.defad398_docker-registry-1-6yu9l_default_ceea3940-a11a-11e6-a79d-005056ad4f06_02c9c77a d9c4c18710d9 openshift/origin-pod:v1.3.1 "/pod" About an hour ago Up About an hour k8s_POD.62d5febf_mongodb-1-tsiej_test3_6106ec5e-aaa2-11e6-a79d-005056ad4f06_aa82139b 99746bc9c998 openshift/origin-pod:v1.3.1 "/pod" About an hour ago Up About an hour k8s_POD.4c9cdca0_jenkins-1-6z6jt_test3_2afdf729-ac10-11e6-a79d-005056ad4f06_e63f88ea d947692112bc openshift/origin-pod:v1.3.1 "/pod" About an hour ago Up About an hour k8s_POD.4c9cdca0_router-1-ef2oy_default_e22c7f4b-a11a-11e6-a79d-005056ad4f06_d75a2606 9d358d302c6e openshift/origin-pod:v1.3.1 "/pod" About an hour ago Up About an hour k8s_POD.a21ffe83_docker-registry-1-6yu9l_default_ceea3940-a11a-11e6-a79d-005056ad4f06_29d565a3
docker network ls
NETWORK ID NAME DRIVER SCOPE 5a8cded638ed bridge bridge local 5073b69de4dc host host local 801e2f3350ac none null local
docker inspect mongodb container;
docker inspect 69cbc7af5c4c [ { "Id": "69cbc7af5c4c3f6335528464e9f72f2ec35c2560abd2295d45e9cd1d4f5db841", "Created": "2016-11-16T16:02:25.637443478Z", "Path": "container-entrypoint", "Args": [ "run-mongod" ], "State": { "Status": "running", "Running": true, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 3319, "ExitCode": 0, "Error": "", "StartedAt": "2016-11-16T16:02:31.971751972Z", "FinishedAt": "0001-01-01T00:00:00Z" }, "Image": "sha256:5335e2e4af72409c410d815ccbef0fa7cdad5d7f184475f40772503c2589c588", "ResolvConfPath": "/var/lib/docker/containers/d9c4c18710d9e22169d754453b309c7998caafd50cafe22cb90a6175760a4e66/resolv.conf", "HostnamePath": "/var/lib/docker/containers/d9c4c18710d9e22169d754453b309c7998caafd50cafe22cb90a6175760a4e66/hostname", "HostsPath": "/opt/openshift/openshift.local.volumes/pods/6106ec5e-aaa2-11e6-a79d-005056ad4f06/etc-hosts", "LogPath": "/var/lib/docker/containers/69cbc7af5c4c3f6335528464e9f72f2ec35c2560abd2295d45e9cd1d4f5db841/69cbc7af5c4c3f6335528464e9f72f2ec35c2560abd2295d45e9cd1d4f5db841-json.log", "Name": "/k8s_mongodb.29eebeb9_mongodb-1-tsiej_test3_6106ec5e-aaa2-11e6-a79d-005056ad4f06_6d8cc816", "RestartCount": 0, "Driver": "devicemapper", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "", "ExecIDs": null, "HostConfig": { "Binds": [ "/opt/openshift/openshift.local.volumes/pods/6106ec5e-aaa2-11e6-a79d-005056ad4f06/volumes/kubernetes.io~empty-dir/mongodb-data:/var/lib/mongodb/data:Z", "/opt/openshift/openshift.local.volumes/pods/6106ec5e-aaa2-11e6-a79d-005056ad4f06/volumes/kubernetes.io~secret/default-token-kwib0:/var/run/secrets/kubernetes.io/serviceaccount:ro,Z", "/opt/openshift/openshift.local.volumes/pods/6106ec5e-aaa2-11e6-a79d-005056ad4f06/etc-hosts:/etc/hosts", "/opt/openshift/openshift.local.volumes/pods/6106ec5e-aaa2-11e6-a79d-005056ad4f06/containers/mongodb/6d8cc816:/dev/termination-log" ], "ContainerIDFile": "", "LogConfig": { "Type": "json-file", "Config": {} }, "NetworkMode": "container:d9c4c18710d9e22169d754453b309c7998caafd50cafe22cb90a6175760a4e66", "PortBindings": null, "RestartPolicy": { "Name": "", "MaximumRetryCount": 0 }, "AutoRemove": false, "VolumeDriver": "", "VolumesFrom": null, "CapAdd": null, "CapDrop": [ "MKNOD", "SYS_CHROOT" ], "Dns": null, "DnsOptions": null, "DnsSearch": null, "ExtraHosts": null, "GroupAdd": null, "IpcMode": "container:d9c4c18710d9e22169d754453b309c7998caafd50cafe22cb90a6175760a4e66", "Cgroup": "", "Links": null, "OomScoreAdj": 935, "PidMode": "", "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "SecurityOpt": [ "seccomp=unconfined", "label:level:s0:c8,c7" ], "UTSMode": "", "UsernsMode": "", "ShmSize": 67108864, "Runtime": "runc", "ConsoleSize": [ 0, 0 ], "Isolation": "", "CpuShares": 2, "Memory": 536870912, "CgroupParent": "", "BlkioWeight": 0, "BlkioWeightDevice": null, "BlkioDeviceReadBps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteIOps": null, "CpuPeriod": 0, "CpuQuota": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": null, "DiskQuota": 0, "KernelMemory": 0, "MemoryReservation": 0, "MemorySwap": -1, "MemorySwappiness": -1, "OomKillDisable": false, "PidsLimit": 0, "Ulimits": null, "CpuCount": 0, "CpuPercent": 0, "IOMaximumIOps": 0, "IOMaximumBandwidth": 0 }, "GraphDriver": { "Name": "devicemapper", "Data": { "DeviceId": "339", "DeviceName": "docker-253:1-429534-d8929e5dbdba9eac725a741ded546c8819fa36b840d36a05eec7dd624c640797", "DeviceSize": "10737418240" } }, "Mounts": [ { "Source": "/opt/openshift/openshift.local.volumes/pods/6106ec5e-aaa2-11e6-a79d-005056ad4f06/containers/mongodb/6d8cc816", "Destination": "/dev/termination-log", "Mode": "", "RW": true, "Propagation": "rprivate" }, { "Source": "/opt/openshift/openshift.local.volumes/pods/6106ec5e-aaa2-11e6-a79d-005056ad4f06/volumes/kubernetes.io~empty-dir/mongodb-data", "Destination": "/var/lib/mongodb/data", "Mode": "Z", "RW": true, "Propagation": "rprivate" }, { "Source": "/opt/openshift/openshift.local.volumes/pods/6106ec5e-aaa2-11e6-a79d-005056ad4f06/volumes/kubernetes.io~secret/default-token-kwib0", "Destination": "/var/run/secrets/kubernetes.io/serviceaccount", "Mode": "ro,Z", "RW": false, "Propagation": "rprivate" }, { "Source": "/opt/openshift/openshift.local.volumes/pods/6106ec5e-aaa2-11e6-a79d-005056ad4f06/etc-hosts", "Destination": "/etc/hosts", "Mode": "", "RW": true, "Propagation": "rprivate" } ], "Config": { "Hostname": "mongodb-1-tsiej", "Domainname": "", "User": "184", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "ExposedPorts": { "27017/tcp": {} }, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "MONGODB_USER=mongo", "MONGODB_PASSWORD=mongo", "MONGODB_DATABASE=sampledb", "MONGODB_ADMIN_PASSWORD=mongoadmin", "MONGODB_PORT_27017_TCP_PROTO=tcp", "KUBERNETES_PORT=tcp://172.30.0.1:443", "KUBERNETES_PORT_53_TCP_PROTO=tcp", "JBOSSSERVLETPOST_PORT_8080_TCP_ADDR=172.30.46.73", "JENKINS_PORT=tcp://172.30.3.187:80", "JENKINS_PORT_80_TCP_PROTO=tcp", "JENKINS_JNLP_PORT=tcp://172.30.70.188:50000", "MONGODB_SERVICE_PORT=27017", "KUBERNETES_PORT_53_TCP_ADDR=172.30.0.1", "JENKINS_JNLP_PORT_50000_TCP_PORT=50000", "JENKINS_JNLP_PORT_50000_TCP_ADDR=172.30.70.188", "KUBERNETES_SERVICE_PORT=443", "JBOSSSERVLETPOST_SERVICE_PORT_8080_TCP=8080", "JBOSSSERVLETPOST_PORT_8080_TCP=tcp://172.30.46.73:8080", "JENKINS_PORT_80_TCP_PORT=80", "JENKINS_PORT_80_TCP_ADDR=172.30.3.187", "JENKINS_JNLP_SERVICE_HOST=172.30.70.188", "KUBERNETES_PORT_443_TCP_PORT=443", "KUBERNETES_PORT_53_UDP=udp://172.30.0.1:53", "KUBERNETES_PORT_53_UDP_PROTO=udp", "KUBERNETES_PORT_53_UDP_ADDR=172.30.0.1", "JENKINS_SERVICE_PORT=80", "JENKINS_JNLP_SERVICE_PORT_AGENT=50000", "MONGODB_SERVICE_PORT_MONGO=27017", "MONGODB_PORT=tcp://172.30.0.107:27017", "MONGODB_PORT_27017_TCP=tcp://172.30.0.107:27017", "KUBERNETES_SERVICE_HOST=172.30.0.1", "KUBERNETES_PORT_53_TCP=tcp://172.30.0.1:53", "KUBERNETES_PORT_53_TCP_PORT=53", "KUBERNETES_SERVICE_PORT_DNS_TCP=53", "KUBERNETES_PORT_443_TCP=tcp://172.30.0.1:443", "KUBERNETES_PORT_53_UDP_PORT=53", "JENKINS_SERVICE_PORT_WEB=80", "JENKINS_JNLP_PORT_50000_TCP=tcp://172.30.70.188:50000", "JENKINS_JNLP_PORT_50000_TCP_PROTO=tcp", "MONGODB_SERVICE_HOST=172.30.0.107", "KUBERNETES_SERVICE_PORT_DNS=53", "JENKINS_PORT_80_TCP=tcp://172.30.3.187:80", "JENKINS_JNLP_SERVICE_PORT=50000", "MONGODB_PORT_27017_TCP_PORT=27017", "MONGODB_PORT_27017_TCP_ADDR=172.30.0.107", "KUBERNETES_SERVICE_PORT_HTTPS=443", "KUBERNETES_PORT_443_TCP_PROTO=tcp", "KUBERNETES_PORT_443_TCP_ADDR=172.30.0.1", "JBOSSSERVLETPOST_SERVICE_HOST=172.30.46.73", "JBOSSSERVLETPOST_PORT=tcp://172.30.46.73:8080", "JBOSSSERVLETPOST_PORT_8080_TCP_PROTO=tcp", "JBOSSSERVLETPOST_PORT_8080_TCP_PORT=8080", "JENKINS_SERVICE_HOST=172.30.3.187", "JBOSSSERVLETPOST_SERVICE_PORT=8080", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "MONGODB_VERSION=3.2", "HOME=/var/lib/mongodb", "CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/mongodb", "ENABLED_COLLECTIONS=rh-mongodb32", "BASH_ENV=${CONTAINER_SCRIPTS_PATH}/scl_enable", "ENV=${CONTAINER_SCRIPTS_PATH}/scl_enable", "PROMPT_COMMAND=. ${CONTAINER_SCRIPTS_PATH}/scl_enable" ], "Cmd": [ "run-mongod" ], "Image": "centos/mongodb-32-centos7@sha256:21f5581cb5e33b65814475482937e84e9d3341e396937e7651a6945b2a550b20", "Volumes": { "/var/lib/mongodb/data": {} }, "WorkingDir": "", "Entrypoint": [ "container-entrypoint" ], "OnBuild": null, "Labels": { "build-date": "20160906", "io.k8s.description": "MongoDB is a scalable, high-performance, open source NoSQL database.", "io.k8s.display-name": "MongoDB 3.2", "io.kubernetes.container.hash": "29eebeb9", "io.kubernetes.container.name": "mongodb", "io.kubernetes.container.restartCount": "1", "io.kubernetes.container.terminationMessagePath": "/dev/termination-log", "io.kubernetes.pod.name": "mongodb-1-tsiej", "io.kubernetes.pod.namespace": "test3", "io.kubernetes.pod.terminationGracePeriod": "30", "io.kubernetes.pod.uid": "6106ec5e-aaa2-11e6-a79d-005056ad4f06", "io.openshift.builder-version": "014586b", "io.openshift.expose-services": "27017:mongodb", "io.openshift.tags": "database,mongodb,rh-mongodb32", "license": "GPLv2", "name": "CentOS Base Image", "vendor": "CentOS" } }, "NetworkSettings": { "Bridge": "", "SandboxID": "", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": null, "SandboxKey": "", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "MacAddress": "", "Networks": null } } ]
I noticed at the end is the NetworkSettings Stanza and that the Networks value is set to null, not the bridge, would this be the issue?
seems not all of the containers are on the bridge
docker inspect network bridge;
[ { "Name": "bridge", "Id": "5a8cded638ed4145a5521a4a2f32153b7727c66105c1639d319bd1360885a2f4", "Scope": "local", "Driver": "bridge", "EnableIPv6": false, "IPAM": { "Driver": "default", "Options": null, "Config": [ { "Subnet": "172.17.0.0/16", "Gateway": "172.17.0.1" } ] }, "Internal": false, "Containers": { "99746bc9c9982a44c9d82f6253eb586a072a24f54bb57b01973bd74e6b4c4662": { "Name": "k8s_POD.4c9cdca0_jenkins-1-6z6jt_test3_2afdf729-ac10-11e6-a79d-005056ad4f06_e63f88ea", "EndpointID": "d26a58c31b122573b868e6c79f8a532c3d7fe6f5a81027be33b76a03091cdf0c", "MacAddress": "02:42:ac:11:00:03", "IPv4Address": "172.17.0.3/16", "IPv6Address": "" }, "9d358d302c6ee622451679792dda755ac4d5d08374b2b1798daf77bfe996af52": { "Name": "k8s_POD.a21ffe83_docker-registry-1-6yu9l_default_ceea3940-a11a-11e6-a79d-005056ad4f06_29d565a3", "EndpointID": "ff6af720262b10f37ed835e18b81453831c5d4bff89045ea58230c1647fea2a1", "MacAddress": "02:42:ac:11:00:02", "IPv4Address": "172.17.0.2/16", "IPv6Address": "" }, "d9c4c18710d9e22169d754453b309c7998caafd50cafe22cb90a6175760a4e66": { "Name": "k8s_POD.62d5febf_mongodb-1-tsiej_test3_6106ec5e-aaa2-11e6-a79d-005056ad4f06_aa82139b", "EndpointID": "332903249fe0aa67a7aca9adc438266836c25d37e87b06e93e3feb6cece6c95a", "MacAddress": "02:42:ac:11:00:04", "IPv4Address": "172.17.0.4/16", "IPv6Address": "" } }, "Options": { "com.docker.network.bridge.default_bridge": "true", "com.docker.network.bridge.enable_icc": "true", "com.docker.network.bridge.enable_ip_masquerade": "true", "com.docker.network.bridge.host_binding_ipv4": "0.0.0.0", "com.docker.network.bridge.name": "docker0", "com.docker.network.driver.mtu": "1500" }, "Labels": {} } ]
I just tried oc rsh to the registry pod and am able to ping google.com and my private bitbucket server by name. looking at previous commands above, registry is one of the pods on the bridge network
Is this an openshift issue where a new project doesn't auto assign bridge network in docker? or am I missing something?