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

[ECS] ELB listener rules were not rollbacked since running targetGroup(s) does not exist #5280

Open
t-kikuc opened this issue Oct 16, 2024 · 1 comment
Labels
kind/bug Something isn't working

Comments

@t-kikuc
Copy link
Member

t-kikuc commented Oct 16, 2024

What happened:

After rolling back an ECS app, ELB listener rules were not rollbacked. (remained primary: 80, canary: 20)

What you expected to happen:

ELB listener rules are also rollbacked. (primary:100, canary:0)

How to reproduce it:

  1. QuickSync an ECS app without input.targetGroups.canary in app.pipecd.yaml
  2. Add input.targetGroups.canary and input.pipeline in Canary strategy.
    • i.e. ECS_TRAFFIC_ROUTING should be included
  3. Push 2. to remote and trigger a deployment
  4. After ECS_TRAFFIC_ROUTING is finished, trigger rollback.
    -> ECS service and taskdef were rollbacked / ELB was NOT rollbacked.

Environment:

  • piped version: v0.48.9 (other versions have the same problem)
  • control-plane version: v0.49.2
  • Others: N/A
@t-kikuc t-kikuc added the kind/bug Something isn't working label Oct 16, 2024
@t-kikuc
Copy link
Member Author

t-kikuc commented Oct 16, 2024

The Cause

The current code requires canary targetGroup in the last successful commit in order to roll back ELB listeners.

if primaryTargetGroup != nil && canaryTargetGroup != nil {

Therefore,
rolling back a PR that added canary targetGroup
-> Piped cannot find canary targetGroup in the last successful commit
-> Piped does not modify ELB listeners.

The possible solutions

  • Remove nil check of canary in the above condition

@t-kikuc t-kikuc changed the title [ECS] ELB listener rules were not rollbacked since running canary targetGroup was not found [ECS] ELB listener rules were not rollbacked since running targetGroup(s) does not exist Oct 16, 2024
@t-kikuc t-kikuc added this to ROADMAP Oct 23, 2024
@t-kikuc t-kikuc moved this to 📋 New in ROADMAP Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
Status: 📋 New
Development

No branches or pull requests

1 participant