Validation prevents indirect references in provider templates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
Randall Burt |
Bug Description
Since https:/
This works OK when the deployment and server exist in the same stack, but in the event you want to abstract the server configuration by putting SoftwareDeploym
This is breaking a pattern TripleO wish to adopt where SoftwareConfig and SoftwareDeployment resources are abstracted via provider templates to enable alternate impementations to be easily substituted.
Reproducer:
$ cat example-
heat_template_
parameters:
key_name:
type: string
default: default
flavor:
type: string
default: m1.small
image:
type: string
default: fedora-
resources:
config:
type: My::Config
properties:
server: {get_resource: server}
server:
type: OS::Nova::Server
properties:
image: {get_param: image}
flavor: {get_param: flavor}
key_name: {get_param: key_name}
user_
$ cat example-
resource_registry:
My::Config: example-
$ cat example-
heat_template_
parameters:
server:
type: string
resources:
config:
type: OS::Heat:
properties:
group: script
inputs:
- name: foo
- name: bar
outputs:
- name: result
config:
get_file: config-
deployment:
type: OS::Heat:
properties:
config:
server:
get_param: server
input_values:
foo: fooooo2
bar: baaaaa34
$ heat stack-create sc2 -f example-
ERROR: Failed to validate: Property error : deployment: server Error validating value u'server': The server (server) could not be found.
Changed in heat: | |
importance: | Undecided → High |
assignee: | nobody → Steven Hardy (shardy) |
status: | New → Triaged |
tags: | added: tripleo |
Changed in heat: | |
milestone: | none → kilo-2 |
Changed in heat: | |
assignee: | Randall Burt (randall-burt) → Steven Hardy (shardy) |
Changed in heat: | |
assignee: | Randall Burt (randall-burt) → Steven Hardy (shardy) |
summary: |
- Validation prevents SoftwareDeployments in provider templates + Validation prevents indirect references in provider templates |
Changed in heat: | |
assignee: | Steven Hardy (shardy) → Randall Burt (randall-burt) |
Changed in heat: | |
assignee: | Randall Burt (randall-burt) → Steven Hardy (shardy) |
Changed in heat: | |
assignee: | Steven Hardy (shardy) → Randall Burt (randall-burt) |
Changed in heat: | |
assignee: | Randall Burt (randall-burt) → Steven Hardy (shardy) |
Changed in heat: | |
assignee: | Steven Hardy (shardy) → Randall Burt (randall-burt) |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | kilo-2 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/144766
Review: https:/