Invalid attribute reference in outputs suppresses all stack-show output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Sergey Kraynev |
Bug Description
If an invalid attribute is referenced in the outputs section of a Heat template, the stack can be created with no reported errors, but then "stack-show" will fail.
Example template:
-----
heat_template_
description: |
A very simple template to demonstrate referencing a bogus attribute
resources:
compute_instance:
type: OS::Nova::Server
properties:
...
outputs:
compute_
value: { get_attr: [compute_instance, some_bogus_attrib]}
-----
In the above example the reference to "some_bogus_attrib" does not get flagged at all until you do something like "heat stack-show...", at which point all stack details are suppressed and one line of output is returned: "The Referenced Attribute (0 some_bogus_attrib) is incorrect."
The problem is twofold:
* The valid stack details should not be suppressed: I'd still like to see the information that is available
* It would be more helpful for this error to be raised earlier, say, during the template validation phase; before the stack is even spun up.
Changed in heat: | |
assignee: | nobody → Sergey Kraynev (skraynev) |
Changed in heat: | |
milestone: | none → next |
tags: | added: icehouse-rc-potential |
Changed in heat: | |
milestone: | next → none |
status: | Fix Committed → Fix Released |
We can definitely resolve static attributes in outputs. Some things aren't possible but attribute schemas can at least be checked.