update fails for nested stack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
Angus Salkeld | ||
Juno |
Fix Released
|
High
|
Zane Bitter |
Bug Description
A stack has failed creation due to an issue with a nested template. After trying stack-update to try and fix it, the update failed with "stack not created"
Steps to reproduce:
1. nova keypair-add keypair_heat
2. Using below templates, run heat stack-create test-001 -f test_fail.yaml
3. nova keypair-delete keypair_heat
4. heat stack-update with the same template
Heat starts the updating progress but fails because 'Error: Cannot update server, stack not created'. If this is as designed, then it should be picked at validation, and update should not start.
== log: ==
2015-01-15 06:28:53.476 2364 INFO heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
2015-01-15 06:28:53.476 2364 TRACE heat.engine.
== templates: ==
test_fail.yaml:
heat_template_
parameters:
flavor:
type: string
default: m1.tiny
resources:
keypair:
type: OS::Nova::KeyPair
properties:
name: keypair_heat
save_
server:
type: server_fail.yaml
properties:
flavor: {get_param: flavor}
key_name: {get_resource: keypair}
depends_on: keypair
server_fail.yaml:
heat_template_
parameters:
image:
type: string
default: cirros-
key_name:
type: string
flavor:
type: string
availability_
type: string
default: nova
resources:
server:
type: OS::Nova::Server
properties:
availabil
flavor: { get_param: flavor }
image: { get_param: image }
key_name: { get_param: key_name }
Changed in heat: | |
assignee: | nobody → Song Li (lisong-cruise) |
assignee: | Song Li (lisong-cruise) → nobody |
Changed in heat: | |
assignee: | nobody → Angus Salkeld (asalkeld) |
Changed in heat: | |
milestone: | none → kilo-2 |
tags: | added: juno-backport-potential |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | kilo-2 → 2015.1.0 |
tags: |
added: in-stable-juno removed: juno-backport-potential |
Heat version is from Sat Jan 10 14:19:40 2015 (commit 15043074b1cc92e 720a570936b7617 06dcd86c58) on a devstack environment