Skip to content
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

Add test case for stack in RollbackInProgress state #667

Closed
wants to merge 1 commit into from

Conversation

MustafaSaber
Copy link
Member

@MustafaSaber MustafaSaber commented Dec 21, 2023

If a CloudFormation stack is in ROLLBACK_IN_PROGRESS it returns no output, hence no target groups. While CloudFormation is working to get the stack back the controller may send traffic to LBs without TG.

This PR is trying to replicate this behaviour, current state means that we also collect stacks in this state which we shouldn't do.

Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
@MustafaSaber MustafaSaber self-assigned this Dec 21, 2023
@szuecs
Copy link
Member

szuecs commented Dec 22, 2023

You test the current state as far as I understand. If there is an error we will get into ROLLBACK state, but do you get from that test?
I also don't get your description:

Trying to replicate detached target groups

How does your PR achieve this?
I don't see it

I think what we want is to test for example a known wrong state (from our current alerting for example wrong WAF association) and then how we can come out of this state without delete/recreate (causes downtime), but maybe:

  1. create new stack
  2. delete broken stack

The order is important and delete needs to be postponed until some time in the future as we normally do.
Of course this requires a much bigger test, not sure if that's easily possible.

@szuecs szuecs changed the title Add test case for rolling in progress stacks Add test case for stack in RollbackInProgress state Jan 2, 2024
@szuecs
Copy link
Member

szuecs commented Jan 2, 2024

👍

@MustafaSaber MustafaSaber deleted the more-tests-v2 branch January 2, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants