Heat environments don't work for local files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Nikunj Aggarwal |
Bug Description
There is an issue with environment files (and heat templates which contain a file reference to a nested stack directly), which means that they don't work via Horizon.
The issue is you pass a template and optionally an environment file to Horizon via the file dialog, but Horizon doesn't have any way to resolve the file references and populate the "files" part of the API call to create the stack.
Additionally, the environment is not passed at all when trying to create the stack, so template validation actually fails before you hit the problem above.. ;)
Here are some simple examples which demonstrate the problem:
In all of the following examples, a default nova keypair of "stack_key" is expected, as is a glance image of "cirros-
1. Template referencing a nested stack directly (no environment)
This can be launched on the CLI via:
heat --debug template-validate -f server_
heat --debug stack-create test1 -f server_
The --debug will show the content of the API call, which should hopefully help see what is missing from the horizon call (files section missing from the create)
2. Template referencing nested stack via environment
This can be launched on the CLI via:
heat --debug template-validate -f server_
heat --debug stack-create test2 -f server_
Currently it's not possible to launch either stack via horizon, unless the local file references are replaced with URLs.
Changed in horizon: | |
assignee: | nobody → Jordan OMara (jomara) |
Changed in horizon: | |
importance: | Undecided → High |
tags: | added: heat |
Changed in horizon: | |
status: | In Progress → Fix Committed |
Changed in horizon: | |
milestone: | none → juno-3 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | juno-3 → 2014.2 |
Changed in horizon: | |
assignee: | Jordan OMara (jomara) → Nikunj Aggarwal (nikunj2512) |
Correction "Additionally, the environment is not passed at all when trying to *validate* the stack"