Bug 1458200 - Failed to override builder image scripts by url scripts in buildConfig under proxy
Summary: Failed to override builder image scripts by url scripts in buildConfig under ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Ben Parees
QA Contact: Dongbo Yan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-02 09:47 UTC by Dongbo Yan
Modified: 2017-08-16 19:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 15:25:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 09:02:50 UTC

Description Dongbo Yan 2017-06-02 09:47:27 UTC
Description of problem:
Failed to override builder image scripts by url scripts in buildConfig under proxy

Version-Release number of selected component (if applicable):
oc v3.6.88
kubernetes v1.6.1+5115d708d7
features: Basic-Auth GSSAPI Kerberos SPNEGO

openshift v3.6.88
kubernetes v1.6.1+5115d708d7

How reproducible:
Always

Steps to Reproduce:
1.Create a buildConfig
 $ oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/build/test-buildconfig.json 
2.Input script in buildConfig
 $ oc patch buildconfig ruby-sample-build -p \{\"spec\":\ \{\"strategy\":\ \{\"sourceStrategy\":\ \{\"scripts\":\ \"https://raw.githubusercontent.com/openshift-qe/builderimage-scripts/master/bin\"\}\}\}\}
3.Input an available proxy
 $ oc patch buildconfig ruby-sample-build -p \{\"spec\":\ \{\"strategy\":\ \{\"sourceStrategy\":\ \{\"env\":\ \[\{\"name\":\"http_proxy\",\"value\":\"http://<proxy>:3128\"\}\]\}\}\}\}
4.Start a new build

Actual results:
Build fails

Expected results:
Build succeed

Additional info:
oc logs build/ruby-sample-build-2 --config=/home/slave1/workspace/Runner-v3/workdir/os1-v3-web-jenkins-slaves-10-0/dev_preview_stg_whenth.kubeconfig
      Cloning "https://github.com/openshift/ruby-hello-world.git" ...
      	Commit:	022d87e4160c00274b63cdad7c238b5c6a299265 (Merge pull request #58 from junaruga/feature/fix-for-ruby24)
      	Author:	Ben Parees <bparees.github.com>
      	Date:	Fri Mar 3 15:29:12 2017 -0500
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x229e2e6]
      
      goroutine 1 [running]:
      panic(0x4c9c3a0, 0xc420014060)
      	/usr/lib/golang/src/runtime/panic.go:500 +0x1a1
      github.com/openshift/origin/pkg/build/builder.(*S2IBuilder).Build(0xc420a98e70, 0x0, 0x0)
      	/builddir/build/BUILD/atomic-openshift-git-0.6db55ad/_output/local/go/src/github.com/openshift/origin/pkg/build/builder/sti.go:197 +0x3816
      github.com/openshift/origin/pkg/build/builder/cmd.s2iBuilder.Build(0xa9d6d40, 0xc4200ea820, 0x55642b9, 0x1b, 0xa9cb680, 0xc420f6c6a0, 0xc420a9e580, 0x7f8bd603ec20, 0xc420f6c6e0, 0xc420acf740, ...)
      	/builddir/build/BUILD/atomic-openshift-git-0.6db55ad/_output/local/go/src/github.com/openshift/origin/pkg/build/builder/cmd/builder.go:224 +0x1b9
      github.com/openshift/origin/pkg/build/builder/cmd.(*s2iBuilder).Build(0xc683cd8, 0xa9d6d40, 0xc4200ea820, 0x55642b9, 0x1b, 0xa9cb680, 0xc420f6c6a0, 0xc420a9e580, 0x7f8bd603ec20, 0xc420f6c6e0, ...)
      	<autogenerated>:3 +0xcf
      github.com/openshift/origin/pkg/build/builder/cmd.(*builderConfig).execute(0xc420e4b9a0, 0xa97fe80, 0xc683cd8, 0x0, 0x0)
      	/builddir/build/BUILD/atomic-openshift-git-0.6db55ad/_output/local/go/src/github.com/openshift/origin/pkg/build/builder/cmd/builder.go:176 +0x2d5
      github.com/openshift/origin/pkg/build/builder/cmd.runBuild(0xa97ecc0, 0xc42002a018, 0xa97fe80, 0xc683cd8, 0xc683cd8, 0xc42002a018)
      	/builddir/build/BUILD/atomic-openshift-git-0.6db55ad/_output/local/go/src/github.com/openshift/origin/pkg/build/builder/cmd/builder.go:232 +0x6a
      github.com/openshift/origin/pkg/build/builder/cmd.RunS2IBuild(0xa97ecc0, 0xc42002a018, 0xc42002a018, 0x0)
      	/builddir/build/BUILD/atomic-openshift-git-0.6db55ad/_output/local/go/src/github.com/openshift/origin/pkg/build/builder/cmd/builder.go:242 +0x6c
      github.com/openshift/origin/pkg/cmd/infra/builder.NewCommandS2IBuilder.func1(0xc4201cb200, 0xc4200144f0, 0x0, 0x1)
      	/builddir/build/BUILD/atomic-openshift-git-0.6db55ad/_output/local/go/src/github.com/openshift/origin/pkg/cmd/infra/builder/builder.go:36 +0x43
      github.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).execute(0xc4201cb200, 0xc42000c230, 0x1, 0x1, 0xc4201cb200, 0xc42000c230)
      	/builddir/build/BUILD/atomic-openshift-git-0.6db55ad/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:603 +0x439
      github.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc4201cb200, 0xc42002a008, 0xc42002a018, 0xc4201cb200)
      	/builddir/build/BUILD/atomic-openshift-git-0.6db55ad/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:689 +0x367
      github.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).Execute(0xc4201cb200, 0x13, 0xc4201cb200)
      	/builddir/build/BUILD/atomic-openshift-git-0.6db55ad/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:648 +0x2b
      main.main()
      	/builddir/build/BUILD/atomic-openshift-git-0.6db55ad/_output/local/go/src/github.com/openshift/origin/cmd/openshift/openshift.go:36 +0x196

Comment 1 Dongbo Yan 2017-06-02 09:51:05 UTC
If I don't set proxy env variable, build will succeed

Comment 2 Ben Parees 2017-06-14 20:03:31 UTC
PR to fix is here:
https://github.com/openshift/origin/pull/14654

Comment 3 Xiaoli Tian 2017-06-15 07:09:43 UTC
OpenShift Online Preview has been decommissioned, go to https://manage.openshift.com/ for using OpenShift Online starter cluster

Comment 4 Ben Parees 2017-06-15 13:04:56 UTC
This is still a valid bug.  Switching product to OCP.

Comment 5 Ben Parees 2017-06-21 12:47:34 UTC
Sam I would have expected this to have moved to on_qa by now since OCP puddles have been built, any idea what's going on?

Comment 7 Dongbo Yan 2017-06-23 09:10:10 UTC
Verified
openshift v3.6.122
kubernetes v1.6.1+5115d708d7


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