Skip to content

feat(loadbalancer): add load balancer resize - #26

Merged
reenjii merged 1 commit into
v2.15.0-ovhfrom
dev/jtanguy/PCINT-9107-lb-resize
Oct 13, 2026
Merged

reenjii merged 1 commit into
v2.15.0-ovhfrom
dev/jtanguy/PCINT-9107-lb-resize

Conversation

@chuliang

@chuliang chuliang commented Oct 8, 2026

Copy link
Copy Markdown

Adds loadbalancers.Resize, for OVHcloud's Octavia resize call:
PUT /v2/lbaas/loadbalancers/{id}/resize with {"new_flavor_id": "..."}, answering 202.
Octavia fails the load balancer over onto amphorae of the new flavor.

This call is not in upstream Octavia. It comes from OVHcloud's downstream patch
(upstream change 890215,
spec "Load balancer resizing"). The v6 API already uses it through its own extension
in integration. Public Cloud API v2 needs it for PCINT-9107 and carries a local
copy until this is released.

Changes

  • ResizeOpts (new_flavor_id required), Resize, ResizeResult, the URL helper,
    a unit test and a doc example, mirroring Failover.

CI fixes (already failing on v2.12.0-ovh, independent of the resize)

  • Network fixtures: drop the provider:network_type / provider:segmentation_id
    keys duplicated by 3193689. The last key wins in JSON, so the provider extension's
    TestList / TestGet read vlan / bgp instead of local.
  • Acceptance tests for endpoint groups and Manila quotasets: port them from the v1
    import paths to v2, which made every functional job fail to compile.

These two are separate commits and can be split out if preferred.

Release

Label semver:minor. Once merged, tag v2.12.0-ovh.5.

@coveralls

coveralls commented Oct 8, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 38371334901

Warning

No base build found for commit 67816a4 on v2.15.0-ovh.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 64.12%

Details

  • Patch coverage: 17 of 17 lines across 2 files are fully covered (100%).

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 39404
Covered Lines: 25266
Line Coverage: 64.12%
Coverage Strength: 47.97 hits per line

💛 - Coveralls

@chuliang
chuliang force-pushed the dev/jtanguy/PCINT-9107-lb-resize branch from 5533f8f to a349663 Compare October 13, 2026 08:30
@chuliang
chuliang changed the base branch from v2.12.0-ovh to v2.15.0-ovh October 13, 2026 08:31
PUT /v2/lbaas/loadbalancers/{id}/resize with {"new_flavor_id": ...}
answers 202 and fails the load balancer over onto amphorae of the new
flavor. Not in upstream Octavia: OVHcloud's downstream patch (upstream
change 890215, spec "Load balancer resizing"). Needed by API v2
(PCINT-9107), which carries its own copy until this is released.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit d95133f)
@chuliang
chuliang force-pushed the dev/jtanguy/PCINT-9107-lb-resize branch from a349663 to f11bfde Compare October 13, 2026 08:44
@reenjii
reenjii merged commit 7d5fbfd into v2.15.0-ovh Oct 13, 2026
17 checks passed
@chuliang
chuliang deleted the dev/jtanguy/PCINT-9107-lb-resize branch October 20, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants