Only the first get_attr works in the "params" part of str_replace.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Incomplete
|
Undecided
|
lavanya |
Bug Description
server001_net0:
type: OS::Neutron::Port
properties:
name:
template: $name-net0
params:
$name: {get_param: name}
network_id: {get_param: net0}
fixed_ips:
- ip_address: {get_param: [ static_
server001_net2:
type: OS::Neutron::Port
properties:
name:
template: $name-net2
params:
$name: {get_param: name}
network_id: {get_param: net2}
fixed_ips: [
server001:
type: OS::Nova::Server
properties:
name:
template: $hostname
params:
availabil
flavor: {get_param: flavor}
config_drive: True
key_name: {get_param: key_name}
image: {get_param: image}
user_
user_data:
template: $user_str
params:
Where static_net0_ip_list and static_net2_ip_list are as follows: static_
ISSUES: This" $ipaddress: {get_param: [server001_net0, fixed_ips, 0, "ip_address"]}" cannot setup the valuse for ipaddress. It shows that the value of ipaddress is null
Could you please help to have a check? Thank you very much.
Changed in heat-templates: | |
assignee: | nobody → lavanya (lavanya-annam) |
description: | updated |
Changed in heat-templates: | |
status: | New → Incomplete |
affects: | heat-templates → heat |
Changed in heat: | |
milestone: | none → no-priority-tag-bugs |
If you want to setup the value for $ipaddress, you need mention this variable in template like this
template: $user_str, $ipaddress
By modifying the template statement you may setup the value for $ipaddress. Try that statement, let me know if you still face any issues.