Bug 1388839

Summary: Build failed with error:failed to create endpoint jolly_mcclintock on network bridge
Product: OpenShift Container Platform Reporter: Wang Haoran <haowang>
Component: NetworkingAssignee: Dan Williams <dcbw>
Status: CLOSED ERRATA QA Contact: Meng Bo <bmeng>
Severity: high Docs Contact:
Priority: high    
Version: 3.4.0CC: akhakhar, aos-bugs, eparis, jhenner, pprakash, pruan, rcyriac, tdawson, xtian
Target Milestone: ---Keywords: Reopened, TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 12:45:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1388889, 1388897    

Description Wang Haoran 2016-10-26 09:42:47 UTC
Description of problem:

docker build failed with error:failed to create endpoint jolly_mcclintock on network bridge
Version-Release number of selected component (if applicable):

openshift v3.4.0.15+9c963ec
kubernetes v1.4.0+776c994
etcd 3.1.0-alpha.1

How reproducible:

alwasy
Steps to Reproduce:
1.oc new-build https://github.com/openshift/ruby-hello-world
2.check the build logs
3.

Actual results:
[root@ip-172-18-9-95 ~]# oc get build
NAME                 TYPE      FROM      STATUS    STARTED   DURATION
ruby-hello-world-1   Docker    Git       Pending            
[root@ip-172-18-9-95 ~]# oc logs -f bc/ruby-hello-world
Cloning "https://github.com/openshift/ruby-hello-world" ...
        Commit: e79d8870be808a7abb4ab304e94c8bee69d909c6 (Merge pull request #53 from danmcp/master)
        Author: Ben Parees <bparees.github.com>
        Date:   Tue Apr 5 10:06:50 2016 -0400
 
Pulling image centos/ruby-22-centos7@sha256:868b933b3247900148ab3859698d382f799624cbae7ccc2d4cfea4ca8e8f5cd9 ...
Pulled 6/8 layers, 75% complete
Pulled 7/8 layers, 88% complete
Pulled 8/8 layers, 100% complete
Extracting
Step 1 : FROM centos/ruby-22-centos7@sha256:868b933b3247900148ab3859698d382f799624cbae7ccc2d4cfea4ca8e8f5cd9
 ---> a6e2b0340e98
Step 2 : USER default
 ---> Running in 88bce94794c7
 ---> 8462c60de840
Removing intermediate container 88bce94794c7
Step 3 : EXPOSE 8080
 ---> Running in 36ef2bec0959
 ---> 69441f1e3ac9
Removing intermediate container 36ef2bec0959
Step 4 : ENV RACK_ENV production
 ---> Running in 9609dc74f8df
 ---> cd5a5990ab55
Removing intermediate container 9609dc74f8df
Step 5 : ENV RAILS_ENV production
 ---> Running in 72cb5dc84e74
 ---> e4f0bae9da33
Removing intermediate container 72cb5dc84e74
Step 6 : COPY . /opt/app-root/src/
 ---> 27648710df98
Removing intermediate container 59a6545f4b2b
Step 7 : RUN scl enable rh-ruby22 "bundle install"
 ---> Running in 8580e7650c06
error: build error: failed to create endpoint jolly_mcclintock on network bridge: adding interface veth526addc to bridge
docker0 failed: could not find bridge docker0: route ip+net: no such network interface

Expected results:

build should succeed
Additional info:

Comment 1 Eric Paris 2016-10-26 18:29:54 UTC
*** Bug 1388893 has been marked as a duplicate of this bug. ***

Comment 2 Eric Paris 2016-10-26 18:34:53 UTC
*** Bug 1388288 has been marked as a duplicate of this bug. ***

Comment 3 Wang Haoran 2016-10-27 05:55:57 UTC
this is the docker version we used
rpm -qa |grep docker
docker-rhel-push-plugin-1.12.1-6.el7.x86_64
docker-common-1.12.1-6.el7.x86_64
docker-selinux-1.10.3-57.el7.x86_64
docker-1.12.1-6.el7.x86_64

Comment 4 Dan Williams 2016-10-27 15:23:18 UTC

*** This bug has been marked as a duplicate of bug 1388556 ***

Comment 5 Dan Williams 2016-10-27 15:24:02 UTC
Fixed by https://github.com/openshift/origin/pull/11588 upstream.

Comment 6 Troy Dawson 2016-10-28 20:00:03 UTC
This has been merged into ose and is in OSE v3.4.0.17 or newer.

Comment 8 Peter Ruan 2016-10-29 00:34:46 UTC
the same repeated steps works now for version:

oc v3.4.0.17+b8a03bc
kubernetes v1.4.0+776c994
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://openshift-128.lab.sjc.redhat.com:8443
openshift v3.4.0.17+b8a03bc
kubernetes v1.4.0+776c994

$ oc new-project test
$ oc new-build https://github.com/openshift/ruby-hello-world -n test
$ oc logs -f bc/ruby-hello-world
... wait for build to finish ...

pruan@dhcp-16-121 ~/hawkular $ oc get build                                              [ruby-2.3.0]
NAME                 TYPE      FROM          STATUS     STARTED          DURATION
ruby-hello-world-1   Docker    Git@e79d887   Complete   10 minutes ago   9m53s

Comment 9 Antonio Murdaca 2016-10-31 08:19:48 UTC
*** Bug 1388883 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2017-01-18 12:45:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0066