The translation of server's IP as output is error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Heat Translator |
In Progress
|
Undecided
|
Ukesh |
Bug Description
1.In the template version of 2013-05-23, the intrinsic function of get_attr doesn't support keys or indexes, it requires 2014-10-16 or higher, the syntax is below:
get_attr:
<resource name>
<attribute name>
<key/index 1> (optional) not support in 2013-05-23
<key/index 2> (optional) not support in 2013-05-23
The translation about compute node's ip address only uses two parameters currently.
2.So the translation result doesn't work presently, here is a simple example.
Tosca definition is below.
tosca_
node_templates:
server:
type: tosca.nodes.Compute
# omitted here for brevity
outputs:
server_ip:
ip: { get_attribute: [server, private_address] }
The translation result:
heat_
resources:
server:
type: OS::Nova::Server
# omitted here for brevity
outputs:
website_url:
ip:
- server
- networks
- private
- 0
When deploy the result with hot, the output is None.
3.There are two solutions, one is modify the output as below:
ip:
get_attr:
- server
- networks
or below:
ip:
get_attr:
- server
- addresses
And the other is upgrade the version of Hot to 2014-10-16 or higher.
I recommend the second.
Changed in heat-translator: | |
assignee: | nobody → Ukesh (ukeshkumar) |
Fix proposed to branch: master /review. openstack. org/370720
Review: https:/