Skip to content

Backport of fix: add skip_exit to drain_listeners to prevent premature pod termin… into release/2.0.x#1076

Merged
hc-github-team-consul-core merged 1 commit into
release/2.0.xfrom
backport/spulluri/fix_envoy_drain_issue_main/infinitely-nice-clam
Apr 29, 2026
Merged

Backport of fix: add skip_exit to drain_listeners to prevent premature pod termin… into release/2.0.x#1076
hc-github-team-consul-core merged 1 commit into
release/2.0.xfrom
backport/spulluri/fix_envoy_drain_issue_main/infinitely-nice-clam

Conversation

@hc-github-team-consul-core
Copy link
Copy Markdown
Collaborator

Backport

This PR is auto-generated from #1064 to be assessed for backporting due to the inclusion of the label backport/2.0.

The below text is copied from the body of the original PR.


Description

When upgrading Envoy from 1.35 to 1.37, pods were being terminated early
during graceful shutdown. The POST /drain_listeners?graceful endpoint causes
Envoy to automatically exit after the drain period (--drain-time-s), which
raced against consul-dataplane's own lifecycle sequencing:

Drain() → wait shutdownGracePeriodSeconds → Quit() → Kill()

Adding &skip_exit decouples the drain phase from the exit decision, ensuring
Envoy stays alive until consul-dataplane explicitly calls Quit() via
/quitquitquit, preserving the intended shutdown lifecycle control.


Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core requested a review from a team as a code owner April 29, 2026 04:56
@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/spulluri/fix_envoy_drain_issue_main/infinitely-nice-clam branch from f408421 to 1a7deb1 Compare April 29, 2026 04:56
@hc-github-team-consul-core hc-github-team-consul-core requested a review from a team as a code owner April 29, 2026 04:56
@hc-github-team-consul-core hc-github-team-consul-core enabled auto-merge (squash) April 29, 2026 04:56
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved Consul Bot automated PR

@hc-github-team-consul-core hc-github-team-consul-core merged commit 88c7438 into release/2.0.x Apr 29, 2026
38 checks passed
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.

3 participants