您的位置:首页 > 其它

在Murano的HOT template中调用其他文件(nested files)

2016-01-14 16:23 411 查看
在使用Murano去compose一个关于mesos和marathon的HOT的package时,发现这样一个问题:如果这个HOT的template中调用了其他的文件,就会出现

"invalid URL scheme,Could not fetch remote template mesosslave.yaml"


这样的错误。

HOT的例子在这:https://github.com/openstack/magnum/blob/master/magnum/templates/mesos/mesoscluster.yaml#154
https://github.com/openstack/magnum/blob/master/magnum/templates/mesos/mesoscluster.yaml#274
在这个例子中,softwareconfigure这个resource中通过get_file调用了一个.sh的脚本,但是在Murano去deploy的时候就会报上边的错误。

resourcegroup这个resource中的type:mesosslave.yaml调用也是同理。

查了好久,才知道Liberty之前版本的Murano是不支持在HOT的template中使用nested files的。

现在支持了,将文件这样改就可以了。

将要调用的文件统一放到package中的Resources/HotFiles/

这个目录下。

注意:目录拼写不要出错,大小写敏感。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: