Openshift 使用退出代码109指定的盒带无效

Openshift 使用退出代码109指定的盒带无效,openshift,Openshift,我想使用REST API Openshift创建应用程序我使用smarterclayton盒带执行以下curl命令: curl -k -X POST https://openshift.redhat.com/broker/rest/domains/jhaopenshift/applications --user "user@gmail.com:passwd" --data "name=myapp&cartridge=https://github.com/smarterclayton/

我想使用REST API Openshift创建应用程序我使用smarterclayton盒带执行以下curl命令:

curl -k -X POST https://openshift.redhat.com/broker/rest/domains/jhaopenshift/applications 
--user "user@gmail.com:passwd" 
--data "name=myapp&cartridge=https://github.com/smarterclayton/openshift-cdk-cart/blob/master/metadata/manifest.yml&scale=false"
但我仍然有无效的墨盒错误:

{
"api_version":1.6,
"data":null,
"messages":[{"exit_code":109,
"field":"cartridge",
"index":null,
"severity":"error",
"text":"Invalid cartridge 'https://github.com/smarterclayton/openshift-cdk-cart/blob/master/metadata/manifest.yml' specified."}],
"status":"unprocessable_entity",
"supported_api_versions":[1.0,1.1,1.2,1.3,1.4,1.5,1.6],
"type":null,"version":"1.6"
}
使用-H“Accept:application/xml”选项,我可以得到以下结果:

curl: (6) Could not resolve host: Accept
curl: (6) Could not resolve host: POST
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
root@localhost and inform them of the time the error occurred,   
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at openshift.redhat.com Port 80</address>
</body></html>
curl:(6)无法解析主机:接受
curl:(6)无法解析主机:POST
500内部服务器错误
内部服务器错误
服务器遇到内部错误或错误
配置错误,无法完成
你的要求

请与服务器管理员联系, root@localhost并通知他们错误发生的时间, 你可能做的任何事都可能 导致错误的原因

有关此错误的详细信息,请参阅 在服务器错误日志中


openshift.redhat.com端口80上的Apache/2.2.15(Red Hat)服务器
有没有办法修复此错误?

这应该可以:

curl -k -X POST https://openshift.redhat.com/broker/rest/domains/jhaopenshift/applications --user "user:pass" --data "name=myapp&cartridge[url]=https://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-cdk-cart&scale=false"

您需要在cartridge参数之后提供[url],您还需要指向包含源url元素的manifest.yml文件,或者使用cartridge反射器指向部分github url,格式为user/repo

非常感谢,现在一切都正常运行非常感谢您的支持