Ask Your Question

openstack stack rollback

asked 2019-10-25 12:30:16 -0600

snowmoon gravatar image

Hi , I have created a big stack (approx. 30 instance ) using the below command which is included the rollback option.

openstack stack create --enable-rollback  -t create.yaml  -e environment.yaml --timeout 30 --wait  CI20

Later I was trying to upgrade the same stack with --rollback option but its not working ,I tried --rollback true --rollback 1 and --rollback enable option but its giving an error " --rollback invalid value: true"

openstack stack update --rollback true  -t create.yaml  -e environment.yaml --timeout 30 --wait  CI20
--rollback invalid value: true

finally I have updated the stack without "--rollback" option and stack failed. Now How I can revert it back to the old stack . My questions are :

1) what is the option I should give while updating the stack for rollback

2)incase its failed how I can revert it to previous stack .what is the command for the same ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-10-29 10:11:23 -0600

zaneb gravatar image

First of all, openstack stack update --help will tell you how to do an update with rollback enabled:

  --rollback <value>    Set rollback on update failure. Value "enabled" sets
                        rollback to enabled. Value "disabled" sets rollback to
                        disabled. Value "keep" uses the value of existing
                        stack to be updated (default)

The default is keep, so since you created the stack with rollback enabled you shouldn't need to pass the argument again on update.

If you want to revert a stack that is in a failed state, just issue another update passing the previous template/environment.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2019-10-25 12:30:16 -0600

Seen: 383 times

Last updated: Oct 29 '19