Bug 1658445 - [NextGenInstall]Failed to do custom build
Summary: [NextGenInstall]Failed to do custom build
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.1.0
Assignee: Ben Parees
QA Contact: Wenjing Zheng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-12 07:03 UTC by Wenjing Zheng
Modified: 2019-03-12 14:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-12 15:03:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Wenjing Zheng 2018-12-12 07:03:44 UTC
Description of problem:
Fail to do custom build with cusom build template https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-custombuild.json:
$ oc logs pods/ruby-sample-build-2-build
time="2018-12-12T05:52:11Z" level=error msg="Can't add file /tmp/docker-build-git882518138/.git/logs/refs/heads/master to tar: io: read/write on closed pipe" 
time="2018-12-12T05:52:11Z" level=error msg="Can't close tar writer: io: read/write on closed pipe" 
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Version-Release number of selected component (if applicable):
$ bin/openshift-install version
bin/openshift-install v0.5.0-master-83-g7328b615d025147569fd66a76c3293440e74545f
Terraform v0.11.10

How reproducible:
always

Steps to Reproduce:
1.oc process -f https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-custombuild.json | oc create -f -
2.oc get builds
3.

Actual results:
$ oc get builds
NAME                  TYPE      FROM      STATUS                        STARTED          DURATION
ruby-sample-build-1   Custom    Git       Failed (GenericBuildFailed)   10 minutes ago   30s
ruby-sample-build-2   Custom    Git       Failed (GenericBuildFailed)   4 minutes ago    3s

Expected results:
Should be succeed

Additional info:

Comment 1 Ben Parees 2018-12-12 15:03:41 UTC
openshift 4.0 nodes do not have docker sockets, thus any custom build that attempts to reference the docker socket will fail.  The only custom builds that can work are ones that do not require docker socket access.

We are tracking updating the docs/recommendations around this here:
https://jira.coreos.com/browse/DEVEXP-138


Note You need to log in before you can comment on or make changes to this bug.