[jbosstools-issues] [JBoss JIRA] (JBIDE-15261) Cannot create wordpress example
Andre Dietisheim (JIRA)
jira-events at lists.jboss.org
Fri Jul 19 09:53:26 EDT 2013
[ https://issues.jboss.org/browse/JBIDE-15261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791019#comment-12791019 ]
Andre Dietisheim commented on JBIDE-15261:
------------------------------------------
To solve this we have to make sure we add the cartridge BEFORE we provide the git-url. The REST endpoint allows us this. If you look at the parameters for the ADD_APPLICATION request you'll see that you can provide an initial cartridge(s) that gets added to the application when it is created:
{code:ADD_APPLICATION link listed in the domain resource}
"ADD_APPLICATION":{
"href":"https://openshift.redhat.com/broker/rest/domains/foobars/applications",
"method":"POST",
"optional_params":[
{
"default_value":null,
"description":"Array of one or more cartridge names. i.e. [\"php-5.3\", \"mongodb-2.2\"]",
"name":"cartridges",
"type":"array",
"valid_options":[
"nodejs-0.6",
"jbossews-2.0",
"zend-5.6",
"ruby-1.9",
"python-3.3",
"jbossas-7",
"python-2.6",
"jenkins-1.4",
"ruby-1.8",
"python-2.7",
"jbosseap-6.0",
"diy-0.1",
"jbossews-1.0",
"php-5.3",
"perl-5.10"
]
},
{
"default_value":false,
"description":"Mark application as scalable",
"name":"scale",
"type":"boolean",
"valid_options":[
true,
false
]
},
{
"default_value":"small",
"description":"The size of the gear",
"name":"gear_profile",
"type":"string",
"valid_options":[
"small",
"medium"
]
},
{
"default_value":null,
"description":"A URL to a Git source code repository that will be the basis for this application.",
"name":"initial_git_url",
"type":"string",
"valid_options":[
]
}
],
"rel":"Create new application",
"required_params":[
{
"description":"Name of the application",
"invalid_options":[
"amentra",
"aop",
"apiviz",
"arquillian",
"blacktie",
"boxgrinder",
"byteman",
"cirras",
"cloud",
"cloudforms",
"cygwin",
"davcache",
"dogtag",
"drools",
"drools",
"ejb3",
"errai",
"esb",
"fedora",
"freeipa",
"gatein",
"git",
"gfs",
"gravel",
"guvnor",
"hibernate",
"hornetq",
"iiop",
"infinispan",
"ironjacamar",
"javassist",
"jbcaa",
"jbcd",
"jboss",
"jbpm",
"jdcom",
"jgroups",
"jmx",
"jopr",
"jrunit",
"jsfunit",
"kosmos",
"liberation",
"makara",
"mass",
"maven",
"metajizer",
"metamatrix",
"mobicents",
"mod_cluster",
"modeshape",
"mugshot",
"mysql",
"netty",
"openshift",
"osgi",
"overlord",
"ovirt",
"penrose",
"picketbox",
"picketlink",
"portletbridge",
"portletswap",
"posse",
"pressgang",
"qumranet",
"railo",
"redhat",
"resteasy",
"rhca",
"rhcds",
"rhce",
"rhcsa",
"rhcss",
"rhct",
"rhcva",
"rhel",
"rhev",
"rhq",
"rhx",
"richfaces",
"riftsaw",
"savara",
"scribble",
"seam",
"shadowman",
"shotoku",
"shrinkwrap",
"snowdrop",
"solidice",
"spacewalk",
"spice",
"steamcannon",
"stormgrind",
"switchyard",
"tattletale",
"teiid",
"tohu",
"torquebox",
"weld",
"wise",
"xnio"
],
"name":"name",
"type":"string",
"valid_options":[
]
}
]
},
{code}
> Cannot create wordpress example
> -------------------------------
>
> Key: JBIDE-15261
> URL: https://issues.jboss.org/browse/JBIDE-15261
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.1.0.Beta2
> Reporter: nan wei
> Assignee: Andre Dietisheim
> Attachments: create-wordpress-example.png, initial-build-failed.png
>
>
> Version:
> JBoss Deverloper Studio 7 Beta
> OpenShift Plugin: 2.5.0.Beta2-v20130621-1052-B65
> OpenShift Enterprise 1.2/2013-07-18.4
> How reproducible:
> always
> Steps to Reproduce:
> 1. Create an app in the JBoss Deverloper Studio.
> Name: mysqltest
> Type: PHP 5.3(php-5.3)
> Embeddable Cartridges: MySQL Database 5.1(mysql-5.1)
> 2. Click Advanced
> Add Source Code:https://github.com/openshift/wordpress-example
> !create-wordpress-example.png!
> Actual results:
> When creating an app, check mysql cartridge and add source code together, it will fail, and return the following error:
> !initial-build-failed.png!
> {code}
> Could not create application "a3"
> Could not request https://broker.ose0717.com/broker/rest/domains/nwei/applications: The initial build for the application failed. Last 10 kB of build output:
> httpd (no pid file) not running
> Could not find mysql database. Please run:
> rhc cartridge add -a a3 -c mysql-5.1
> then make a sample commit (add whitespace somewhere) and re-push
> An error occurred executing 'gear postreceive'
> For more details about the problem, try running the command again with the '--trace' option.
> {code}
> But if use rhc client, there is no such problem, it is created successfully.
> # rhc app create mysqltest1 php-5.3 mysql-5.1 --from-code=https://github.com/openshift/wordpress-example
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list