Use config replace_on_change flag to decide whether to replace a deployment resource
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Wishlist
|
Zane Bitter |
Bug Description
As per the results of the following work session:
https:/
The inputs schema for the following config resources will gain a
'replace_on_change' boolean property:
- http://
- http://
- http://
When a deployment resource has an input value which changes during a stack
update, it will trigger resource replacement if the input from the config has
replace_
When the config/deployment represents a self-contained scalable service (such
as a containerized service), replace_on_change can be used to bring up a new
service version before removing the old one.
An example usage would look something like this:
resources:
backend_
type: OS::Heat:
properties:
configs:
- tool: script
- CREATE
- UPDATE
- tool: script
- DELETE
inputs:
- name: DEPLOY_VERSION
- name: CONFIG
outputs:
- name: host_and_port
backend:
type: OS::Heat:
properties:
server: {get_resource: backend_server}
name: {get_param: backend_version} # Forces upgrade replacement
actions: [CREATE, UPDATE, DELETE]
config: {get_resource: backend_component}
CONFIG: {get_param: backend_config} # changing this will result in existing resource being updated in-place
Changed in heat: | |
milestone: | none → newton-2 |
Changed in heat: | |
status: | New → In Progress |
Changed in heat: | |
milestone: | newton-2 → newton-3 |
Changed in heat: | |
assignee: | Steve Baker (steve-stevebaker) → Zane Bitter (zaneb) |
Fix proposed to branch: master /review. openstack. org/352605
Review: https:/