Ask Your Question
0

Heat resource 'Updates cause replacement' question

asked 2015-08-06 18:15:19 -0600

Sihan gravatar image

In the document http://docs.openstack.org/developer/h...

Every property has either 'Updates cause replacement' or 'Can be updated without replacement.'

I am confused what the replacement mean? Does it mean that I need to redeploy the stack if I want to change the property value?

Thanks

Sihan

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-17 18:46:28 -0600

asalkeld gravatar image

Let's use this silly example:

 resources:
   resA:
    type: foo
    properties:
      x: 1
      y: 2
   resB:
    type: foo

For the example x is updateReplace and y is updatable.

  1. I change property x from "1" to "4" and stack-update, result: only resource A is deleted then re-created
  2. I change property y from "2" to "3" and stack-update, result: only resource B is updated

Note: these field settings come from the underlying services that don't allow certain fields to be updated and are only available on create.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-08-06 18:15:19 -0600

Seen: 588 times

Last updated: Aug 17 '15