Skip to content

Reject AppCookie LB stickiness policy on Virtual Router networks - #13315

Open
sureshanaparti wants to merge 5 commits into
apache:4.20from
shapeblue:deprecate-appcookie-based-stickiness-type-for-vr
Open

sureshanaparti wants to merge 5 commits into
apache:4.20from
shapeblue:deprecate-appcookie-based-stickiness-type-for-vr

Conversation

@sureshanaparti

@sureshanaparti sureshanaparti commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR rejects AppCookie (App session) based stickiness type policy for Virtual Router.

Fixes #3253

image

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

  • Create VPC, network tier(s) and deploy instance on it.
  • Acquire public IP and configure load balancing rule.
  • On load balancing rule, configure sticky policy with 'AppCookie' method (this should fail with error).

How did you try to break this feature and the system with this change?

@sureshanaparti

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@codecov

codecov Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 16.40%. Comparing base (5deb6a9) to head (e91b9e5).

Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #13315      +/-   ##
============================================
+ Coverage     16.38%   16.40%   +0.01%     
- Complexity    13627    13637      +10     
============================================
  Files          5669     5669              
  Lines        501541   501529      -12     
  Branches      60925    60920       -5     
============================================
+ Hits          82190    82264      +74     
+ Misses       410142   410047      -95     
- Partials       9209     9218       +9     
Flag Coverage Δ
uitests 4.16% <ø> (ø)
unittests 17.26% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@weizhouapache

Copy link
Copy Markdown
Member

I think, a simple solution might be

} else if (LbStickinessMethod.StickinessMethodType.AppCookieBased.getName().equalsIgnoreCase(stickinessPolicy.getMethodName())) {

throwing an exception after this line

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18115

@sureshanaparti

Copy link
Copy Markdown
Contributor Author

I think, a simple solution might be

} else if (LbStickinessMethod.StickinessMethodType.AppCookieBased.getName().equalsIgnoreCase(stickinessPolicy.getMethodName())) {

throwing an exception after this line

let me check it @weizhouapache

@sureshanaparti sureshanaparti changed the title Deprecate AppCookie (App session) based stickiness type policy for Virtual Router [WIP] Deprecate AppCookie (App session) based stickiness type policy for Virtual Router Jun 25, 2026
@weizhouapache weizhouapache added this to the 4.20.4 milestone Jun 29, 2026
@weizhouapache

Copy link
Copy Markdown
Member

@sureshanaparti
is this still WIP ?

@DaanHoogland
DaanHoogland force-pushed the deprecate-appcookie-based-stickiness-type-for-vr branch from 723bcac to 179dff6 Compare August 4, 2026 08:04
@DaanHoogland DaanHoogland moved this from Backlog to conflict/waiting in CloudStack Testing Sep 1, 2026
@DaanHoogland

Copy link
Copy Markdown
Contributor

ping @sureshanaparti

@sureshanaparti
sureshanaparti force-pushed the deprecate-appcookie-based-stickiness-type-for-vr branch from 179dff6 to e91b9e5 Compare October 1, 2026 12:08
@sureshanaparti sureshanaparti changed the title [WIP] Deprecate AppCookie (App session) based stickiness type policy for Virtual Router Reject AppCookie LB stickiness policy on Virtual Router networks Oct 1, 2026
@sureshanaparti
sureshanaparti marked this pull request as ready for review October 1, 2026 12:09
@sureshanaparti

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@weizhouapache weizhouapache left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

code lgtm

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19367

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

Load balancer appcookie configuration deprecated in HAproxy

6 participants