-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rds: UPDATE_ROLLBACK_FAILED when deploy while "storage change is being optimized" #29916
Comments
I guess this is a CFN bug. I am cutting an internal ticket for clarifying. |
internal tracking V1358326979 |
Hi It's not a bug of CFN. It's how CFN works when the deploy fails and the update handler will just try to fall back to previous state. Please use continue-update-rollback to get rid of the stuck. |
closing as it's not a CDK issue. |
|
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Describe the bug
I tried to deploy a change to the allocated storage of my RDS, but it turns out the db was already in the process of autoscaling the storage
This resulted in the following error:
and
Expected Behavior
It's ok for the deploy to fail but it is unacceptable to end up in
UPDATE_ROLLBACK_FAILED
stateif the deploy has to fail it should be possible to retry the deployment after the db has finished its storage task
(I tried deploy again later but I just get
Error [ValidationError]: Stack:arn:aws:cloudformation:eu-west-1:570110252051:stack/ifm-ssa-reimport-dev-eu/a5bd21a0-ff31-11ee-854d-0a9cdce91997 is in UPDATE_ROLLBACK_FAILED state and can not be updated.
)Current Behavior
stack is in
UPDATE_ROLLBACK_FAILED
stateAFAICT there is no way to recover from this state so my only option is to destroy the stack and start over
that is not possible on a production deployment
Reproduction Steps
deploy a stack with an RDS db, with a
max_allocated_storage
configured to enable autoscalingadd data to the db until it runs out of space
change the stack definition to increase
allocated_storage
then attempt the deployment while the db is busy autoscalingPossible Solution
there are so many ways to end up in
UPDATE_ROLLBACK_FAILED
state with CDK that I feel there must be something fundamentally wrong with the underlying designI can't recommend this to anybody
Additional Information/Context
No response
CDK CLI Version
2.138.0 (build 6b41c8b)
Framework Version
No response
Node.js Version
v18.18.0
OS
macOS 14.4.1
Language
Python
Language Version
3.11.5
Other information
No response
The text was updated successfully, but these errors were encountered: