Bug 1375074 - [dev-preview-prod] build always failed when using default template "dancer-mysql-example"
Summary: [dev-preview-prod] build always failed when using default template "dancer-my...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Vu Dinh
QA Contact: Bing Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-12 06:08 UTC by Bing Li
Modified: 2016-10-04 13:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-04 13:06:42 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Bing Li 2016-09-12 06:08:03 UTC
Description of problem:
When creating new app using default template "dancer-mysql-example", build would always fail. Seems this template hasn't been updated in PROD, same with STG.

Version-Release number of selected component (if applicable):
dev-preview-prod
OpenShift Master: v3.2.1.15-8-gc402626
Kubernetes Master: v1.2.0-36-g4a3f9c5

How reproducible:
Always

Steps to Reproduce:
1. Login to webconsole of dev-prevew-prod environment;
2. Choose the default template "dancer-mysql-example" to create new app;
3. Check the build's log.

Actual results:
3. Build would fail:
$ oc get pod
NAME                           READY     STATUS    RESTARTS   AGE
dancer-mysql-example-1-build   0/1       Error     0          15m
database-1-ovmmf               1/1       Running   0          15m
$ oc logs dancer-mysql-example-1-build
.....
---> Installing modules from cpanfile ...
E0912 01:13:32.669384       1 util.go:91] 
E0912 01:13:32.669405       1 util.go:91] gzip: stdin: not in gzip format
E0912 01:13:32.687578       1 util.go:91] /usr/bin/tar: Child returned status 1
E0912 01:13:32.687603       1 util.go:91] /usr/bin/tar: Error is not recoverable: exiting now
E0912 01:13:32.687683       1 util.go:91] ! Failed to unpack CPAN: no directory
E0912 01:13:32.687740       1 util.go:91] ! Failed to fetch distribution 
--> Working on http://mirror.ops.rhcloud.com/mirror/perl/CPAN/
Fetching http://mirror.ops.rhcloud.com/mirror/perl/CPAN/ ... OK
--> Working on Module::CoreList
E0912 01:13:32.746781       1 util.go:91] /usr/bin/wget: unrecognized option '--mirror/authors/id/B/BI/BINGOS/Module-CoreList-5.20160820.tar.gz'
E0912 01:13:32.746950       1 util.go:91] Usage: wget [OPTION]... [URL]...
E0912 01:13:32.746978       1 util.go:91] 
E0912 01:13:32.746986       1 util.go:91] Try `wget --help' for more options.
E0912 01:13:32.747511       1 util.go:91] ! Download --mirror/authors/id/B/BI/BINGOS/Module-CoreList-5.20160820.tar.gz failed. Retrying ... 
Fetching --mirror/authors/id/B/BI/BINGOS/Module-CoreList-5.20160820.tar.gz ... FAIL
E0912 01:13:32.757918       1 util.go:91] /usr/bin/wget: unrecognized option '--mirror/authors/id/B/BI/BINGOS/Module-CoreList-5.20160820.tar.gz'
E0912 01:13:32.757937       1 util.go:91] Usage: wget [OPTION]... [URL]...
E0912 01:13:32.757945       1 util.go:91] 
E0912 01:13:32.757952       1 util.go:91] Try `wget --help' for more options.
E0912 01:13:32.757958       1 util.go:91] ! Download --mirror/authors/id/B/BI/BINGOS/Module-CoreList-5.20160820.tar.gz failed. Retrying ... 
E0912 01:13:32.757978       1 util.go:91] /usr/bin/wget: unrecognized option '--mirror/authors/id/B/BI/BINGOS/Module-CoreList-5.20160820.tar.gz'
E0912 01:13:32.757987       1 util.go:91] Usage: wget [OPTION]... [URL]...
E0912 01:13:32.757994       1 util.go:91] 
E0912 01:13:32.758000       1 util.go:91] Try `wget --help' for more options.
E0912 01:13:32.758007       1 util.go:91] ! Download --mirror/authors/id/B/BI/BINGOS/Module-CoreList-5.20160820.tar.gz failed. Retrying ... 
E0912 01:13:32.758015       1 util.go:91] ! Failed to download --mirror/authors/id/B/BI/BINGOS/Module-CoreList-5.20160820.tar.gz
E0912 01:13:32.758021       1 util.go:91] ! Failed to fetch distribution Module-CoreList-5.20160820
I0912 01:13:34.610251       1 cleanup.go:23] Removing temporary directory /tmp/s2i-build663192273
I0912 01:13:34.610273       1 fs.go:156] Removing directory '/tmp/s2i-build663192273'
F0912 01:13:34.613067       1 builder.go:204] Error: build error: non-zero (13) exit code from registry.access.redhat.com/rhscl/perl-520-rhel7@sha256:2a8f9b9375834a4d0e6cd48c60513ab718dcb1b2e8c6dd0fd52864ccf14c3ce2

Expected results:
3. Build should succeed and dependencies should be downloaded from the mirror specified in env var "CPAN_MIRROR": http://mirror.ops.rhcloud.com/mirror/perl/CPAN/

Additional info:
$ oc get template dancer-mysql-example -n openshift -o json
.....
                "strategy": {
                    "type": "Source",
                    "sourceStrategy": {
                        "from": {
                            "kind": "ImageStreamTag",
                            "namespace": "openshift",
                            "name": "perl:5.20"
                        },
                        "env": [
                            {
                                "name": "CPAN_MIRROR",
                                "value": "--mirror http://mirror.ops.rhcloud.com/mirror/perl/CPAN/"
                            }
                        ]
                    }
                },
.....

Comment 1 Abhishek Gupta 2016-09-20 23:21:34 UTC
This has been fixed in devpreview STG

Comment 2 Bing Li 2016-09-21 03:06:13 UTC
Template "dancer-mysql-example" works well now in dev-preview-stg.
Move this bug to verified.

$ oc get template dancer-mysql-example -n openshift -o json
....    
            "strategy": {
                    "type": "Source",
                    "sourceStrategy": {
                        "from": {
                            "kind": "ImageStreamTag",
                            "namespace": "openshift",
                            "name": "perl:5.20"
                        },
                        "env": [
                            {
                                "name": "CPAN_MIRROR",
                                "value": "${CPAN_MIRROR}"
                            }
                        ]
                    }
                },
....
        {
            "name": "CPAN_MIRROR",
            "displayName": "Custom CPAN Mirror URL",
            "description": "The custom CPAN mirror URL"
        }


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