Bug 1247461 - Could not create application using xpass-template
Summary: Could not create application using xpass-template
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Ben Parees
QA Contact: Gaoyun Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-28 04:46 UTC by Wei Sun
Modified: 2015-11-23 14:44 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 14:44:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLOUD-191 0 Major Closed templates use wrong GitHub capitalization for trigger type value 2016-10-25 10:01:15 UTC

Description Wei Sun 2015-07-28 04:46:54 UTC
Description of problem:
Log in web console,try to create application using xpass-template on web console.Such as try to create application using eap6-amq-persistent-sti template,but could not create the application successfully for the error "Cannot create BuildConfig eap-app. BuildConfig "eap-app" is invalid: [triggers[0].type: invalid value 'Github': invalid trigger type, spec.source.git.uri: required value]"

Version-Release number of selected component (if applicable):
 openshift version
openshift v3.0.1.0-503-g7cc6deb
kubernetes v1.0.0


How reproducible:
Always

Steps to Reproduce:
1.Log in web console
2.Create a project
3.Create an application using eap6-amq-persistent-sti  template

Actual results:
3.Failed to create the application for the error "Cannot create BuildConfig eap-app. BuildConfig "eap-app" is invalid: [triggers[0].type: invalid value 'Github': invalid trigger type, spec.source.git.uri: required value]"

Expected results:
Could create the application successfully

Additional info:

Comment 2 Brenton Leanhardt 2015-07-28 12:30:27 UTC
All the xpaas templates seem to be setting up a Github trigger the same way.  Can you check if they are correct?

Comment 3 Ben Parees 2015-07-28 12:36:07 UTC
The value needs to be either "github" or "GitHub" and not "Github"

https://github.com/openshift/origin/blob/master/pkg/build/api/types.go#L376-L389

assigning to Rob who can fix the original templates, but, Scott, if we're shipping a copy maybe we can fix our copy in the meantime?

Comment 4 Brenton Leanhardt 2015-07-28 12:41:56 UTC
I'll update ansible and ship it for the installer.

Comment 5 Brenton Leanhardt 2015-07-28 12:49:37 UTC
https://github.com/openshift/openshift-ansible/pull/398

Comment 6 Brenton Leanhardt 2015-07-28 13:06:23 UTC
Sun Wei, I've updated the master branch of our ansible repo and pushed the change to install.openshift.com.  Would you mind testing once again?

Comment 7 Wei Sun 2015-07-29 01:12:58 UTC
Try to test this bug using the latest env,still could not create the application using xpass templates.Now the error is :

Cannot create BuildConfig eap-app. BuildConfig "eap-app" is invalid: spec.source.git.uri: required value

Cannot create BuildConfig jws-app. BuildConfig "jws-app" is invalid: spec.source.git.uri: required value

Comment 8 Brenton Leanhardt 2015-07-29 13:12:40 UTC
In the BuildConfig spec I see:

                "source": {
                    "type": "Git",
                    "git": {
                        "uri": "${GIT_URI}",
                        "ref": "${GIT_REF}"
                    },
                    "contextDir":"${GIT_CONTEXT_DIR}"
                },

In the template parameters I see:
        {   
            "description": "Git source URI for application",
            "name": "GIT_URI"
        },

Is this how it's supposed to be done?

Comment 9 Ben Parees 2015-07-29 14:27:12 UTC
In this case "yes", there is no default URI being provided for those templates.  you need to supply the URI of a jee repo that can be built for the GIT_URI parameter.

this one should work:
https://github.com/bparees/openshift-jee-sample

we will be trying to update the templates to all have valid URIs by default, but for now this is working correctly.

Comment 10 Ben Parees 2015-07-30 01:47:33 UTC
fixing the actual templates here:
https://github.com/jboss-openshift/application-templates/pull/27

Comment 11 Wei Sun 2015-07-30 02:56:57 UTC
Now could create the application using  templates if I edit some parameters.
So verified this bug.

# openshift version
openshift v3.0.1.0-503-g7cc6deb
kubernetes v1.0.0

Comment 12 JBoss JIRA Server 2015-08-03 16:57:18 UTC
Rob Cernich <rcernich> updated the status of jira CLOUD-191 to Resolved

Comment 13 JBoss JIRA Server 2015-10-01 14:28:31 UTC
Kevin Conner <kevin.conner> updated the status of jira CLOUD-191 to Closed


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