The internal create_stack interface misses 'parent' parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
Angus Salkeld | ||
Kilo |
Fix Released
|
High
|
Ethan Lynn |
Bug Description
We are working on a add-on feature utilizing heat life-cycle plugin and life cycle scheduler hints (https:/
We are using a template as below:
heat_template_
description: >
This is a very simple template that illustrates the basic features
resources:
instance:
type: OS::Heat:
properties:
resource:
type: OS::Nova::Server
properties:
image: tmpl
flavor: xxxxx
min_size: 2
max_size: 10
scale_up_policy:
type: OS::Heat:
properties:
adjustmen
auto_
cooldown: 60
scaling_
scale_
type: OS::Heat:
properties:
adjustmen
auto_
cooldown: 60
scaling_
We call 'path_in_stack()' in life cycle plugin when creating nested stack (OS::Nova::Server in the above case) to get the root stack name. The expected output should be [(None, u'x'), (u'instance', u'x-instance-
The root cause may come from the patch https:/
Changed in heat: | |
assignee: | nobody → Angus Salkeld (asalkeld) |
status: | New → Triaged |
importance: | Undecided → High |
Changed in heat: | |
milestone: | none → kilo-rc1 |
tags: | removed: kilo-rc-potential |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | liberty-rc2 → 5.0.0 |
I'll fix, but it's not so simple.
1. we have "parent_resource" returned as a part of the resource details, IMHO this is wrong as it should be a part of the stack's details (error in the API) resource_ name resource_ name to the stack table
2. even before the RPC change the api would have *always* returned None for this as it is not persisted in the DB.
3. the RPC create_stack needs a new revision to take the parent_
4. we need to have a new schema to add the parent_
5. we need to load that correctly