allowed value of number parameter does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Thomas Spatzier |
Bug Description
During coverage tests for Heat , i found allowed_value constraint do not work for number type. Following is my template:
heat_template_
description: Simple template to deploy a single compute instance
parameters:
para_number:
type: number
label: test number
description: number description
hidden: false
default: 80
constraints:
- allowed_values: [80,8080,8888]
resources:
my_instance1:
type: OS::Nova::Server
properties:
key_name: heat_key
image: cirros-
flavor: m1.tiny
outputs:
ip_address:
description: ip address
value: { get_attr: [my_instance1,
para_str:
description: para_str
value: { get_param: para_str }
para_number:
description: para_number
value: { get_param: para_number }
when i create stack assignning 8080 to para_number ( client command: heat stack-create mystack -f para_number.yaml -P"para_
Error: "8080" is not a allowed value [80,8080,8888]
summary: |
- allowed vlaue of number parameter do not work + allowed value of number parameter does not work |
Changed in heat: | |
assignee: | Thomas Herve (therve) → Thomas Spatzier (thomas-spatzier) |
Changed in heat: | |
milestone: | juno-1 → juno-2 |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | juno-2 → 2014.2 |
We fail to change the integer to a number. It might a recent regression, I'm pretty sure it used to work.