Fn::GetAtt works incorrect when validating block_device_mapping
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
Thomas Herve |
Bug Description
Step to reproduce the problem:
1. template as below:
heat_template_
parameters:
key_name: {type: string, default: heat_key}
flavor: {type: string, default: m1.small}
image_id: {type: string, default: c687fd63-
availability_
resources:
a:
type: OS::Nova::Server
properties:
flavor: {Ref: flavor}
key_name: {Ref: key_name}
block_
- device_name: vda
user_data:
Fn::Base64: '80'
disk:
type: OS::Cinder::Volume
properties:
size: 2
imageRef: {Ref: image_id}
availabil
2. heat stack-create -f ....
Error found: Either volume_id or snapshot_id must be specified for device mapping vda
If we change:
to
the error will disappear.
Final solution:
Disable volume_id: {'Fn::GetAtt': [disk, id]} in code and use volume_id: {Ref: disk} instead.
Changed in heat: | |
assignee: | nobody → Jun Jie Nan (nanjj) |
description: | updated |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | havana-rc1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/48216
Review: https:/