Bug 1185730 - [origin_devexp_416] Failed to do sti build with custom image which has user defined
Summary: [origin_devexp_416] Failed to do sti build with custom image which has user d...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Cesar Wong
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-26 07:33 UTC by DeShuai Ma
Modified: 2015-05-15 02:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 19:55:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description DeShuai Ma 2015-01-26 07:33:37 UTC
Description of problem:
The image deshuai/ruby-20-centos is just a copy of openshift/ruby-20-centos with the tar package removed.
The image deshuai/wildfly-8-centos is just a copy of openshift/wildfly-8-centos with the tar package removed.
When I use the "deshuai/ruby-20-centos" or "deshuai/wildfly-8-centos" to do sti build , it failed.But when I add the tar back to the base image, it can build successfully. when don't have the tar, but remove the default user in the image, it can also build successfully.

Version-Release number of selected component (if applicable):
devenv-fedora_593

How reproducible:
Always

Steps to Reproduce:
1. [fedora@ip-10-230-176-209 tmp]$ sti build git://github.com/pmorie/simple-ruby deshuai/ruby-20-centos test-ruby-app -s https://raw.githubusercontent.com/openshift/ruby-20-centos/master/.sti/bin
I0126 05:30:37.077156 23326 build.go:71] Building test-ruby-app
Cloning into '/tmp/sti275781904/upload/src'...
remote: Counting objects: 9, done.
remote: Total 9 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (9/9), done.
Resolving deltas: 100% (1/1), done.
Checking connectivity... done.
W0126 05:30:40.205613 23326 build.go:114] Image deshuai/ruby-20-centos does not have tar! Performing additional build to add the scripts and sources.
E0126 05:31:02.049975 23326 main.go:184] An error occurred: assemble for test-ruby-app failed:
E0126 05:31:02.050021 23326 main.go:185] Suggested solution: check the assemble script output for errors
E0126 05:31:02.050031 23326 main.go:191] If the problem persists consult the docs at https://github.com/openshift/source-to-image/tree/master/docs.Eventually reach us on freenode #openshift or file an issue at https://github.com/openshift/source-to-image/issues providing us with a log from your build using --loglevel=3

2. [fedora@ip-10-230-176-209 tmp]$ sti build git://github.com/bparees/openshift-jee-sample deshuai/wildfly-8-centos test-jee-app
I0126 05:39:14.152624 24348 build.go:71] Building test-jee-app
Cloning into '/tmp/sti529061109/upload/src'...
remote: Counting objects: 29, done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 29 (delta 1), reused 29 (delta 1)
Receiving objects: 100% (29/29), 22.84 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Checking connectivity... done.
W0126 05:39:17.412344 24348 build.go:114] Image deshuai/wildfly-8-centos does not have tar! Performing additional build to add the scripts and sources.
E0126 05:39:40.042002 24348 main.go:184] An error occurred: assemble for test-jee-app failed:
E0126 05:39:40.042049 24348 main.go:185] Suggested solution: check the assemble script output for errors
E0126 05:39:40.042059 24348 main.go:191] If the problem persists consult the docs at https://github.com/openshift/source-to-image/tree/master/docs.Eventually reach us on freenode #openshift or file an issue at https://github.com/openshift/source-to-image/issues providing us with a log from your build using --loglevel=3

Actual results:
1.sti build failed.
2.sti build failed.

Expected results:
1.sti build successfully.
2.sti build successfully.

Additional info:
http://ur1.ca/jjjhe
http://ur1.ca/jjjhq
When I remove the user in the image , it can build successfully.

Comment 1 Wenjing Zheng 2015-01-26 10:46:30 UTC
If the user part is removed in the image, it can build successfully.

Comment 2 Cesar Wong 2015-02-05 00:58:59 UTC
Fix delivered https://github.com/openshift/source-to-image/pull/119

Comment 3 DeShuai Ma 2015-02-05 04:55:16 UTC
Test on devenv-fedora_710, this issue has fixed.


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