Parse error/NoMatchingFunctionException when using minus sign in a heat template
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Murano |
Fix Released
|
High
|
Stan Lagun | ||
Kilo |
Won't Fix
|
High
|
Stan Lagun | ||
Liberty |
Fix Released
|
High
|
Stan Lagun | ||
Mitaka |
Fix Released
|
High
|
Stan Lagun |
Bug Description
when we are using minus sign in a heat template output field name we have encountered the following problems
1.when the word "in" is following a - we get 'Parse error: unexpected 'in' at position 26 of expression '$.tier-
2.when we use "in*" word after the minus sign we get [yaql.language.
we have isolated the issue into simple templates below
#OK
heat_template_
outputs:
tier_
description: null
value:
get_attr: [server, first_address]
parameters:
flavor:
constraints:
- {custom_constraint: nova.flavor}
default: LARGE_1
type: string
image:
constraints:
- {custom_constraint: glance.image}
default: centos-6-web-v1
type: string
network:
constraints:
- {custom_constraint: neutron.network}
default: PUBLIC_NET_NODE_A
type: string
resources:
server:
properties:
flavor: {get_param: flavor}
image: {get_param: image}
name: server1
networks:
- network: {get_param: network}
type: OS::Nova::Server
#OK
heat_template_
outputs:
tier-
description: null
value:
get_attr: [server, first_address]
parameters:
flavor:
constraints:
- {custom_constraint: nova.flavor}
default: LARGE_1
type: string
image:
constraints:
- {custom_constraint: glance.image}
default: centos-6-web-v1
type: string
network:
constraints:
- {custom_constraint: neutron.network}
default: PUBLIC_NET_NODE_A
type: string
resources:
server:
properties:
flavor: {get_param: flavor}
image: {get_param: image}
name: server1
networks:
- network: {get_param: network}
type: OS::Nova::Server
#FAILS 'Parse error: unexpected 'in' at position 26 of expression '$.tier-
heat_template_
outputs:
tier-
description: null
value:
get_attr: [server, first_address]
parameters:
flavor:
constraints:
- {custom_constraint: nova.flavor}
default: LARGE_1
type: string
image:
constraints:
- {custom_constraint: glance.image}
default: centos-6-web-v1
type: string
network:
constraints:
- {custom_constraint: neutron.network}
default: PUBLIC_NET_NODE_A
type: string
resources:
server:
properties:
flavor: {get_param: flavor}
image: {get_param: image}
name: server1
networks:
- network: {get_param: network}
type: OS::Nova::Server
#FAILS [yaql.language.
heat_template_
outputs:
tier-
description: null
value:
get_attr: [server, first_address]
parameters:
flavor:
constraints:
- {custom_constraint: nova.flavor}
default: LARGE_1
type: string
image:
constraints:
- {custom_constraint: glance.image}
default: centos-6-web-v1
type: string
network:
constraints:
- {custom_constraint: neutron.network}
default: PUBLIC_NET_NODE_A
type: string
resources:
server:
properties:
flavor: {get_param: flavor}
image: {get_param: image}
name: server1
networks:
- network: {get_param: network}
type: OS::Nova::Server
summary: |
- problems when using minus sign in a heat template + Parse error/NoMatchingFunctionException when using minus sign in a heat + template |
Changed in murano: | |
importance: | Undecided → High |
milestone: | none → mitaka-1 |
Changed in murano: | |
status: | Fix Committed → Fix Released |
see this Gist that may clarify /gist.github. com/tshtilman/ 80667c9ac01b634 f6ad4
https:/