Ask Your Question
0

Additional resource required by "REPLACE" update policy

asked 2018-01-18 02:58:30 -0600

Leo999 gravatar image

User-data update in HOT template will trigger "REPLACE" when use "heat stack-update" to take change into use. "REPLACE" policy creates a new VM before delete the old one, so it requires double CPU cores to execute "REPLACE" update policy, if the VM uses other resource, eg cinder volume, vNIC, do these resource need double for the period new VM is created but before old VM is deleted?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-01-23 11:20:45 -0600

zaneb gravatar image

For the most part, no. Replacing one resource does not cause resources it depends on (e.g. Volumes or Ports) to also be replaced. (In fact, with the way Heat currently works, this would require time travel ;)

However, if you implicitly create ports as part of the server creation (e.g. by specifying networks to attach to without specifying explicit ports) then the new server will create its own ports. (This is probably what you want to happen anyway.)

edit flag offensive delete link more

Comments

@zaneb, thanks for the explanation! I explicit attach the volume and ports to the VM, so it means no additional this part resource required, it matched my test result. :-)

Leo999 gravatar imageLeo999 ( 2018-01-23 23:14:06 -0600 )edit

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: 2018-01-18 02:58:30 -0600

Seen: 154 times

Last updated: Jan 23 '18