在Murano的HOT template中调用其他文件(nested files)
2016-01-14 16:23
411 查看
在使用Murano去compose一个关于mesos和marathon的HOT的package时,发现这样一个问题:如果这个HOT的template中调用了其他的文件,就会出现
这样的错误。
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/
这个目录下。
注意:目录拼写不要出错,大小写敏感。
"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/
这个目录下。
注意:目录拼写不要出错,大小写敏感。
相关文章推荐
- Yii2 framework学习笔记(六) -- RBAC
- SQL Server数据库备份的镜像
- 设单链表中存放n个字符,试设计一个算法,使用栈推断该字符串是否中心对称
- F5记录连接表脚本
- 计算输入框的字符个数
- go基本语法学习笔记之类型
- 8个hybrid app开发工具
- namespace的用法
- eclipse的.properties文件中文显示问题
- SharePoint Server 2016 Beta 2 中的新增功能(1)
- linux mysql-bin二进制日志清除
- HDU 1020 Encoding
- Iframe使用总结
- Mysql 关键字-保留字
- 基于netty的文件上传于下载
- 一个防止误删MSSQL数据库的方法
- Xcode-调试断点不能停在代码区终极解决方案
- receiving PO system throws an error “The transactions on voucher do not balance as per XXXXX
- nginx location反向代理问题
- httpd-2.4的编译安装